@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | /** |
| 160 | 160 | * Add the absrefprefix |
| 161 | 161 | * |
| 162 | - * @param $url |
|
| 162 | + * @param string $url |
|
| 163 | 163 | * |
| 164 | 164 | * @return string |
| 165 | 165 | */ |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | * @param array $info image info array: |
| 179 | 179 | * @param mixed $file |
| 180 | 180 | * |
| 181 | - * @param null $cObj |
|
| 181 | + * @param Xclass\Frontend\ContentObject\ContentObjectRenderer $cObj |
|
| 182 | 182 | * |
| 183 | 183 | * @return string |
| 184 | 184 | */ |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use FRUIT\FlRealurlImage\Provider\TypoScriptProvider; |
| 18 | 18 | use FRUIT\FlRealurlImage\Provider\VhsPictureProvider; |
| 19 | 19 | use FRUIT\FlRealurlImage\Provider\ViewHelperProvider; |
| 20 | -use FRUIT\FlRealurlImage\Service\FileInformation; |
|
| 21 | 20 | use TYPO3\CMS\Core\Cache\CacheManager; |
| 22 | 21 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
| 23 | 22 | use TYPO3\CMS\Core\Utility\MathUtility; |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | $this->new_fileName = ''; |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | - $enableByConfiguration = (bool)$this->fl_conf['enable']; |
|
| 243 | + $enableByConfiguration = (bool) $this->fl_conf['enable']; |
|
| 244 | 244 | if (!$enableByConfiguration) { |
| 245 | 245 | $this->enable = $enableByConfiguration; |
| 246 | 246 | } |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | } else { |
| 444 | 444 | $hashBase = PathUtility::pathinfo($this->org_fileName, PATHINFO_BASENAME); |
| 445 | 445 | } |
| 446 | - $hashLength = isset($this->fl_conf['hashLength']) ? MathUtility::forceIntegerInRange((int)$this->fl_conf['hashLength'], 0, |
|
| 446 | + $hashLength = isset($this->fl_conf['hashLength']) ? MathUtility::forceIntegerInRange((int) $this->fl_conf['hashLength'], 0, |
|
| 447 | 447 | strlen($hashBase)) : 0; |
| 448 | 448 | if ($hashLength) { |
| 449 | 449 | $textBase .= $this->getSpaceCharacter() . substr($hashBase, 0, $hashLength); |
@@ -518,8 +518,8 @@ discard block |
||
| 518 | 518 | if ($cache->has($cacheIdent)) { |
| 519 | 519 | $data = unserialize($cache->get($new_fileName)); |
| 520 | 520 | $pids = GeneralUtility::intExplode(',', $data['page_id'], true); |
| 521 | - if (!in_array((int)$GLOBALS['TSFE']->id, $pids)) { |
|
| 522 | - $pids[] = (int)$GLOBALS['TSFE']->id; |
|
| 521 | + if (!in_array((int) $GLOBALS['TSFE']->id, $pids)) { |
|
| 522 | + $pids[] = (int) $GLOBALS['TSFE']->id; |
|
| 523 | 523 | } |
| 524 | 524 | $data['tstamp'] = time(); |
| 525 | 525 | $data['page_id'] = implode(',', $pids); |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * @param array $arguments |
| 90 | - * @param callable|\Closure $renderChildrenClosure |
|
| 90 | + * @param \Closure $renderChildrenClosure |
|
| 91 | 91 | * @param RenderingContextInterface $renderingContext |
| 92 | 92 | * |
| 93 | 93 | * @return string |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | |
| 11 | 11 | use FRUIT\FlRealurlImage\RealUrlImage; |
| 12 | 12 | use TYPO3\CMS\Core\Imaging\GraphicalFunctions; |
| 13 | -use TYPO3\CMS\Core\Resource\Exception; |
|
| 14 | 13 | use TYPO3\CMS\Core\Resource\File; |
| 15 | 14 | use TYPO3\CMS\Core\Resource\FileReference; |
| 16 | 15 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | 'src' => htmlspecialchars($source), |
| 104 | 104 | 'params' => $params, |
| 105 | 105 | 'altParams' => $altParam, |
| 106 | - 'border' => $this->getBorderAttr(' border="' . (int)$conf['border'] . '"'), |
|
| 106 | + 'border' => $this->getBorderAttr(' border="' . (int) $conf['border'] . '"'), |
|
| 107 | 107 | 'sourceCollection' => $sourceCollection, |
| 108 | 108 | 'selfClosingTagSlash' => (!empty($GLOBALS['TSFE']->xhtmlDoctype) ? ' /' : ''), |
| 109 | 109 | ); |
@@ -177,12 +177,12 @@ discard block |
||
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | $imageTagValues = array( |
| 180 | - 'width' => (int)$info[0], |
|
| 181 | - 'height' => (int)$info[1], |
|
| 180 | + 'width' => (int) $info[0], |
|
| 181 | + 'height' => (int) $info[1], |
|
| 182 | 182 | 'src' => htmlspecialchars($source), |
| 183 | 183 | 'params' => $params, |
| 184 | 184 | 'altParams' => $altParam, |
| 185 | - 'border' => $this->getBorderAttr(' border="' . (int)$conf['border'] . '"'), |
|
| 185 | + 'border' => $this->getBorderAttr(' border="' . (int) $conf['border'] . '"'), |
|
| 186 | 186 | 'sourceCollection' => $sourceCollection, |
| 187 | 187 | 'selfClosingTagSlash' => (!empty($tsfe->xhtmlDoctype) ? ' /' : ''), |
| 188 | 188 | ); |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | $theValue = $this->imageLinkWrap($theValue, $originalFile, $conf['imageLinkWrap.']); |
| 209 | 209 | } |
| 210 | 210 | $wrap = isset($conf['wrap.']) ? $this->stdWrap($conf['wrap'], $conf['wrap.']) : $conf['wrap']; |
| 211 | - if ((string)$wrap !== '') { |
|
| 211 | + if ((string) $wrap !== '') { |
|
| 212 | 212 | $theValue = $this->wrap($theValue, $conf['wrap']); |
| 213 | 213 | } |
| 214 | 214 | return $theValue; |