@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | $manifestPath = '/chief-assets/back'; |
| 21 | 21 | |
| 22 | 22 | // Manifest expects each entry to start with a leading slash - we make sure to deduplicate the manifest path. |
| 23 | - $entry = str_replace($manifestPath, '', '/' . ltrim($filepath, '/')); |
|
| 23 | + $entry = str_replace($manifestPath, '', '/'.ltrim($filepath, '/')); |
|
| 24 | 24 | |
| 25 | 25 | try { |
| 26 | 26 | // Paths should be given relative to the manifestpath so make sure to remove the basepath |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | } catch (\Exception $e) { |
| 29 | 29 | \Illuminate\Support\Facades\Log::error($e); |
| 30 | 30 | |
| 31 | - return $manifestPath . $entry; |
|
| 31 | + return $manifestPath.$entry; |
|
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | $teaser = mb_substr($text, 0, $max, 'utf-8'); |
| 118 | 118 | |
| 119 | - return strlen($text) <= $max ? $teaser : $teaser . $ending; |
|
| 119 | + return strlen($text) <= $max ? $teaser : $teaser.$ending; |
|
| 120 | 120 | } |
| 121 | 121 | } |
| 122 | 122 | |
@@ -247,16 +247,16 @@ discard block |
||
| 247 | 247 | 'fragment', |
| 248 | 248 | ], null), $parsed_url, $overrides); |
| 249 | 249 | |
| 250 | - $scheme = $parsed_url['scheme'] ? $parsed_url['scheme'] . '://' : null; |
|
| 251 | - $port = $parsed_url['port'] ? ':' . $parsed_url['port'] : null; |
|
| 252 | - $fragment = $parsed_url['fragment'] ? '#' . $parsed_url['fragment'] : null; |
|
| 250 | + $scheme = $parsed_url['scheme'] ? $parsed_url['scheme'].'://' : null; |
|
| 251 | + $port = $parsed_url['port'] ? ':'.$parsed_url['port'] : null; |
|
| 252 | + $fragment = $parsed_url['fragment'] ? '#'.$parsed_url['fragment'] : null; |
|
| 253 | 253 | |
| 254 | - $baseurl = $scheme . $parsed_url['host'] . $port . $parsed_url['path']; |
|
| 254 | + $baseurl = $scheme.$parsed_url['host'].$port.$parsed_url['path']; |
|
| 255 | 255 | $current_query = []; |
| 256 | 256 | |
| 257 | 257 | $_query = explode('&', $parsed_url['query']); |
| 258 | 258 | |
| 259 | - array_map(function ($v) use (&$current_query) { |
|
| 259 | + array_map(function($v) use (&$current_query) { |
|
| 260 | 260 | if (!$v) { |
| 261 | 261 | return; |
| 262 | 262 | } |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | |
| 275 | 275 | $query = urldecode(http_build_query(array_merge($current_query, $query_params))); |
| 276 | 276 | |
| 277 | - return $baseurl . '?' . $query . $fragment; |
|
| 277 | + return $baseurl.'?'.$query.$fragment; |
|
| 278 | 278 | } |
| 279 | 279 | } |
| 280 | 280 | |