Passed
Push — develop-v4 ( e8ad5d...aac79c )
by Andrew
11:21
created
src/seomatic-config/shopifyproductmeta/JsonLdContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 return [
22
-    MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE => [
22
+    MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE => [
23 23
         'name' => 'General',
24 24
         'description' => 'JsonLd Tags',
25 25
         'handle' => JsonLdService::GENERAL_HANDLE,
26
-        'class' => (string)MetaJsonLdContainer::class,
26
+        'class' => (string) MetaJsonLdContainer::class,
27 27
         'include' => true,
28 28
         'dependencies' => [
29 29
         ],
Please login to merge, or discard this patch.
src/seomatic-config/campaignmeta/ScriptContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         'name'         => 'General',
25 25
         'description'  => 'Script Tags',
26 26
         'handle'       => ScriptService::GENERAL_HANDLE,
27
-        'class'        => (string)MetaScriptContainer::class,
27
+        'class'        => (string) MetaScriptContainer::class,
28 28
         'include'      => true,
29 29
         'dependencies' => [
30 30
         ],
Please login to merge, or discard this patch.
src/seomatic-config/campaignmeta/TitleContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 return [
22
-    MetaTitleContainer::CONTAINER_TYPE . TitleService::GENERAL_HANDLE => [
22
+    MetaTitleContainer::CONTAINER_TYPE.TitleService::GENERAL_HANDLE => [
23 23
         'name' => 'General',
24 24
         'description' => 'Meta Title Tag',
25 25
         'handle' => TitleService::GENERAL_HANDLE,
26
-        'class' => (string)MetaTitleContainer::class,
26
+        'class' => (string) MetaTitleContainer::class,
27 27
         'include' => true,
28 28
         'dependencies' => [
29 29
         ],
Please login to merge, or discard this patch.
src/seomatic-config/campaignmeta/JsonLdContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
  */
20 20
 
21 21
 return [
22
-    MetaJsonLdContainer::CONTAINER_TYPE . JsonLdService::GENERAL_HANDLE => [
22
+    MetaJsonLdContainer::CONTAINER_TYPE.JsonLdService::GENERAL_HANDLE => [
23 23
         'name' => 'General',
24 24
         'description' => 'JsonLd Tags',
25 25
         'handle' => JsonLdService::GENERAL_HANDLE,
26
-        'class' => (string)MetaJsonLdContainer::class,
26
+        'class' => (string) MetaJsonLdContainer::class,
27 27
         'include' => true,
28 28
         'dependencies' => [
29 29
         ],
Please login to merge, or discard this patch.
src/seomatic-config/campaignmeta/LinkContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         'name'         => 'General',
25 25
         'description'  => 'Link Tags',
26 26
         'handle'       => LinkService::GENERAL_HANDLE,
27
-        'class'        => (string)MetaLinkContainer::class,
27
+        'class'        => (string) MetaLinkContainer::class,
28 28
         'include'      => true,
29 29
         'dependencies' => [
30 30
         ],
Please login to merge, or discard this patch.
src/seomatic-config/campaignmeta/TagContainer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         'name'         => 'General',
25 25
         'description'  => 'General Meta Tags',
26 26
         'handle'       => TagService::GENERAL_HANDLE,
27
-        'class'        => (string)MetaTagContainer::class,
27
+        'class'        => (string) MetaTagContainer::class,
28 28
         'include'      => true,
29 29
         'dependencies' => [
30 30
         ],
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         'name'         => 'Facebook',
36 36
         'description'  => 'Facebook OpenGraph Meta Tags',
37 37
         'handle'       => TagService::FACEBOOK_HANDLE,
38
-        'class'        => (string)MetaTagContainer::class,
38
+        'class'        => (string) MetaTagContainer::class,
39 39
         'include'      => true,
40 40
         'dependencies' => [
41 41
         ],
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         'name'         => 'Twitter',
47 47
         'description'  => 'Twitter Card Meta Tags',
48 48
         'handle'       => TagService::TWITTER_HANDLE,
49
-        'class'        => (string)MetaTagContainer::class,
49
+        'class'        => (string) MetaTagContainer::class,
50 50
         'include'      => true,
51 51
         'dependencies' => [
52 52
         ],
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         'name'         => 'Miscellaneous',
58 58
         'description'  => 'Miscellaneous Meta Tags',
59 59
         'handle'       => TagService::MISC_HANDLE,
60
-        'class'        => (string)MetaTagContainer::class,
60
+        'class'        => (string) MetaTagContainer::class,
61 61
         'include'      => true,
62 62
         'dependencies' => [
63 63
         ],
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__
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         Event::on(
184 184
             CampaignElement::class,
185 185
             CampaignElement::EVENT_DEFINE_SIDEBAR_HTML,
186
-            static function (DefineHtmlEvent $event) {
186
+            static function(DefineHtmlEvent $event) {
187 187
                 Craft::debug(
188 188
                     'CampaignElement::EVENT_DEFINE_SIDEBAR_HTML',
189 189
                     __METHOD__
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
             ConfigHelper::getConfigFromFile(self::configFilePath()),
386 386
             [
387 387
                 'sourceId' => $sourceModel->id,
388
-                'sourceName' => (string)$sourceModel->name,
388
+                'sourceName' => (string) $sourceModel->name,
389 389
                 'sourceHandle' => $sourceModel->handle,
390 390
             ]
391 391
         );
Please login to merge, or discard this patch.
src/Seomatic.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
             $lastSegment = end($segments);
343 343
             $site = Craft::$app->getSites()->getSiteByHandle($lastSegment);
344 344
             if ($site !== null) {
345
-                $siteSuffix = '/' . $lastSegment;
345
+                $siteSuffix = '/'.$lastSegment;
346 346
             }
347 347
         }
348 348
         $currentUser = Craft::$app->getUser()->getIdentity();
@@ -350,31 +350,31 @@  discard block
 block discarded – undo
350 350
         if ($currentUser->can('seomatic:dashboard')) {
351 351
             $subNavs['dashboard'] = [
352 352
                 'label' => Craft::t('seomatic', 'Dashboard'),
353
-                'url' => 'seomatic/dashboard' . $siteSuffix,
353
+                'url' => 'seomatic/dashboard'.$siteSuffix,
354 354
             ];
355 355
         }
356 356
         if ($currentUser->can('seomatic:global-meta')) {
357 357
             $subNavs['global'] = [
358 358
                 'label' => Craft::t('seomatic', 'Global SEO'),
359
-                'url' => 'seomatic/global/general' . $siteSuffix,
359
+                'url' => 'seomatic/global/general'.$siteSuffix,
360 360
             ];
361 361
         }
362 362
         if ($currentUser->can('seomatic:content-meta')) {
363 363
             $subNavs['content'] = [
364 364
                 'label' => Craft::t('seomatic', 'Content SEO'),
365
-                'url' => 'seomatic/content' . $siteSuffix,
365
+                'url' => 'seomatic/content'.$siteSuffix,
366 366
             ];
367 367
         }
368 368
         if ($currentUser->can('seomatic:site-settings')) {
369 369
             $subNavs['site'] = [
370 370
                 'label' => Craft::t('seomatic', 'Site Settings'),
371
-                'url' => 'seomatic/site/identity' . $siteSuffix,
371
+                'url' => 'seomatic/site/identity'.$siteSuffix,
372 372
             ];
373 373
         }
374 374
         if ($currentUser->can('seomatic:tracking-scripts')) {
375 375
             $subNavs['tracking'] = [
376 376
                 'label' => Craft::t('seomatic', 'Tracking Scripts'),
377
-                'url' => 'seomatic/tracking/gtag' . $siteSuffix,
377
+                'url' => 'seomatic/tracking/gtag'.$siteSuffix,
378 378
             ];
379 379
         }
380 380
         $editableSettings = true;
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
         Event::on(
420 420
             Plugins::class,
421 421
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
422
-            function (PluginEvent $event) {
422
+            function(PluginEvent $event) {
423 423
                 if ($event->plugin === $this) {
424 424
                     // Invalidate our caches after we've been installed
425 425
                     $this->clearAllCaches();
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
         Event::on(
441 441
             ClearCaches::class,
442 442
             ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
443
-            function (RegisterCacheOptionsEvent $event) {
443
+            function(RegisterCacheOptionsEvent $event) {
444 444
                 Craft::debug(
445 445
                     'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS',
446 446
                     __METHOD__
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
         Event::on(
457 457
             Plugins::class,
458 458
             Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS,
459
-            function (PluginEvent $event) {
459
+            function(PluginEvent $event) {
460 460
                 if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) {
461 461
                     // For all the emojis
462 462
                     $settingsModel = $this->getSettings();
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
         Event::on(
487 487
             Plugins::class,
488 488
             Plugins::EVENT_AFTER_LOAD_PLUGINS,
489
-            function () {
489
+            function() {
490 490
                 // Delay registering SEO Elements to give other plugins a chance to load first
491 491
                 $this->seoElements->getAllSeoElementTypes(false);
492 492
                 // Delay installing GQL handlers to give other plugins a chance to register their own first
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
         Event::on(
508 508
             Fields::class,
509 509
             Fields::EVENT_REGISTER_FIELD_TYPES,
510
-            static function (RegisterComponentTypesEvent $event) {
510
+            static function(RegisterComponentTypesEvent $event) {
511 511
                 $event->types[] = SeoSettingsField::class;
512 512
                 $event->types[] = Seomatic_MetaField::class;
513 513
             }
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
         Event::on(
517 517
             Elements::class,
518 518
             Elements::EVENT_AFTER_SAVE_ELEMENT,
519
-            static function (ElementEvent $event) {
519
+            static function(ElementEvent $event) {
520 520
                 Craft::debug(
521 521
                     'Elements::EVENT_AFTER_SAVE_ELEMENT',
522 522
                     __METHOD__
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
         Event::on(
537 537
             Elements::class,
538 538
             Elements::EVENT_AFTER_DELETE_ELEMENT,
539
-            static function (ElementEvent $event) {
539
+            static function(ElementEvent $event) {
540 540
                 Craft::debug(
541 541
                     'Elements::EVENT_AFTER_DELETE_ELEMENT',
542 542
                     __METHOD__
@@ -555,19 +555,19 @@  discard block
 block discarded – undo
555 555
             Event::on(
556 556
                 Entry::class,
557 557
                 Element::EVENT_REGISTER_PREVIEW_TARGETS,
558
-                static function (RegisterPreviewTargetsEvent $e) {
558
+                static function(RegisterPreviewTargetsEvent $e) {
559 559
                     /** @var Element $element */
560 560
                     $element = $e->sender;
561 561
                     if ($element->uri !== null) {
562 562
                         $e->previewTargets[] = [
563
-                            'label' => '
Please login to merge, or discard this patch.