Passed
Push — develop ( 172c6e...1a0f8b )
by Andrew
09:53
created
src/imagetransforms/ImageTransform.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -148,14 +148,14 @@  discard block
 block discarded – undo
148 148
     {
149 149
         $path = $this->decomposeUrl($pathOrUrl);
150 150
         $path_parts = pathinfo($path['path']);
151
-        $new_path = ($path_parts['filename'] ?? '') . '.' . ($path_parts['extension'] ?? '') . $extension;
151
+        $new_path = ($path_parts['filename'] ?? '').'.'.($path_parts['extension'] ?? '').$extension;
152 152
         if (!empty($path_parts['dirname']) && $path_parts['dirname'] !== '.') {
153 153
             $dirname = $path_parts['dirname'];
154 154
             $dirname = $dirname === '/' ? '' : $dirname;
155
-            $new_path = $dirname . DIRECTORY_SEPARATOR . $new_path;
155
+            $new_path = $dirname.DIRECTORY_SEPARATOR.$new_path;
156 156
             $new_path = preg_replace('/([^:])(\/{2,})/', '$1/', $new_path);
157 157
         }
158
-        $output = $path['prefix'] . $new_path . $path['suffix'];
158
+        $output = $path['prefix'].$new_path.$path['suffix'];
159 159
 
160 160
         return $output;
161 161
     }
@@ -176,14 +176,14 @@  discard block
 block discarded – undo
176 176
 
177 177
         if (filter_var($pathOrUrl, FILTER_VALIDATE_URL)) {
178 178
             $url_parts = parse_url($pathOrUrl);
179
-            $result['prefix'] = $url_parts['scheme'] . '://' . $url_parts['host'];
179
+            $result['prefix'] = $url_parts['scheme'].'://'.$url_parts['host'];
180 180
             if (!empty($url_parts['port'])) {
181
-                $result['prefix'] .= ':' . $url_parts['port'];
181
+                $result['prefix'] .= ':'.$url_parts['port'];
182 182
             }
183 183
             $result['path'] = $url_parts['path'];
184 184
             $result['suffix'] = '';
185
-            $result['suffix'] .= empty($url_parts['query']) ? '' : '?' . $url_parts['query'];
186
-            $result['suffix'] .= empty($url_parts['fragment']) ? '' : '#' . $url_parts['fragment'];
185
+            $result['suffix'] .= empty($url_parts['query']) ? '' : '?'.$url_parts['query'];
186
+            $result['suffix'] .= empty($url_parts['fragment']) ? '' : '#'.$url_parts['fragment'];
187 187
         } else {
188 188
             $result['prefix'] = '';
189 189
             $result['path'] = $pathOrUrl;
Please login to merge, or discard this patch.