Passed
Push — develop-v4 ( 90eb66...5cd4ff )
by Andrew
09:32
created
src/Seomatic.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
             $lastSegment = end($segments);
344 344
             $site = Craft::$app->getSites()->getSiteByHandle($lastSegment);
345 345
             if ($site !== null) {
346
-                $siteSuffix = '/' . $lastSegment;
346
+                $siteSuffix = '/'.$lastSegment;
347 347
             }
348 348
         }
349 349
         $currentUser = Craft::$app->getUser()->getIdentity();
@@ -351,31 +351,31 @@  discard block
 block discarded – undo
351 351
         if ($currentUser->can('seomatic:dashboard')) {
352 352
             $subNavs['dashboard'] = [
353 353
                 'label' => Craft::t('seomatic', 'Dashboard'),
354
-                'url' => 'seomatic/dashboard' . $siteSuffix,
354
+                'url' => 'seomatic/dashboard'.$siteSuffix,
355 355
             ];
356 356
         }
357 357
         if ($currentUser->can('seomatic:global-meta')) {
358 358
             $subNavs['global'] = [
359 359
                 'label' => Craft::t('seomatic', 'Global SEO'),
360
-                'url' => 'seomatic/global/general' . $siteSuffix,
360
+                'url' => 'seomatic/global/general'.$siteSuffix,
361 361
             ];
362 362
         }
363 363
         if ($currentUser->can('seomatic:content-meta')) {
364 364
             $subNavs['content'] = [
365 365
                 'label' => Craft::t('seomatic', 'Content SEO'),
366
-                'url' => 'seomatic/content' . $siteSuffix,
366
+                'url' => 'seomatic/content'.$siteSuffix,
367 367
             ];
368 368
         }
369 369
         if ($currentUser->can('seomatic:site-settings')) {
370 370
             $subNavs['site'] = [
371 371
                 'label' => Craft::t('seomatic', 'Site Settings'),
372
-                'url' => 'seomatic/site/identity' . $siteSuffix,
372
+                'url' => 'seomatic/site/identity'.$siteSuffix,
373 373
             ];
374 374
         }
375 375
         if ($currentUser->can('seomatic:tracking-scripts')) {
376 376
             $subNavs['tracking'] = [
377 377
                 'label' => Craft::t('seomatic', 'Tracking Scripts'),
378
-                'url' => 'seomatic/tracking/gtag' . $siteSuffix,
378
+                'url' => 'seomatic/tracking/gtag'.$siteSuffix,
379 379
             ];
380 380
         }
381 381
         $editableSettings = true;
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
         Event::on(
421 421
             Plugins::class,
422 422
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
423
-            function (PluginEvent $event) {
423
+            function(PluginEvent $event) {
424 424
                 if ($event->plugin === $this) {
425 425
                     // Invalidate our caches after we've been installed
426 426
                     $this->clearAllCaches();
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
         Event::on(
442 442
             ClearCaches::class,
443 443
             ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
444
-            function (RegisterCacheOptionsEvent $event) {
444
+            function(RegisterCacheOptionsEvent $event) {
445 445
                 Craft::debug(
446 446
                     'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS',
447 447
                     __METHOD__
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
         Event::on(
458 458
             Plugins::class,
459 459
             Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS,
460
-            function (PluginEvent $event) {
460
+            function(PluginEvent $event) {
461 461
                 if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) {
462 462
                     // For all the emojis
463 463
                     $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
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
         Event::on(
512 512
             Fields::class,
513 513
             Fields::EVENT_REGISTER_FIELD_TYPES,
514
-            static function (RegisterComponentTypesEvent $event) {
514
+            static function(RegisterComponentTypesEvent $event) {
515 515
                 $event->types[] = SeoSettingsField::class;
516 516
                 $event->types[] = Seomatic_MetaField::class;
517 517
             }
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
         Event::on(
521 521
             Elements::class,
522 522
             Elements::EVENT_AFTER_SAVE_ELEMENT,
523
-            static function (ElementEvent $event) {
523
+            static function(ElementEvent $event) {
524 524
                 Craft::debug(
525 525
                     'Elements::EVENT_AFTER_SAVE_ELEMENT',
526 526
                     __METHOD__
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
         Event::on(
541 541
             Elements::class,
542 542
             Elements::EVENT_AFTER_DELETE_ELEMENT,
543
-            static function (ElementEvent $event) {
543
+            static function(ElementEvent $event) {
544 544
                 Craft::debug(
545 545
                     'Elements::EVENT_AFTER_DELETE_ELEMENT',
546 546
                     __METHOD__
@@ -559,19 +559,19 @@  discard block
 block discarded – undo
559 559
             Event::on(
560 560
                 Entry::class,
561 561
                 Element::EVENT_REGISTER_PREVIEW_TARGETS,
562
-                static function (RegisterPreviewTargetsEvent $e) {
562
+                static function(RegisterPreviewTargetsEvent $e) {
563 563
                     /** @var Element $element */
564 564
                     $element = $e->sender;
565 565
                     if ($element->uri !== null) {
566 566
                         $e->previewTargets[] = [
567
-                            'label' => '
Please login to merge, or discard this patch.