@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | use Hyde\Framework\HydeKernel; |
5 | 5 | use Illuminate\Support\Collection; |
6 | 6 | |
7 | -if (! function_exists('hyde')) { |
|
7 | +if (!function_exists('hyde')) { |
|
8 | 8 | /** |
9 | 9 | * Get the available HydeKernel instance. |
10 | 10 | * |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | } |
17 | 17 | } |
18 | 18 | |
19 | -if (! function_exists('unslash')) { |
|
19 | +if (!function_exists('unslash')) { |
|
20 | 20 | /** |
21 | 21 | * Remove trailing slashes from the start and end of a string. |
22 | 22 | * |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | } |
30 | 30 | } |
31 | 31 | |
32 | -if (! function_exists('array_map_unique')) { |
|
32 | +if (!function_exists('array_map_unique')) { |
|
33 | 33 | /** |
34 | 34 | * Map a callback over an array and remove duplicates. |
35 | 35 | * |
@@ -232,11 +232,11 @@ |
||
232 | 232 | */ |
233 | 233 | public function copy(string $from, string $to, bool $force = false): bool|int |
234 | 234 | { |
235 | - if (! file_exists($from)) { |
|
235 | + if (!file_exists($from)) { |
|
236 | 236 | return 404; |
237 | 237 | } |
238 | 238 | |
239 | - if (file_exists($to) && ! $force) { |
|
239 | + if (file_exists($to) && !$force) { |
|
240 | 240 | return 409; |
241 | 241 | } |
242 | 242 |