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