@@ -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 | ], |
@@ -31,7 +31,7 @@ |
||
31 | 31 | /** |
32 | 32 | * @inheritdoc |
33 | 33 | */ |
34 | - protected array|bool|int $allowAnonymous = [ |
|
34 | + protected array | bool | int $allowAnonymous = [ |
|
35 | 35 | 'sitemap-index', |
36 | 36 | 'sitemap-index-redirect', |
37 | 37 | 'sitemap', |
@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * @inheritdoc |
38 | 38 | */ |
39 | - protected array|bool|int $allowAnonymous = [ |
|
39 | + protected array | bool | int $allowAnonymous = [ |
|
40 | 40 | 'all-meta-containers', |
41 | 41 | 'meta-title-container', |
42 | 42 | 'meta-tag-container', |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * @inheritdoc |
32 | 32 | */ |
33 | - protected array|bool|int $allowAnonymous = [ |
|
33 | + protected array | bool | int $allowAnonymous = [ |
|
34 | 34 | 'humans', |
35 | 35 | 'robots', |
36 | 36 | 'ads', |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * @var bool|array |
48 | 48 | */ |
49 | - protected array|bool|int $allowAnonymous = [ |
|
49 | + protected array | bool | int $allowAnonymous = [ |
|
50 | 50 | ]; |
51 | 51 | |
52 | 52 | // Public Methods |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | // Query the db table |
101 | 101 | $offset = ($page - 1) * $per_page; |
102 | 102 | $currentSiteHandle = ''; |
103 | - if ((int)$siteId !== 0) { |
|
103 | + if ((int) $siteId !== 0) { |
|
104 | 104 | $site = Craft::$app->getSites()->getSiteById($siteId); |
105 | 105 | if ($site !== null) { |
106 | 106 | $currentSiteHandle = $site->handle; |
@@ -155,11 +155,11 @@ discard block |
||
155 | 155 | $numGrades = \count(SettingsController::SETUP_GRADES); |
156 | 156 | $numFields = \count(SettingsController::SEO_SETUP_FIELDS); |
157 | 157 | foreach (SettingsController::SEO_SETUP_FIELDS as $setupField => $setupLabel) { |
158 | - $stat += (int)!empty($metaBundle->metaGlobalVars[$setupField]); |
|
158 | + $stat += (int) !empty($metaBundle->metaGlobalVars[$setupField]); |
|
159 | 159 | $value = $variables['contentSetupChecklist'][$setupField]['value'] ?? 0; |
160 | 160 | $variables['contentSetupChecklist'][$setupField] = [ |
161 | 161 | 'label' => $setupLabel, |
162 | - 'value' => $value + (int)!empty($metaBundle->metaGlobalVars[$setupField]), |
|
162 | + 'value' => $value + (int) !empty($metaBundle->metaGlobalVars[$setupField]), |
|
163 | 163 | ]; |
164 | 164 | } |
165 | 165 | $stat = round($numGrades - (($stat * $numGrades) / $numFields)); |
@@ -66,8 +66,8 @@ |
||
66 | 66 | string $sort = 'sourceName|asc', |
67 | 67 | int $page = 1, |
68 | 68 | int $per_page = 20, |
69 | - $filter = '', |
|
70 | - $siteId = 0 |
|
69 | + $filter = '', |
|
70 | + $siteId = 0 |
|
71 | 71 | ): Response |
72 | 72 | { |
73 | 73 | $data = []; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | /** |
31 | 31 | * @inheritdoc |
32 | 32 | */ |
33 | - protected array|bool|int $allowAnonymous = [ |
|
33 | + protected array | bool | int $allowAnonymous = [ |
|
34 | 34 | 'get-type', |
35 | 35 | 'get-decomposed-type', |
36 | 36 | 'get-type-array', |