@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | static public function startsWith($haystack, $needles) |
30 | 30 | { |
31 | - if($haystack === null){ |
|
31 | + if ($haystack === null) { |
|
32 | 32 | return false; |
33 | 33 | } |
34 | 34 | if (is_array($needles)) { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | static public function endsWith($haystack, $needles) |
56 | 56 | { |
57 | - if($haystack === null){ |
|
57 | + if ($haystack === null) { |
|
58 | 58 | return false; |
59 | 59 | } |
60 | 60 | if (is_array($needles)) { |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | static public function contains($haystack, $needles) |
94 | 94 | { |
95 | - if($haystack === null){ |
|
95 | + if ($haystack === null) { |
|
96 | 96 | return false; |
97 | 97 | } |
98 | 98 | if (is_array($needles)) { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $output = []; |
138 | 138 | foreach ($phrase as $item) { |
139 | 139 | $e = explode($item, $string); |
140 | - array_pop($e);//remove the rest of string entry |
|
140 | + array_pop($e); //remove the rest of string entry |
|
141 | 141 | $output[$item] = $e; |
142 | 142 | } |
143 | 143 | |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $output = []; |
164 | 164 | foreach ($phrase as $item) { |
165 | 165 | $e = explode($item, $string); |
166 | - array_shift($e);//remove the first item always |
|
166 | + array_shift($e); //remove the first item always |
|
167 | 167 | $output[$item] = $e; |
168 | 168 | } |
169 | 169 |