@@ -19,11 +19,11 @@ |
||
| 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 | ], |
@@ -19,11 +19,11 @@ |
||
| 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 | ], |
@@ -19,11 +19,11 @@ |
||
| 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 | ], |
@@ -19,11 +19,11 @@ |
||
| 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 | ], |
@@ -19,11 +19,11 @@ |
||
| 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 | ], |
@@ -19,11 +19,11 @@ |
||
| 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 | ], |
@@ -19,11 +19,11 @@ |
||
| 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 | ], |
@@ -19,11 +19,11 @@ |
||
| 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 | ], |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | BaseEvent::on( |
| 85 | 85 | CalendarsService::class, |
| 86 | 86 | CalendarsService::EVENT_AFTER_SAVE, |
| 87 | - function (SaveModelEvent $event) { |
|
| 87 | + function(SaveModelEvent $event) { |
|
| 88 | 88 | Craft::debug( |
| 89 | 89 | 'CalendarsService::EVENT_AFTER_DELETE', |
| 90 | 90 | __METHOD__ |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | BaseEvent::on( |
| 96 | 96 | CalendarsService::class, |
| 97 | 97 | CalendarsService::EVENT_AFTER_DELETE, |
| 98 | - function (DeleteModelEvent $event) { |
|
| 98 | + function(DeleteModelEvent $event) { |
|
| 99 | 99 | Craft::debug( |
| 100 | 100 | 'CalendarsService::EVENT_AFTER_DELETE', |
| 101 | 101 | __METHOD__ |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | BaseEvent::on( |
| 111 | 111 | CalendarsService::class, |
| 112 | 112 | CalendarsService::EVENT_AFTER_SAVE, |
| 113 | - function (SaveModelEvent $event) { |
|
| 113 | + function(SaveModelEvent $event) { |
|
| 114 | 114 | Craft::debug( |
| 115 | 115 | 'CalendarsService::EVENT_AFTER_SAVE', |
| 116 | 116 | __METHOD__ |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | BaseEvent::on( |
| 136 | 136 | CalendarsService::class, |
| 137 | 137 | CalendarsService::EVENT_AFTER_DELETE, |
| 138 | - function (DeleteModelEvent $event) { |
|
| 138 | + function(DeleteModelEvent $event) { |
|
| 139 | 139 | Craft::debug( |
| 140 | 140 | 'CalendarsService::EVENT_AFTER_DELETE', |
| 141 | 141 | __METHOD__ |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | // Install only for non-console Control Panel requests |
| 166 | 166 | if ($request->getIsCpRequest() && !$request->getIsConsoleRequest()) { |
| 167 | 167 | // Events sidebar |
| 168 | - Seomatic::$view->hook('cp.solspace.calendar.events.edit.details', function (&$context) { |
|
| 168 | + Seomatic::$view->hook('cp.solspace.calendar.events.edit.details', function(&$context) { |
|
| 169 | 169 | $html = ''; |
| 170 | 170 | Seomatic::$view->registerAssetBundle(SeomaticAsset::class); |
| 171 | 171 | /** @var Event $event */ |
@@ -238,8 +238,8 @@ discard block |
||
| 238 | 238 | $query = Event::find() |
| 239 | 239 | ->setCalendar($metaBundle->sourceHandle) |
| 240 | 240 | ->setLoadOccurrences(false) |
| 241 | - ->siteId((int)$metaBundle->sourceSiteId) |
|
| 242 | - ->limit((int)$metaBundle->metaSitemapVars->sitemapLimit); |
|
| 241 | + ->siteId((int) $metaBundle->sourceSiteId) |
|
| 242 | + ->limit((int) $metaBundle->metaSitemapVars->sitemapLimit); |
|
| 243 | 243 | |
| 244 | 244 | return $query; |
| 245 | 245 | } |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | ConfigHelper::getConfigFromFile(self::configFilePath()), |
| 401 | 401 | [ |
| 402 | 402 | 'sourceId' => $sourceModel->id, |
| 403 | - 'sourceName' => (string)$sourceModel->name, |
|
| 403 | + 'sourceName' => (string) $sourceModel->name, |
|
| 404 | 404 | 'sourceHandle' => $sourceModel->handle, |
| 405 | 405 | ] |
| 406 | 406 | ); |