Passed
Push — develop ( ede512...f15a2d )
by Andrew
42:08 queued 24:00
created
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.