@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | } |
| 176 | 176 | $asset = self::assetFromAssetOrId($asset, $siteId); |
| 177 | 177 | if (($asset !== null) && ($asset instanceof Asset)) { |
| 178 | - $width = (string)$asset->getWidth($transform); |
|
| 178 | + $width = (string) $asset->getWidth($transform); |
|
| 179 | 179 | if ($width === null) { |
| 180 | 180 | $width = ''; |
| 181 | 181 | } |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | } |
| 207 | 207 | $asset = self::assetFromAssetOrId($asset, $siteId); |
| 208 | 208 | if (($asset !== null) && ($asset instanceof Asset)) { |
| 209 | - $height = (string)$asset->getHeight($transform); |
|
| 209 | + $height = (string) $asset->getHeight($transform); |
|
| 210 | 210 | if ($height === null) { |
| 211 | 211 | $height = ''; |
| 212 | 212 | } |
@@ -231,13 +231,13 @@ discard block |
||
| 231 | 231 | if (\is_array($assetIds)) { |
| 232 | 232 | foreach ($assetIds as $assetId) { |
| 233 | 233 | if (!empty($assetId)) { |
| 234 | - $assets[] = $elements->getElementById((int)$assetId, Asset::class, $siteId); |
|
| 234 | + $assets[] = $elements->getElementById((int) $assetId, Asset::class, $siteId); |
|
| 235 | 235 | } |
| 236 | 236 | } |
| 237 | 237 | } else { |
| 238 | 238 | $assetId = $assetIds; |
| 239 | 239 | if (!empty($assetId)) { |
| 240 | - $assets[] = $elements->getElementById((int)$assetId, Asset::class, $siteId); |
|
| 240 | + $assets[] = $elements->getElementById((int) $assetId, Asset::class, $siteId); |
|
| 241 | 241 | } |
| 242 | 242 | } |
| 243 | 243 | } |