@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | } |
| 191 | 191 | $asset = self::assetFromAssetOrIdOrQuery($asset, $siteId); |
| 192 | 192 | if (($asset !== null) && ($asset instanceof Asset)) { |
| 193 | - $width = (string)$asset->getWidth($transform); |
|
| 193 | + $width = (string) $asset->getWidth($transform); |
|
| 194 | 194 | if ($width === null) { |
| 195 | 195 | $width = ''; |
| 196 | 196 | } |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | } |
| 223 | 223 | $asset = self::assetFromAssetOrIdOrQuery($asset, $siteId); |
| 224 | 224 | if (($asset !== null) && ($asset instanceof Asset)) { |
| 225 | - $height = (string)$asset->getHeight($transform); |
|
| 225 | + $height = (string) $asset->getHeight($transform); |
|
| 226 | 226 | if ($height === null) { |
| 227 | 227 | $height = ''; |
| 228 | 228 | } |
@@ -247,13 +247,13 @@ discard block |
||
| 247 | 247 | if (is_array($assetIds)) { |
| 248 | 248 | foreach ($assetIds as $assetId) { |
| 249 | 249 | if (!empty($assetId)) { |
| 250 | - $assets[] = $elements->getElementById((int)$assetId, Asset::class, $siteId); |
|
| 250 | + $assets[] = $elements->getElementById((int) $assetId, Asset::class, $siteId); |
|
| 251 | 251 | } |
| 252 | 252 | } |
| 253 | 253 | } else { |
| 254 | 254 | $assetId = $assetIds; |
| 255 | 255 | if (!empty($assetId)) { |
| 256 | - $assets[] = $elements->getElementById((int)$assetId, Asset::class, $siteId); |
|
| 256 | + $assets[] = $elements->getElementById((int) $assetId, Asset::class, $siteId); |
|
| 257 | 257 | } |
| 258 | 258 | } |
| 259 | 259 | } |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | return $asset->one(); |
| 291 | 291 | } |
| 292 | 292 | |
| 293 | - $resolvedAssetId = (int)$asset; |
|
| 293 | + $resolvedAssetId = (int) $asset; |
|
| 294 | 294 | $resolvedSiteId = $siteId ?? 0; |
| 295 | 295 | if (isset(self::$cachedAssetsElements[$resolvedAssetId][$resolvedSiteId])) { |
| 296 | 296 | return self::$cachedAssetsElements[$resolvedAssetId][$resolvedSiteId]; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $foundFields = []; |
| 124 | 124 | if (!empty(self::FIELD_CLASSES[$fieldClassKey])) { |
| 125 | 125 | // Cache me if you can |
| 126 | - $memoKey = $fieldClassKey . $layout->id . ($keysOnly ? 'keys' : 'nokeys'); |
|
| 126 | + $memoKey = $fieldClassKey.$layout->id.($keysOnly ? 'keys' : 'nokeys'); |
|
| 127 | 127 | if (!empty(self::$fieldsOfTypeFromLayoutCache[$memoKey])) { |
| 128 | 128 | return self::$fieldsOfTypeFromLayoutCache[$memoKey]; |
| 129 | 129 | } |
@@ -240,8 +240,8 @@ discard block |
||
| 240 | 240 | // Prefix the keys with the global set name |
| 241 | 241 | $prefix = $global->handle; |
| 242 | 242 | $fields = array_combine( |
| 243 | - array_map(function ($key) use ($prefix) { |
|
| 244 | - return $prefix . '.' . $key; |
|
| 243 | + array_map(function($key) use ($prefix) { |
|
| 244 | + return $prefix.'.'.$key; |
|
| 245 | 245 | }, array_keys($fields)), |
| 246 | 246 | $fields |
| 247 | 247 | ); |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | } |
| 317 | 317 | if ($matrixBlockTypeModel) { |
| 318 | 318 | // Cache me if you can |
| 319 | - $memoKey = $fieldType . $matrixBlock->id . ($keysOnly ? 'keys' : 'nokeys'); |
|
| 319 | + $memoKey = $fieldType.$matrixBlock->id.($keysOnly ? 'keys' : 'nokeys'); |
|
| 320 | 320 | if (!empty(self::$matrixFieldsOfTypeCache[$memoKey])) { |
| 321 | 321 | return self::$matrixFieldsOfTypeCache[$memoKey]; |
| 322 | 322 | } |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | } |
| 360 | 360 | if ($neoBlockTypeModel) { |
| 361 | 361 | // Cache me if you can |
| 362 | - $memoKey = $fieldType . $neoBlock->id . ($keysOnly ? 'keys' : 'nokeys'); |
|
| 362 | + $memoKey = $fieldType.$neoBlock->id.($keysOnly ? 'keys' : 'nokeys'); |
|
| 363 | 363 | if (!empty(self::$neoFieldsOfTypeCache[$memoKey])) { |
| 364 | 364 | return self::$neoFieldsOfTypeCache[$memoKey]; |
| 365 | 365 | } |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | } |
| 402 | 402 | if ($superTableBlockTypeModel) { |
| 403 | 403 | // Cache me if you can |
| 404 | - $memoKey = $fieldType . $superTableBlock->id . ($keysOnly ? 'keys' : 'nokeys'); |
|
| 404 | + $memoKey = $fieldType.$superTableBlock->id.($keysOnly ? 'keys' : 'nokeys'); |
|
| 405 | 405 | if (!empty(self::$superTableFieldsOfTypeCache[$memoKey])) { |
| 406 | 406 | return self::$superTableFieldsOfTypeCache[$memoKey]; |
| 407 | 407 | } |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | /** |
| 98 | 98 | * @inheritdoc |
| 99 | 99 | */ |
| 100 | - public function getContentColumnType(): array|string |
|
| 100 | + public function getContentColumnType(): array | string |
|
| 101 | 101 | { |
| 102 | 102 | return Schema::TYPE_TEXT; |
| 103 | 103 | } |
@@ -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 | ], |