Passed
Push — v3 ( 81cbeb...f0e9b3 )
by Andrew
36:13 queued 23:36
created
src/Seomatic.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         self::$cacheDuration = self::$devMode
271 271
             ? self::DEVMODE_CACHE_DURATION
272 272
             : self::$settings->metaCacheDuration ?? null;
273
-        self::$cacheDuration = self::$cacheDuration === null ? null : (int)self::$cacheDuration;
273
+        self::$cacheDuration = self::$cacheDuration === null ? null : (int) self::$cacheDuration;
274 274
         self::$environment = EnvironmentHelper::determineEnvironment();
275 275
         MetaValueHelper::cache();
276 276
         // Version helpers
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
         Event::on(
346 346
             Plugins::class,
347 347
             Plugins::EVENT_AFTER_INSTALL_PLUGIN,
348
-            function (PluginEvent $event) {
348
+            function(PluginEvent $event) {
349 349
                 if ($event->plugin === $this) {
350 350
                     // Invalidate our caches after we've been installed
351 351
                     $this->clearAllCaches();
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         Event::on(
367 367
             ClearCaches::class,
368 368
             ClearCaches::EVENT_REGISTER_CACHE_OPTIONS,
369
-            function (RegisterCacheOptionsEvent $event) {
369
+            function(RegisterCacheOptionsEvent $event) {
370 370
                 Craft::debug(
371 371
                     'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS',
372 372
                     __METHOD__
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
         Event::on(
383 383
             Plugins::class,
384 384
             Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS,
385
-            function (PluginEvent $event) {
385
+            function(PluginEvent $event) {
386 386
                 if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) {
387 387
                     // For all the emojis
388 388
                     $settingsModel = $this->getSettings();
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
         Event::on(
436 436
             Plugins::class,
437 437
             Plugins::EVENT_AFTER_LOAD_PLUGINS,
438
-            function () {
438
+            function() {
439 439
                 // Delay registering SEO Elements to give other plugins a chance to load first
440 440
                 $this->seoElements->getAllSeoElementTypes(false);
441 441
                 // Delay installing GQL handlers to give other plugins a chance to register their own first
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
         Event::on(
457 457
             Fields::class,
458 458
             Fields::EVENT_REGISTER_FIELD_TYPES,
459
-            function (RegisterComponentTypesEvent $event) {
459
+            function(RegisterComponentTypesEvent $event) {
460 460
                 $event->types[] = SeoSettingsField::class;
461 461
                 $event->types[] = Seomatic_MetaField::class;
462 462
             }
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
         Event::on(
466 466
             Elements::class,
467 467
             Elements::EVENT_AFTER_SAVE_ELEMENT,
468
-            function (ElementEvent $event) {
468
+            function(ElementEvent $event) {
469 469
                 Craft::debug(
470 470
                     'Elements::EVENT_AFTER_SAVE_ELEMENT',
471 471
                     __METHOD__
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
         Event::on(
486 486
             Elements::class,
487 487
             Elements::EVENT_AFTER_DELETE_ELEMENT,
488
-            function (ElementEvent $event) {
488
+            function(ElementEvent $event) {
489 489
                 Craft::debug(
490 490
                     'Elements::EVENT_AFTER_DELETE_ELEMENT',
491 491
                     __METHOD__
@@ -504,19 +504,19 @@  discard block
 block discarded – undo
504 504
             Event::on(
505 505
                 Entry::class,
506 506
                 Entry::EVENT_REGISTER_PREVIEW_TARGETS,
507
-                function (RegisterPreviewTargetsEvent $e) {
507
+                function(RegisterPreviewTargetsEvent $e) {
508 508
                     /** @var Element $element */
509 509
                     $element = $e->sender;
510 510
                     if ($element->uri !== null) {
511 511
                         $e->previewTargets[] = [
512
-                            'label' => '
Please login to merge, or discard this patch.