@@ -148,12 +148,12 @@ discard block |
||
| 148 | 148 | { |
| 149 | 149 | $path = $this->decomposeUrl($path_or_url); |
| 150 | 150 | $path_parts = pathinfo($path['path']); |
| 151 | - $new_path = $path_parts['filename'] . "." . $extension; |
|
| 151 | + $new_path = $path_parts['filename'].".".$extension; |
|
| 152 | 152 | if (!empty($path_parts['dirname']) && $path_parts['dirname'] !== ".") { |
| 153 | - $new_path = $path_parts['dirname'] . DIRECTORY_SEPARATOR . $new_path; |
|
| 153 | + $new_path = $path_parts['dirname'].DIRECTORY_SEPARATOR.$new_path; |
|
| 154 | 154 | $new_path = preg_replace('#/+#', '/', $new_path); |
| 155 | 155 | } |
| 156 | - $output = $path['prefix'] . $new_path . $path['suffix']; |
|
| 156 | + $output = $path['prefix'].$new_path.$path['suffix']; |
|
| 157 | 157 | return $output; |
| 158 | 158 | } |
| 159 | 159 | |
@@ -169,9 +169,9 @@ discard block |
||
| 169 | 169 | |
| 170 | 170 | $path = $this->decomposeUrl($path_or_url); |
| 171 | 171 | $path_parts = pathinfo($path['path']); |
| 172 | - $new_path = $directory . DIRECTORY_SEPARATOR . $path_parts['basename']; |
|
| 172 | + $new_path = $directory.DIRECTORY_SEPARATOR.$path_parts['basename']; |
|
| 173 | 173 | |
| 174 | - $output = $path['prefix'] . $new_path . $path['suffix']; |
|
| 174 | + $output = $path['prefix'].$new_path.$path['suffix']; |
|
| 175 | 175 | return $output; |
| 176 | 176 | } |
| 177 | 177 | |
@@ -187,12 +187,12 @@ discard block |
||
| 187 | 187 | { |
| 188 | 188 | $path = $this->decomposeUrl($path_or_url); |
| 189 | 189 | $path_parts = pathinfo($path['path']); |
| 190 | - $new_path = $path_parts['filename'] . $suffix . "." . $path_parts['extension']; |
|
| 190 | + $new_path = $path_parts['filename'].$suffix.".".$path_parts['extension']; |
|
| 191 | 191 | if (!empty($path_parts['dirname']) && $path_parts['dirname'] !== ".") { |
| 192 | - $new_path = $path_parts['dirname'] . DIRECTORY_SEPARATOR . $new_path; |
|
| 192 | + $new_path = $path_parts['dirname'].DIRECTORY_SEPARATOR.$new_path; |
|
| 193 | 193 | $new_path = preg_replace('#/+#', '/', $new_path); |
| 194 | 194 | } |
| 195 | - $output = $path['prefix'] . $new_path . $path['suffix']; |
|
| 195 | + $output = $path['prefix'].$new_path.$path['suffix']; |
|
| 196 | 196 | return $output; |
| 197 | 197 | } |
| 198 | 198 | |
@@ -211,11 +211,11 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | if (filter_var($path_or_url, FILTER_VALIDATE_URL)) { |
| 213 | 213 | $url_parts = parse_url($path_or_url); |
| 214 | - $result['prefix'] = $url_parts['scheme'] . "://" . $url_parts['host']; |
|
| 214 | + $result['prefix'] = $url_parts['scheme']."://".$url_parts['host']; |
|
| 215 | 215 | $result['path'] = $url_parts['path']; |
| 216 | 216 | $result['suffix'] = ""; |
| 217 | - $result['suffix'] .= (empty($url_parts['query'])) ? "" : "?" . $url_parts['query']; |
|
| 218 | - $result['suffix'] .= (empty($url_parts['fragment'])) ? "" : "#" . $url_parts['fragment']; |
|
| 217 | + $result['suffix'] .= (empty($url_parts['query'])) ? "" : "?".$url_parts['query']; |
|
| 218 | + $result['suffix'] .= (empty($url_parts['fragment'])) ? "" : "#".$url_parts['fragment']; |
|
| 219 | 219 | } else { |
| 220 | 220 | $result['prefix'] = ""; |
| 221 | 221 | $result['path'] = $path_or_url; |