@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | namespace { |
6 | 6 | use Hyde\Foundation\HydeKernel; |
7 | 7 | |
8 | - if (! function_exists('hyde')) { |
|
8 | + if (!function_exists('hyde')) { |
|
9 | 9 | /** |
10 | 10 | * Get the available HydeKernel instance. |
11 | 11 | */ |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | } |
16 | 16 | } |
17 | 17 | |
18 | - if (! function_exists('unslash')) { |
|
18 | + if (!function_exists('unslash')) { |
|
19 | 19 | /** |
20 | 20 | * Remove trailing slashes from the start and end of a string. |
21 | 21 | */ |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | use Hyde\Foundation\HydeKernel; |
31 | 31 | use Illuminate\Contracts\Support\Arrayable; |
32 | 32 | |
33 | - if (! function_exists('\Hyde\hyde')) { |
|
33 | + if (!function_exists('\Hyde\hyde')) { |
|
34 | 34 | /** |
35 | 35 | * Get the available HydeKernel instance. |
36 | 36 | */ |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | } |
42 | 42 | |
43 | - if (! function_exists('\Hyde\unslash')) { |
|
43 | + if (!function_exists('\Hyde\unslash')) { |
|
44 | 44 | /** |
45 | 45 | * Remove trailing slashes from the start and end of a string. |
46 | 46 | */ |
@@ -50,35 +50,35 @@ discard block |
||
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
53 | - if (! function_exists('\Hyde\make_title')) { |
|
53 | + if (!function_exists('\Hyde\make_title')) { |
|
54 | 54 | function make_title(string $value): string |
55 | 55 | { |
56 | 56 | return hyde()->makeTitle($value); |
57 | 57 | } |
58 | 58 | } |
59 | 59 | |
60 | - if (! function_exists('\Hyde\normalize_newlines')) { |
|
60 | + if (!function_exists('\Hyde\normalize_newlines')) { |
|
61 | 61 | function normalize_newlines(string $string): string |
62 | 62 | { |
63 | 63 | return hyde()->normalizeNewlines($string); |
64 | 64 | } |
65 | 65 | } |
66 | 66 | |
67 | - if (! function_exists('\Hyde\strip_newlines')) { |
|
67 | + if (!function_exists('\Hyde\strip_newlines')) { |
|
68 | 68 | function strip_newlines(string $string): string |
69 | 69 | { |
70 | 70 | return hyde()->stripNewlines($string); |
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
74 | - if (! function_exists('\Hyde\trim_slashes')) { |
|
74 | + if (!function_exists('\Hyde\trim_slashes')) { |
|
75 | 75 | function trim_slashes(string $string): string |
76 | 76 | { |
77 | 77 | return hyde()->trimSlashes($string); |
78 | 78 | } |
79 | 79 | } |
80 | 80 | |
81 | - if (! function_exists('\Hyde\evaluate_arrayable')) { |
|
81 | + if (!function_exists('\Hyde\evaluate_arrayable')) { |
|
82 | 82 | function evaluate_arrayable(array|Arrayable $array): array |
83 | 83 | { |
84 | 84 | return $array instanceof Arrayable ? $array->toArray() : $array; |