@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | $lastSegment = end($segments); |
347 | 347 | $site = Craft::$app->getSites()->getSiteByHandle($lastSegment); |
348 | 348 | if ($site !== null) { |
349 | - $siteSuffix = '/' . $lastSegment; |
|
349 | + $siteSuffix = '/'.$lastSegment; |
|
350 | 350 | } |
351 | 351 | } |
352 | 352 | $currentUser = Craft::$app->getUser()->getIdentity(); |
@@ -354,31 +354,31 @@ discard block |
||
354 | 354 | if ($currentUser->can('seomatic:dashboard')) { |
355 | 355 | $subNavs['dashboard'] = [ |
356 | 356 | 'label' => Craft::t('seomatic', 'Dashboard'), |
357 | - 'url' => 'seomatic/dashboard' . $siteSuffix, |
|
357 | + 'url' => 'seomatic/dashboard'.$siteSuffix, |
|
358 | 358 | ]; |
359 | 359 | } |
360 | 360 | if ($currentUser->can('seomatic:global-meta')) { |
361 | 361 | $subNavs['global'] = [ |
362 | 362 | 'label' => Craft::t('seomatic', 'Global SEO'), |
363 | - 'url' => 'seomatic/global/general' . $siteSuffix, |
|
363 | + 'url' => 'seomatic/global/general'.$siteSuffix, |
|
364 | 364 | ]; |
365 | 365 | } |
366 | 366 | if ($currentUser->can('seomatic:content-meta')) { |
367 | 367 | $subNavs['content'] = [ |
368 | 368 | 'label' => Craft::t('seomatic', 'Content SEO'), |
369 | - 'url' => 'seomatic/content' . $siteSuffix, |
|
369 | + 'url' => 'seomatic/content'.$siteSuffix, |
|
370 | 370 | ]; |
371 | 371 | } |
372 | 372 | if ($currentUser->can('seomatic:site-settings')) { |
373 | 373 | $subNavs['site'] = [ |
374 | 374 | 'label' => Craft::t('seomatic', 'Site Settings'), |
375 | - 'url' => 'seomatic/site/identity' . $siteSuffix, |
|
375 | + 'url' => 'seomatic/site/identity'.$siteSuffix, |
|
376 | 376 | ]; |
377 | 377 | } |
378 | 378 | if ($currentUser->can('seomatic:tracking-scripts')) { |
379 | 379 | $subNavs['tracking'] = [ |
380 | 380 | 'label' => Craft::t('seomatic', 'Tracking Scripts'), |
381 | - 'url' => 'seomatic/tracking/gtag' . $siteSuffix, |
|
381 | + 'url' => 'seomatic/tracking/gtag'.$siteSuffix, |
|
382 | 382 | ]; |
383 | 383 | } |
384 | 384 | $editableSettings = true; |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | Event::on( |
424 | 424 | Plugins::class, |
425 | 425 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
426 | - function (PluginEvent $event) { |
|
426 | + function(PluginEvent $event) { |
|
427 | 427 | if ($event->plugin === $this) { |
428 | 428 | // Invalidate our caches after we've been installed |
429 | 429 | $this->clearAllCaches(); |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | Event::on( |
445 | 445 | ClearCaches::class, |
446 | 446 | ClearCaches::EVENT_REGISTER_CACHE_OPTIONS, |
447 | - function (RegisterCacheOptionsEvent $event) { |
|
447 | + function(RegisterCacheOptionsEvent $event) { |
|
448 | 448 | Craft::debug( |
449 | 449 | 'ClearCaches::EVENT_REGISTER_CACHE_OPTIONS', |
450 | 450 | __METHOD__ |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | Event::on( |
461 | 461 | Plugins::class, |
462 | 462 | Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS, |
463 | - function (PluginEvent $event) { |
|
463 | + function(PluginEvent $event) { |
|
464 | 464 | if ($event->plugin === $this && !Craft::$app->getDb()->getSupportsMb4()) { |
465 | 465 | // For all the emojis |
466 | 466 | $settingsModel = $this->getSettings(); |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | Event::on( |
491 | 491 | Plugins::class, |
492 | 492 | Plugins::EVENT_AFTER_LOAD_PLUGINS, |
493 | - function () { |
|
493 | + function() { |
|
494 | 494 | // Delay registering SEO Elements to give other plugins a chance to load first |
495 | 495 | $this->seoElements->getAllSeoElementTypes(false); |
496 | 496 | // Delay installing GQL handlers to give other plugins a chance to register their own first |
@@ -511,7 +511,7 @@ discard block |
||
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 |
||
520 | 520 | Event::on( |
521 | 521 | Element::class, |
522 | 522 | Element::EVENT_AFTER_PROPAGATE, |
523 | - static function (ModelEvent $event) { |
|
523 | + static function(ModelEvent $event) { |
|
524 | 524 | Craft::debug( |
525 | 525 | 'Element::EVENT_AFTER_PROPAGATE', |
526 | 526 | __METHOD__ |
@@ -540,7 +540,7 @@ discard block |
||
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 |
||
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' => ' |