@@ -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 | $data = []; |
73 | 73 | $sortField = 'sourceName'; |
@@ -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', |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * @inheritdoc |
34 | 34 | */ |
35 | - protected array|bool|int $allowAnonymous = [ |
|
35 | + protected array | bool | int $allowAnonymous = [ |
|
36 | 36 | 'social-media', |
37 | 37 | ]; |
38 | 38 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $html = ''; |
54 | 54 | |
55 | 55 | // Don't allow the preview to be accessed publicly |
56 | - $this->requireAuthorization(Seomatic::SEOMATIC_PREVIEW_AUTHORIZATION_KEY . $elementId); |
|
56 | + $this->requireAuthorization(Seomatic::SEOMATIC_PREVIEW_AUTHORIZATION_KEY.$elementId); |
|
57 | 57 | |
58 | 58 | /** @var Element $element */ |
59 | 59 | $element = Craft::$app->getElements()->getElementById($elementId, null, $siteId); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * @inheritdoc |
36 | 36 | */ |
37 | - protected array|bool|int $allowAnonymous = [ |
|
37 | + protected array | bool | int $allowAnonymous = [ |
|
38 | 38 | 'seo-file-link', |
39 | 39 | ]; |
40 | 40 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | // Add the Link header |
85 | 85 | if (!empty($canonical)) { |
86 | - $headerValue = '<' . $canonical . '>; rel="canonical"'; |
|
86 | + $headerValue = '<'.$canonical.'>; rel="canonical"'; |
|
87 | 87 | $response->headers->add('Link', $headerValue); |
88 | 88 | } |
89 | 89 | // Ensure the file type is allowed |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * @var bool|array |
51 | 51 | */ |
52 | - protected array|bool|int $allowAnonymous = [ |
|
52 | + protected array | bool | int $allowAnonymous = [ |
|
53 | 53 | ]; |
54 | 54 | |
55 | 55 | // Public Methods |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function actionGenerate() |
76 | 76 | { |
77 | - echo 'Generating sitemap' . PHP_EOL; |
|
77 | + echo 'Generating sitemap'.PHP_EOL; |
|
78 | 78 | if ($this->siteId !== null) { |
79 | 79 | $siteIds[] = $this->siteId; |
80 | 80 | } else { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | ]); |
117 | 117 | } |
118 | 118 | |
119 | - echo '---' . PHP_EOL; |
|
119 | + echo '---'.PHP_EOL; |
|
120 | 120 | } |
121 | 121 | } |
122 | 122 | } |