Passed
Push — develop-v4 ( 14d8b4...c3c1bf )
by Andrew
39:29 queued 29:55
created
src/Seomatic.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
             $lastSegment = end($segments);
346 346
             $site = Craft::$app->getSites()->getSiteByHandle($lastSegment);
347 347
             if ($site !== null) {
348
-                $siteSuffix = '/' . $lastSegment;
348
+                $siteSuffix = '/'.$lastSegment;
349 349
             }
350 350
         }
351 351
         $currentUser = Craft::$app->getUser()->getIdentity();
@@ -353,31 +353,31 @@  discard block
 block discarded – undo
353 353
         if ($currentUser->can('seomatic:dashboard')) {
354 354
             $subNavs['dashboard'] = [
355 355
                 'label' => Craft::t('seomatic', 'Dashboard'),
356
-                'url' => 'seomatic/dashboard' . $siteSuffix,
356
+                'url' => 'seomatic/dashboard'.$siteSuffix,
357 357
             ];
358 358
         }
359 359
         if ($currentUser->can('seomatic:global-meta')) {
360 360
             $subNavs['global'] = [
361 361
                 'label' => Craft::t('seomatic', 'Global SEO'),
362
-                'url' => 'seomatic/global/general' . $siteSuffix,
362
+                'url' => 'seomatic/global/general'.$siteSuffix,
363 363
             ];
364 364
         }
365 365
         if ($currentUser->can('seomatic:content-meta')) {
366 366
             $subNavs['content'] = [
367 367
                 'label' => Craft::t('seomatic', 'Content SEO'),
368
-                'url' => 'seomatic/content' . $siteSuffix,
368
+                'url' => 'seomatic/content'.$siteSuffix,
369 369
             ];
370 370
         }
371 371
         if ($currentUser->can('seomatic:site-settings')) {
372 372
             $subNavs['site'] = [
373 373
                 'label' => Craft::t('seomatic', 'Site Settings'),
374
-                'url' => 'seomatic/site/identity' . $siteSuffix,
374
+                'url' => 'seomatic/site/identity'.$siteSuffix,
375 375
             ];
376 376
         }
377 377
         if ($currentUser->can('seomatic:tracking-scripts')) {
378 378
             $subNavs['tracking'] = [
379 379
                 'label' => Craft::t('seomatic', 'Tracking Scripts'),
380
-                'url' => 'seomatic/tracking/gtag' . $siteSuffix,
380
+                'url' => 'seomatic/tracking/gtag'.$siteSuffix,
381 381
             ];
382 382
         }
383 383
         $editableSettings = true;
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
         Event::on(
423 423
             Plugins::class,
424 424
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
425
-            function (PluginEvent $event) {
425
+            function(PluginEvent $event) {
426 426
                 if ($event->plugin === $this) {
427 427
                     // Invalidate our caches after we've been installed
428 428
                     $this->clearAllCaches();
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
         Event::on(
444 444
             ClearCaches::class,
445 445
             ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
446
-            function (RegisterCacheOptionsEvent $event) {
446
+            function(RegisterCacheOptionsEvent $event) {
447 447
                 Craft::debug(
448 448
                     'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS',
449 449
                     __METHOD__
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
         Event::on(
460 460
             Plugins::class,
461 461
             Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS,
462
-            function (PluginEvent $event) {
462
+            function(PluginEvent $event) {
463 463
                 if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) {
464 464
                     // For all the emojis
465 465
                     $settingsModel = $this->getSettings();
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
         Event::on(
490 490
             Plugins::class,
491 491
             Plugins::EVENT_AFTER_LOAD_PLUGINS,
492
-            function () {
492
+            function() {
493 493
                 // Delay registering SEO Elements to give other plugins a chance to load first
494 494
                 $this->seoElements->getAllSeoElementTypes(false);
495 495
                 // Delay installing GQL handlers to give other plugins a chance to register their own first
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
         Event::on(
511 511
             Fields::class,
512 512
             Fields::EVENT_REGISTER_FIELD_TYPES,
513
-            static function (RegisterComponentTypesEvent $event) {
513
+            static function(RegisterComponentTypesEvent $event) {
514 514
                 $event->types[] = SeoSettingsField::class;
515 515
                 $event->types[] = Seomatic_MetaField::class;
516 516
             }
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
         Event::on(
520 520
             Elements::class,
521 521
             Elements::EVENT_AFTER_SAVE_ELEMENT,
522
-            static function (ElementEvent $event) {
522
+            static function(ElementEvent $event) {
523 523
                 Craft::debug(
524 524
                     'Elements::EVENT_AFTER_SAVE_ELEMENT',
525 525
                     __METHOD__
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
         Event::on(
540 540
             Elements::class,
541 541
             Elements::EVENT_AFTER_DELETE_ELEMENT,
542
-            static function (ElementEvent $event) {
542
+            static function(ElementEvent $event) {
543 543
                 Craft::debug(
544 544
                     'Elements::EVENT_AFTER_DELETE_ELEMENT',
545 545
                     __METHOD__
@@ -558,19 +558,19 @@  discard block
 block discarded – undo
558 558
             Event::on(
559 559
                 Entry::class,
560 560
                 Element::EVENT_REGISTER_PREVIEW_TARGETS,
561
-                static function (RegisterPreviewTargetsEvent $e) {
561
+                static function(RegisterPreviewTargetsEvent $e) {
562 562
                     /** @var Element $element */
563 563
                     $element = $e->sender;
564 564
                     if ($element->uri !== null) {
565 565
                         $e->previewTargets[] = [
566
-                            'label' => '
Please login to merge, or discard this patch.