Passed
Branch PR91 (05b183)
by Frank
06:59 queued 04:34
created
src/Attachment.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $idPrefix = $this->site->idSitePrefix();
49 49
 
50
-        $response['id'] = (int) ($idPrefix.$response['id']); // Unique ID, must be a number.
50
+        $response['id'] = (int) ($idPrefix . $response['id']); // Unique ID, must be a number.
51 51
         $response['nonces']['update'] = false;
52 52
         $response['nonces']['edit'] = false;
53 53
         $response['nonces']['delete'] = false;
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
     public function mediaSendToEditor(string $html, int $id): string
148 148
     {
149 149
         $idPrefix = $this->site->idSitePrefix();
150
-        $newId = $idPrefix.$id; // Unique ID, must be a number.
150
+        $newId = $idPrefix . $id; // Unique ID, must be a number.
151 151
 
152
-        $search = 'wp-image-'.$id;
153
-        $replace = 'wp-image-'.$newId;
152
+        $search = 'wp-image-' . $id;
153
+        $replace = 'wp-image-' . $newId;
154 154
 
155 155
         return str_replace($search, $replace, $html);
156 156
     }
Please login to merge, or discard this patch.
src/Thumbnail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,8 +146,8 @@
 block discarded – undo
146 146
         $content = _wp_post_thumbnail_html($attachmentId, $post);
147 147
         $this->siteSwitcher->restoreBlog();
148 148
 
149
-        $search = 'value="'.$attachmentId.'"';
150
-        $replace = 'value="'.$idPrefix.$attachmentId.'"';
149
+        $search = 'value="' . $attachmentId . '"';
150
+        $replace = 'value="' . $idPrefix . $attachmentId . '"';
151 151
         $content = str_replace($search, $replace, $content);
152 152
 
153 153
         $post = get_post($postId);
Please login to merge, or discard this patch.
src/Site.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function idSitePrefix(): string
22 22
     {
23
-        return $this->id().self::SITE_ID_PREFIX_RIGHT_PAD;
23
+        return $this->id() . self::SITE_ID_PREFIX_RIGHT_PAD;
24 24
     }
25 25
 
26 26
     /**
Please login to merge, or discard this patch.
multisite-global-media.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 return true;
58 58
             }
59 59
 
60
-            $autoloader = plugin_dir_path(__FILE__).'/vendor/autoload.php';
60
+            $autoloader = plugin_dir_path(__FILE__) . '/vendor/autoload.php';
61 61
 
62 62
             if (!\file_exists($autoloader)) {
63 63
                 return false;
Please login to merge, or discard this patch.