@@ -47,7 +47,7 @@ discard block |
||
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 |
||
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 | } |
@@ -146,8 +146,8 @@ |
||
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); |
@@ -20,7 +20,7 @@ |
||
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 | /** |
@@ -57,7 +57,7 @@ |
||
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; |