Passed
Push — develop ( d3878a...248214 )
by Jens
02:17
created
src/CloudControl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             if (preg_match('/\.(?:js|ico|txt|gif|jpg|jpeg|png|bmp|css|html|htm|php|pdf|exe|eot|svg|ttf|woff|ogg|mp3|xml|map|scss)$/',
48 48
                 $_SERVER['REQUEST_URI'])) {
49 49
                 if (file_exists($dir . $_SERVER["REQUEST_URI"])) {
50
-                    return true;    // serve the requested resource as-is.
50
+                    return true; // serve the requested resource as-is.
51 51
                 }
52 52
             }
53 53
         }
Please login to merge, or discard this patch.
src/images/methods/Watermark.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
          */
38 38
         public function SetTransparency($transparency)
39 39
         {
40
-            $this->_transparency = (int)$transparency;
40
+            $this->_transparency = (int) $transparency;
41 41
             return $this;
42 42
         }
43 43
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
          */
65 65
         protected function calculateX($imageResource)
66 66
         {
67
-            if ((int)$this->_x === $this->_x) {
67
+            if ((int) $this->_x === $this->_x) {
68 68
                 return $this->_x;
69 69
             }
70 70
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             } elseif ($x == 'right') {
81 81
                 $x = $imageWidth - $watermarkWidth;
82 82
             }
83
-            return (int)$x;
83
+            return (int) $x;
84 84
         }
85 85
 
86 86
         /**
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
          */
93 93
         public function calculateY($imageResource)
94 94
         {
95
-            if ((int)$this->_y === $this->_y) {
95
+            if ((int) $this->_y === $this->_y) {
96 96
                 return $this->_y;
97 97
             }
98 98
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             } elseif ($y == 'bottom') {
109 109
                 $y = $imageHeight - $watermarkHeight;
110 110
             }
111
-            return (int)$y;
111
+            return (int) $y;
112 112
         }
113 113
 
114 114
         /**
Please login to merge, or discard this patch.
src/components/CachableBaseComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $cacheExists = $this->cache !== false;
102 102
             $cacheExpired = false;
103 103
             if ($cacheExists) {
104
-                $cacheCreationStamp = (int)$this->cache->creationStamp;
104
+                $cacheCreationStamp = (int) $this->cache->creationStamp;
105 105
                 $currentTime = time();
106 106
                 $cacheAge = $currentTime - $cacheCreationStamp;
107 107
                 $maxAgeInterval = new \DateInterval($this->maxAge);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     private function setHeadersFromCache()
129 129
     {
130 130
         if (isset($this->cache->headers)) {
131
-            $headers = (array)json_decode($this->cache->headers);
131
+            $headers = (array) json_decode($this->cache->headers);
132 132
             /** @var array $headers */
133 133
             foreach ($headers as $headerName => $headerContent) {
134 134
                 ResponseHeaders::add($headerName, $headerContent);
Please login to merge, or discard this patch.
src/images/Image.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             }
110 110
 
111 111
             if ($mimeTypeConstantValue == IMAGETYPE_PNG) {
112
-                return imagepng($imageResource, $path, ((int)($quality / 10) - 1));
112
+                return imagepng($imageResource, $path, ((int) ($quality / 10) - 1));
113 113
             }
114 114
 
115 115
             throw new \RuntimeException('Not a valid mimetypeconstant given see function documentation');
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
                 $g = hexdec($body[$iPos + 2] . $body[$iPos + 3]);
292 292
                 $b = hexdec($body[$iPos] . $body[$iPos + 1]);
293 293
                 //    Calculate and draw the pixel
294
-                $color = imagecolorallocate($image, (int)$r, (int)$g, (int)$b);
294
+                $color = imagecolorallocate($image, (int) $r, (int) $g, (int) $b);
295 295
                 imagesetpixel($image, $x, $height - $y, $color);
296 296
                 //    Raise the horizontal position
297 297
                 $x++;
Please login to merge, or discard this patch.