Passed
Push — develop ( 90ed2c...5af6db )
by Andrew
09:42
created
src/models/MetaJsonLdContainer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,16 +51,16 @@
 block discarded – undo
51 51
     public function includeMetaData($dependency)
52 52
     {
53 53
         Craft::beginProfile('MetaJsonLdContainer::includeMetaData', __METHOD__);
54
-        $uniqueKey = $this->handle . $dependency->tags[3] . '-v2';
54
+        $uniqueKey = $this->handle.$dependency->tags[3].'-v2';
55 55
         $cache = Craft::$app->getCache();
56 56
         if ($this->clearCache) {
57 57
             TagDependency::invalidate($cache, $dependency->tags[3]);
58 58
         }
59 59
         [$jsonLd, $attrs] = $cache->getOrSet(
60
-            self::CONTAINER_TYPE . $uniqueKey,
61
-            function () use ($uniqueKey) {
60
+            self::CONTAINER_TYPE.$uniqueKey,
61
+            function() use ($uniqueKey) {
62 62
                 Craft::info(
63
-                    self::CONTAINER_TYPE . ' cache miss: ' . $uniqueKey,
63
+                    self::CONTAINER_TYPE.' cache miss: '.$uniqueKey,
64 64
                     __METHOD__
65 65
                 );
66 66
 
Please login to merge, or discard this patch.
src/models/MetaScriptContainer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,16 +55,16 @@  discard block
 block discarded – undo
55 55
     public function includeMetaData($dependency)
56 56
     {
57 57
         Craft::beginProfile('MetaScriptContainer::includeMetaData', __METHOD__);
58
-        $uniqueKey = $this->handle . $dependency->tags[3] . $this->dataLayerHash();
58
+        $uniqueKey = $this->handle.$dependency->tags[3].$this->dataLayerHash();
59 59
         $cache = Craft::$app->getCache();
60 60
         if ($this->clearCache) {
61 61
             TagDependency::invalidate($cache, $dependency->tags[3]);
62 62
         }
63 63
         $tagData = $cache->getOrSet(
64
-            self::CONTAINER_TYPE . $uniqueKey,
65
-            function () use ($uniqueKey) {
64
+            self::CONTAINER_TYPE.$uniqueKey,
65
+            function() use ($uniqueKey) {
66 66
                 Craft::info(
67
-                    self::CONTAINER_TYPE . ' cache miss: ' . $uniqueKey,
67
+                    self::CONTAINER_TYPE.' cache miss: '.$uniqueKey,
68 68
                     __METHOD__
69 69
                 );
70 70
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                     'jQuery(window).load()',
141 141
                 ];
142 142
                 $position = $positionNames[$config['position'] - 1] ?? 'unknown';
143
-                $html .= "<!-- Position: {$position} -->" . PHP_EOL;
143
+                $html .= "<!-- Position: {$position} -->".PHP_EOL;
144 144
             }
145 145
             if ($bodyJs || !$params['renderScriptTags']) {
146 146
                 $html .= $config['js'];
Please login to merge, or discard this patch.
src/models/MetaJsonLd.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     {
115 115
         $model = null;
116 116
 
117
-        $className = 'nystudio107\\seomatic\\models\\jsonld\\' . $schemaType;
117
+        $className = 'nystudio107\\seomatic\\models\\jsonld\\'.$schemaType;
118 118
         /** @var $model MetaJsonLd */
119 119
         if (class_exists($className)) {
120 120
             self::cleanProperties($className, $config);
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
             foreach ($dataToValidate as $key => $data) {
374 374
                 /** @var array $expectedTypes */
375 375
                 foreach ($expectedTypes as $expectedType) {
376
-                    $className = 'nystudio107\\seomatic\\models\\jsonld\\' . $expectedType;
376
+                    $className = 'nystudio107\\seomatic\\models\\jsonld\\'.$expectedType;
377 377
                     switch ($expectedType) {
378 378
                         // Text always validates
379 379
                         case 'Text':
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
                         case 'Date':
414 414
                             $validator = new DateValidator;
415 415
                             $validator->type = DateValidator::TYPE_DATE;
416
-                            $validator->format = 'php:' . DateTime::ATOM;
416
+                            $validator->format = 'php:'.DateTime::ATOM;
417 417
                             if ($validator->validate($data, $error)) {
418 418
                                 $validated = true;
419 419
                             }
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
                                 $validated = true;
460 460
                             }
461 461
                             if (is_string($data)) {
462
-                                $targetClass = 'nystudio107\\seomatic\\models\\jsonld\\' . $data;
462
+                                $targetClass = 'nystudio107\\seomatic\\models\\jsonld\\'.$data;
463 463
                                 if (class_exists($targetClass)) {
464 464
                                     $validated = true;
465 465
                                 }
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
                     }
469 469
                 }
470 470
                 if (!$validated) {
471
-                    $this->addError($attribute, 'Must be one of these types: ' . implode(', ', $expectedTypes));
471
+                    $this->addError($attribute, 'Must be one of these types: '.implode(', ', $expectedTypes));
472 472
                 }
473 473
             }
474 474
         }
Please login to merge, or discard this patch.
src/seoelements/SeoCampaign.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         Event::on(
106 106
             CampaignTypesService::class,
107 107
             CampaignTypesService::EVENT_AFTER_SAVE_CAMPAIGN_TYPE,
108
-            function (CampaignTypeEvent $event) {
108
+            function(CampaignTypeEvent $event) {
109 109
                 Craft::debug(
110 110
                     'CampaignTypesService::EVENT_AFTER_SAVE_CAMPAIGN_TYPE',
111 111
                     __METHOD__
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         Event::on(
117 117
             CampaignTypesService::class,
118 118
             CampaignTypesService::EVENT_AFTER_DELETE_CAMPAIGN_TYPE,
119
-            function (CampaignTypeEvent $event) {
119
+            function(CampaignTypeEvent $event) {
120 120
                 Craft::debug(
121 121
                     'CampaignTypesService::EVENT_AFTER_DELETE_CAMPAIGN_TYPE',
122 122
                     __METHOD__
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             Event::on(
132 132
                 CampaignTypesService::class,
133 133
                 CampaignTypesService::EVENT_AFTER_SAVE_CAMPAIGN_TYPE,
134
-                function (CampaignTypeEvent $event) {
134
+                function(CampaignTypeEvent $event) {
135 135
                     Craft::debug(
136 136
                         'CampaignTypesService::EVENT_AFTER_SAVE_CAMPAIGN_TYPE',
137 137
                         __METHOD__
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             Event::on(
155 155
                 CampaignTypesService::class,
156 156
                 CampaignTypesService::EVENT_AFTER_DELETE_CAMPAIGN_TYPE,
157
-                function (CampaignTypeEvent $event) {
157
+                function(CampaignTypeEvent $event) {
158 158
                     Craft::debug(
159 159
                         'CampaignTypesService::EVENT_AFTER_DELETE_CAMPAIGN_TYPE',
160 160
                         __METHOD__
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             Event::on(
185 185
                 CampaignElement::class,
186 186
                 CampaignElement::EVENT_DEFINE_SIDEBAR_HTML,
187
-                static function (DefineHtmlEvent $event) {
187
+                static function(DefineHtmlEvent $event) {
188 188
                     Craft::debug(
189 189
                         'CampaignElement::EVENT_DEFINE_SIDEBAR_HTML',
190 190
                         __METHOD__
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
             ConfigHelper::getConfigFromFile(self::configFilePath()),
388 388
             [
389 389
                 'sourceId' => $sourceModel->id,
390
-                'sourceName' => (string)$sourceModel->name,
390
+                'sourceName' => (string) $sourceModel->name,
391 391
                 'sourceHandle' => $sourceModel->handle,
392 392
             ]
393 393
         );
Please login to merge, or discard this patch.
src/services/Sitemaps.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
     // Constants
43 43
     // =========================================================================
44 44
 
45
-    const SEOMATIC_SITEMAPINDEX_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapIndexTemplate::TEMPLATE_TYPE;
45
+    const SEOMATIC_SITEMAPINDEX_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapIndexTemplate::TEMPLATE_TYPE;
46 46
 
47
-    const SEOMATIC_SITEMAP_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapTemplate::TEMPLATE_TYPE;
47
+    const SEOMATIC_SITEMAP_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapTemplate::TEMPLATE_TYPE;
48 48
 
49
-    const SEOMATIC_SITEMAPCUSTOM_CONTAINER = Seomatic::SEOMATIC_HANDLE . SitemapCustomTemplate::TEMPLATE_TYPE;
49
+    const SEOMATIC_SITEMAPCUSTOM_CONTAINER = Seomatic::SEOMATIC_HANDLE.SitemapCustomTemplate::TEMPLATE_TYPE;
50 50
 
51 51
     const SEARCH_ENGINE_SUBMISSION_URLS = [
52 52
     ];
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             Event::on(
91 91
                 UrlManager::class,
92 92
                 UrlManager::EVENT_REGISTER_SITE_URL_RULES,
93
-                function (RegisterUrlRulesEvent $event) {
93
+                function(RegisterUrlRulesEvent $event) {
94 94
                     Craft::debug(
95 95
                         'UrlManager::EVENT_REGISTER_SITE_URL_RULES',
96 96
                         __METHOD__
@@ -243,19 +243,19 @@  discard block
 block discarded – undo
243 243
                         $siteId = $groupSiteIds[0];
244 244
                         $sitemapIndexUrl = $this->sitemapIndexUrlForSiteId($siteId);
245 245
                         if (!empty($sitemapIndexUrl)) {
246
-                            $submissionUrl = $url . urlencode($sitemapIndexUrl);
246
+                            $submissionUrl = $url.urlencode($sitemapIndexUrl);
247 247
                             // create new guzzle client
248 248
                             $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]);
249 249
                             // Submit the sitemap index to each search engine
250 250
                             try {
251 251
                                 $guzzleClient->post($submissionUrl);
252 252
                                 Craft::info(
253
-                                    'Sitemap index submitted to: ' . $submissionUrl,
253
+                                    'Sitemap index submitted to: '.$submissionUrl,
254 254
                                     __METHOD__
255 255
                                 );
256 256
                             } catch (\Exception $e) {
257 257
                                 Craft::error(
258
-                                    'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(),
258
+                                    'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(),
259 259
                                     __METHOD__
260 260
                                 );
261 261
                             }
@@ -315,19 +315,19 @@  discard block
 block discarded – undo
315 315
             foreach ($searchEngineUrls as &$url) {
316 316
                 $sitemapUrl = $this->sitemapUrlForBundle($sourceBundleType, $sourceHandle, $sourceSiteId);
317 317
                 if (!empty($sitemapUrl)) {
318
-                    $submissionUrl = $url . urlencode($sitemapUrl);
318
+                    $submissionUrl = $url.urlencode($sitemapUrl);
319 319
                     // create new guzzle client
320 320
                     $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]);
321 321
                     // Submit the sitemap index to each search engine
322 322
                     try {
323 323
                         $guzzleClient->post($submissionUrl);
324 324
                         Craft::info(
325
-                            'Sitemap index submitted to: ' . $submissionUrl,
325
+                            'Sitemap index submitted to: '.$submissionUrl,
326 326
                             __METHOD__
327 327
                         );
328 328
                     } catch (\Exception $e) {
329 329
                         Craft::error(
330
-                            'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(),
330
+                            'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(),
331 331
                             __METHOD__
332 332
                         );
333 333
                     }
@@ -393,19 +393,19 @@  discard block
 block discarded – undo
393 393
             foreach ($searchEngineUrls as &$url) {
394 394
                 $sitemapUrl = $this->sitemapCustomUrlForSiteId($siteId);
395 395
                 if (!empty($sitemapUrl)) {
396
-                    $submissionUrl = $url . urlencode($sitemapUrl);
396
+                    $submissionUrl = $url.urlencode($sitemapUrl);
397 397
                     // create new guzzle client
398 398
                     $guzzleClient = Craft::createGuzzleClient(['timeout' => 5, 'connect_timeout' => 5]);
399 399
                     // Submit the sitemap index to each search engine
400 400
                     try {
401 401
                         $guzzleClient->post($submissionUrl);
402 402
                         Craft::info(
403
-                            'Sitemap Custom submitted to: ' . $submissionUrl,
403
+                            'Sitemap Custom submitted to: '.$submissionUrl,
404 404
                             __METHOD__
405 405
                         );
406 406
                     } catch (\Exception $e) {
407 407
                         Craft::error(
408
-                            'Error submitting sitemap index to: ' . $submissionUrl . ' - ' . $e->getMessage(),
408
+                            'Error submitting sitemap index to: '.$submissionUrl.' - '.$e->getMessage(),
409 409
                             __METHOD__
410 410
                         );
411 411
                     }
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
         }
484 484
 
485 485
         foreach ($sites as $site) {
486
-            $result .= 'sitemap: ' . $this->sitemapIndexUrlForSiteId($site->id) . PHP_EOL;
486
+            $result .= 'sitemap: '.$this->sitemapIndexUrlForSiteId($site->id).PHP_EOL;
487 487
         }
488 488
 
489 489
         return rtrim($result, PHP_EOL);
@@ -515,9 +515,9 @@  discard block
 block discarded – undo
515 515
         // Since we want a stale-while-revalidate pattern, only invalidate the cache if we're asked to
516 516
         if ($invalidateCache) {
517 517
             $cache = Craft::$app->getCache();
518
-            TagDependency::invalidate($cache, SitemapTemplate::SITEMAP_CACHE_TAG . $handle . $siteId);
518
+            TagDependency::invalidate($cache, SitemapTemplate::SITEMAP_CACHE_TAG.$handle.$siteId);
519 519
             Craft::info(
520
-                'Sitemap cache cleared: ' . $handle,
520
+                'Sitemap cache cleared: '.$handle,
521 521
                 __METHOD__
522 522
             );
523 523
         }
Please login to merge, or discard this patch.
src/helpers/UrlHelper.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
44 44
             $siteUrl = MetaValue::parseString($siteUrl);
45 45
             // Extract out just the path part
46 46
             $parts = self::decomposeUrl($path);
47
-            $path = $parts['path'] . $parts['suffix'];
48
-            $url = rtrim($siteUrl, '/') . '/' . ltrim($path, '/');
47
+            $path = $parts['path'].$parts['suffix'];
48
+            $url = rtrim($siteUrl, '/').'/'.ltrim($path, '/');
49 49
             // Handle trailing slashes properly for generated URLs
50 50
             $generalConfig = Craft::$app->getConfig()->getGeneral();
51 51
             if ($generalConfig->addTrailingSlashesToUrls && !preg_match('/\.[^\/]+$/', $url)) {
52
-                $url = rtrim($url, '/') . '/';
52
+                $url = rtrim($url, '/').'/';
53 53
             }
54 54
             if (!$generalConfig->addTrailingSlashesToUrls) {
55 55
                 $url = rtrim($url, '/');
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         // Handle trailing slashes properly for generated URLs
127 127
         $generalConfig = Craft::$app->getConfig()->getGeneral();
128 128
         if ($generalConfig->addTrailingSlashesToUrls && !preg_match('/\.[^\/]+$/', $url)) {
129
-            $url = rtrim($url, '/') . '/';
129
+            $url = rtrim($url, '/').'/';
130 130
         }
131 131
         if (!$generalConfig->addTrailingSlashesToUrls) {
132 132
             $url = rtrim($url, '/');
@@ -146,13 +146,13 @@  discard block
 block discarded – undo
146 146
         $urlParts = parse_url($url);
147 147
         $encodedUrl = "";
148 148
         if (isset($urlParts['scheme'])) {
149
-            $encodedUrl .= $urlParts['scheme'] . '://';
149
+            $encodedUrl .= $urlParts['scheme'].'://';
150 150
         }
151 151
         if (isset($urlParts['host'])) {
152 152
             $encodedUrl .= $urlParts['host'];
153 153
         }
154 154
         if (isset($urlParts['port'])) {
155
-            $encodedUrl .= ':' . $urlParts['port'];
155
+            $encodedUrl .= ':'.$urlParts['port'];
156 156
         }
157 157
         if (isset($urlParts['path'])) {
158 158
             $encodedUrl .= $urlParts['path'];
@@ -162,15 +162,15 @@  discard block
 block discarded – undo
162 162
             foreach ($query as $j => $value) {
163 163
                 $value = explode('=', $value, 2);
164 164
                 if (count($value) === 2) {
165
-                    $query[$j] = urlencode($value[0]) . '=' . urlencode($value[1]);
165
+                    $query[$j] = urlencode($value[0]).'='.urlencode($value[1]);
166 166
                 } else {
167 167
                     $query[$j] = urlencode($value[0]);
168 168
                 }
169 169
             }
170
-            $encodedUrl .= '?' . implode('&', $query);
170
+            $encodedUrl .= '?'.implode('&', $query);
171 171
         }
172 172
         if (isset($urlParts['fragment'])) {
173
-            $encodedUrl .= '#' . $urlParts['fragment'];
173
+            $encodedUrl .= '#'.$urlParts['fragment'];
174 174
         }
175 175
 
176 176
         return $encodedUrl;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             if ($siteId !== null) {
211 211
                 $site = $sites->getSiteById($siteId, true);
212 212
                 if (!$site) {
213
-                    throw new Exception('Invalid site ID: ' . $siteId);
213
+                    throw new Exception('Invalid site ID: '.$siteId);
214 214
                 }
215 215
             }
216 216
 
@@ -236,11 +236,11 @@  discard block
 block discarded – undo
236 236
 
237 237
         if (filter_var($pathOrUrl, FILTER_VALIDATE_URL)) {
238 238
             $url_parts = parse_url($pathOrUrl);
239
-            $result['prefix'] = $url_parts['scheme'] . '://' . $url_parts['host'];
239
+            $result['prefix'] = $url_parts['scheme'].'://'.$url_parts['host'];
240 240
             $result['path'] = $url_parts['path'] ?? '';
241 241
             $result['suffix'] = '';
242
-            $result['suffix'] .= empty($url_parts['query']) ? '' : '?' . $url_parts['query'];
243
-            $result['suffix'] .= empty($url_parts['fragment']) ? '' : '#' . $url_parts['fragment'];
242
+            $result['suffix'] .= empty($url_parts['query']) ? '' : '?'.$url_parts['query'];
243
+            $result['suffix'] .= empty($url_parts['fragment']) ? '' : '#'.$url_parts['fragment'];
244 244
         } else {
245 245
             $result['prefix'] = '';
246 246
             $result['path'] = $pathOrUrl;
Please login to merge, or discard this patch.
src/Seomatic.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         self::$cacheDuration = self::$devMode
275 275
             ? self::DEVMODE_CACHE_DURATION
276 276
             : self::$settings->metaCacheDuration ?? null;
277
-        self::$cacheDuration = self::$cacheDuration === null ? null : (int)self::$cacheDuration;
277
+        self::$cacheDuration = self::$cacheDuration === null ? null : (int) self::$cacheDuration;
278 278
         self::$environment = EnvironmentHelper::determineEnvironment();
279 279
         MetaValueHelper::cache();
280 280
         // Version helpers
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
         Event::on(
350 350
             Plugins::class,
351 351
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
352
-            function (PluginEvent $event) {
352
+            function(PluginEvent $event) {
353 353
                 if ($event->plugin === $this) {
354 354
                     // Invalidate our caches after we've been installed
355 355
                     $this->clearAllCaches();
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
         Event::on(
371 371
             ClearCaches::class,
372 372
             ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
373
-            function (RegisterCacheOptionsEvent $event) {
373
+            function(RegisterCacheOptionsEvent $event) {
374 374
                 Craft::debug(
375 375
                     'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS',
376 376
                     __METHOD__
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
         Event::on(
387 387
             Plugins::class,
388 388
             Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS,
389
-            function (PluginEvent $event) {
389
+            function(PluginEvent $event) {
390 390
                 if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) {
391 391
                     // For all the emojis
392 392
                     $settingsModel = $this->getSettings();
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
         Event::on(
440 440
             Plugins::class,
441 441
             Plugins::EVENT_AFTER_LOAD_PLUGINS,
442
-            function () {
442
+            function() {
443 443
                 // Delay registering SEO Elements to give other plugins a chance to load first
444 444
                 $this->seoElements->getAllSeoElementTypes(false);
445 445
                 // Delay installing GQL handlers to give other plugins a chance to register their own first
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
         Event::on(
461 461
             Fields::class,
462 462
             Fields::EVENT_REGISTER_FIELD_TYPES,
463
-            function (RegisterComponentTypesEvent $event) {
463
+            function(RegisterComponentTypesEvent $event) {
464 464
                 $event->types[] = SeoSettingsField::class;
465 465
                 $event->types[] = Seomatic_MetaField::class;
466 466
             }
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         Event::on(
470 470
             Element::class,
471 471
             Element::EVENT_AFTER_PROPAGATE,
472
-            static function (ModelEvent $event) {
472
+            static function(ModelEvent $event) {
473 473
                 Craft::debug(
474 474
                     'Element::EVENT_AFTER_PROPAGATE',
475 475
                     __METHOD__
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
         Event::on(
490 490
             Elements::class,
491 491
             Elements::EVENT_AFTER_DELETE_ELEMENT,
492
-            function (ElementEvent $event) {
492
+            function(ElementEvent $event) {
493 493
                 Craft::debug(
494 494
                     'Elements::EVENT_AFTER_DELETE_ELEMENT',
495 495
                     __METHOD__
@@ -508,19 +508,19 @@  discard block
 block discarded – undo
508 508
             Event::on(
509 509
                 Entry::class,
510 510
                 Entry::EVENT_REGISTER_PREVIEW_TARGETS,
511
-                function (RegisterPreviewTargetsEvent $e) {
511
+                function(RegisterPreviewTargetsEvent $e) {
512 512
                     /** @var Element $element */
513 513
                     $element = $e->sender;
514 514
                     if ($element->uri !== null) {
515 515
                         $e->previewTargets[] = [
516
-                            'label' => '
Please login to merge, or discard this patch.