The attached patches are from a coder review. There are still some issues that coder is reporting- I chose to ignore a few that seemed low priority for the moment. I broke this patch up into individual patches for the sheer size of it. It is probably the case that some of these will need to be broken off into their own issues- I'm not sure what the usual protocol is around handling this number of changes.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arthurf’s picture

FileSize
80.25 KB

Here's the monolithic version of all the above patches

ParisLiakos’s picture

Status: Needs review » Needs work

Awesome! thanks a lot:)
Just a few issues i found

+++ b/includes/MediaReadOnlyStreamWrapper.incundefined
@@ -470,23 +429,46 @@ abstract class MediaReadOnlyStreamWrapper implements DrupalStreamWrapperInterfac
+   * Implements unlink.

Should be
Implements DrupalStreamWrapperInterface::unlink()

+++ b/includes/MediaReadOnlyStreamWrapper.incundefined
@@ -470,23 +429,46 @@ abstract class MediaReadOnlyStreamWrapper implements DrupalStreamWrapperInterfac
+   * Implements rename.

Same for the rest

+++ b/includes/media.browser.incundefined
@@ -214,10 +234,14 @@ function media_attach_browser_js(&$element) {
+    'browserUrl' => url('media/browser', array(
+      'query' => array('render' => 'media-popup'),
+      )
+    ),
+    'styleSelectorUrl' => url('media/-media_id-/format-form', array(
+      'query' => array('render' => 'media-popup'),
+      )
+    ),

Seems you missed that:) indentation is a bit off

+++ b/includes/media.filter.incundefined
@@ -499,13 +506,13 @@ function media_filter_invalidate_caches($fid = FALSE) {
+ * @param ing $fid

should be int:)

+++ b/includes/media.xml.incundefined
@@ -1,23 +1,24 @@
+ * @return objectl

i guess 1 is typo?

arthurf’s picture

Here are the modified individual patches and the monolithic. I'm not sure what coder wants for that array structure in media.browser.inc- it wasn't flagging that before, but I indented that further and it doesn't complain.

arthurf’s picture

Status: Needs work » Needs review
ParisLiakos’s picture

Status: Needs review » Fixed

aw yay, that was awesome, thanks a lot..committed with just a couple corrections!
http://drupalcode.org/project/media.git/commit/c7ef484

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.