@@ -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; |
@@ -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 | } |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | $hashBase = PathUtility::pathinfo($this->org_fileName, PATHINFO_BASENAME); |
447 | 447 | } |
448 | 448 | $hashLength = isset($this->fl_conf['hashLength']) ? MathUtility::forceIntegerInRange( |
449 | - (int)$this->fl_conf['hashLength'], |
|
449 | + (int) $this->fl_conf['hashLength'], |
|
450 | 450 | 0, |
451 | 451 | strlen($hashBase) |
452 | 452 | ) : 0; |
@@ -523,8 +523,8 @@ discard block |
||
523 | 523 | if ($cache->has($cacheIdent)) { |
524 | 524 | $data = unserialize($cache->get($new_fileName)); |
525 | 525 | $pids = GeneralUtility::intExplode(',', $data['page_id'], true); |
526 | - if (!in_array((int)$GLOBALS['TSFE']->id, $pids)) { |
|
527 | - $pids[] = (int)$GLOBALS['TSFE']->id; |
|
526 | + if (!in_array((int) $GLOBALS['TSFE']->id, $pids)) { |
|
527 | + $pids[] = (int) $GLOBALS['TSFE']->id; |
|
528 | 528 | } |
529 | 529 | $data['tstamp'] = time(); |
530 | 530 | $data['page_id'] = implode(',', $pids); |