Completed
Push — master ( 3458b3...47cd69 )
by Thomas
02:26
created
src/Str/Str.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.