@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $this->initConfiguration(); |
| 181 | 181 | $this->eventDispatcher = GeneralUtility::makeInstance(EventDispatcherInterface::class); |
| 182 | 182 | |
| 183 | - if($file instanceof FileReference) |
|
| 183 | + if ($file instanceof FileReference) |
|
| 184 | 184 | { |
| 185 | 185 | $this->init($conf, $info, $file, $cObj); |
| 186 | 186 | if ($this->enable && trim((string) $this->org_fileName) !== '') { |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | } |
| 191 | 191 | } |
| 192 | 192 | } |
| 193 | - if($file instanceof File) |
|
| 193 | + if ($file instanceof File) |
|
| 194 | 194 | { |
| 195 | 195 | $this->org_fileName = $file->getPublicUrl(); |
| 196 | 196 | } |
@@ -224,10 +224,10 @@ discard block |
||
| 224 | 224 | |
| 225 | 225 | // filetype |
| 226 | 226 | $this->fileTypeInformation = $image; |
| 227 | - $this->enable = (bool)($this->fl_conf['enable'] ?? 0); |
|
| 227 | + $this->enable = (bool) ($this->fl_conf['enable'] ?? 0); |
|
| 228 | 228 | |
| 229 | 229 | $this->new_fileName = $file->getProperty('realurl_image_name'); |
| 230 | - if($this->new_fileName === '' || $this->new_fileName === 'off') |
|
| 230 | + if ($this->new_fileName === '' || $this->new_fileName === 'off') |
|
| 231 | 231 | { |
| 232 | 232 | $this->enable = false; |
| 233 | 233 | } |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | $hashBase = PathUtility::pathinfo($this->org_fileName, PATHINFO_BASENAME); |
| 434 | 434 | } |
| 435 | 435 | $hashLength = isset($this->fl_conf['hashLength']) ? MathUtility::forceIntegerInRange( |
| 436 | - (int)$this->fl_conf['hashLength'], |
|
| 436 | + (int) $this->fl_conf['hashLength'], |
|
| 437 | 437 | 0, |
| 438 | 438 | strlen((string) $hashBase) |
| 439 | 439 | ) : 0; |
@@ -508,7 +508,7 @@ discard block |
||
| 508 | 508 | $currentPage = $this->getTypoScriptFrontendController()->id; |
| 509 | 509 | if ($cache->has($cacheIdent)) { |
| 510 | 510 | $data = $cache->get($cacheIdent); |
| 511 | - $pids = GeneralUtility::intExplode(',', (string)$data['page_id'], true); |
|
| 511 | + $pids = GeneralUtility::intExplode(',', (string) $data['page_id'], true); |
|
| 512 | 512 | if (!in_array($currentPage, $pids)) { |
| 513 | 513 | $pids[] = $currentPage; |
| 514 | 514 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function render($conf = []) |
| 32 | 32 | { |
| 33 | - if(ExtensionManagementUtility::isLoaded('trusted_url_params') === false) |
|
| 33 | + if (ExtensionManagementUtility::isLoaded('trusted_url_params') === false) |
|
| 34 | 34 | { |
| 35 | 35 | $this->cObj->setSkipRealUrlImageInGetImgResource(true); |
| 36 | 36 | } |