Completed
Push — master ( 2eb7e3...927700 )
by Tim
25:04 queued 10:07
created
Classes/RealUrlImage.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     /**
161 161
      * Add the absrefprefix
162 162
      *
163
-     * @param $url
163
+     * @param string $url
164 164
      *
165 165
      * @return string
166 166
      */
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * @param array $info image info array:
180 180
      * @param mixed $file
181 181
      *
182
-     * @param null $cObj
182
+     * @param Xclass\Frontend\ContentObject\ContentObjectRenderer $cObj
183 183
      *
184 184
      * @return string
185 185
      */
Please login to merge, or discard this patch.
Classes/Xclass/Frontend/ContentObject/ContentObjectRenderer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,12 +90,12 @@  discard block
 block discarded – undo
90 90
         }
91 91
 
92 92
         $imageTagValues = [
93
-            'width'               => (int)$info[0],
94
-            'height'              => (int)$info[1],
93
+            'width'               => (int) $info[0],
94
+            'height'              => (int) $info[1],
95 95
             'src'                 => htmlspecialchars($source),
96 96
             'params'              => $params,
97 97
             'altParams'           => $altParam,
98
-            'border'              => $this->getBorderAttr(' border="' . (int)$conf['border'] . '"'),
98
+            'border'              => $this->getBorderAttr(' border="' . (int) $conf['border'] . '"'),
99 99
             'sourceCollection'    => $sourceCollection,
100 100
             'selfClosingTagSlash' => (!empty($tsfe->xhtmlDoctype) ? ' /' : ''),
101 101
         ];
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             $theValue = $this->imageLinkWrap($theValue, $originalFile, $conf['imageLinkWrap.']);
123 123
         }
124 124
         $wrap = isset($conf['wrap.']) ? $this->stdWrap($conf['wrap'], $conf['wrap.']) : $conf['wrap'];
125
-        if ((string)$wrap !== '') {
125
+        if ((string) $wrap !== '') {
126 126
             $theValue = $this->wrap($theValue, $conf['wrap']);
127 127
         }
128 128
         return $theValue;
Please login to merge, or discard this patch.