@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | // phpcs:disable |
27 | 27 | |
28 | 28 | $bootstrap = \Closure::bind( |
29 | - static function () { |
|
29 | + static function() { |
|
30 | 30 | /** |
31 | 31 | * @param string $message |
32 | 32 | * @param string $noticeType |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | add_action( |
40 | 40 | 'admin_notices', |
41 | - function () use ($message, $noticeType, $allowedMarkup) { |
|
41 | + function() use ($message, $noticeType, $allowedMarkup) { |
|
42 | 42 | ?> |
43 | 43 | <div class="notice notice-<?= esc_attr($noticeType) ?>"> |
44 | 44 | <p><?= wp_kses($message, $allowedMarkup) ?></p> |
@@ -57,7 +57,7 @@ discard block |
||
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; |
@@ -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 | /** |