Completed
Push — master ( d142cb...dbac5b )
by Alejandro
11:48
created
src/Utils.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $lastIndex = $firstIndex + strlen($substrToRemove);
42 42
         $pre = substr($string, 0, $firstIndex);
43 43
         $post = substr($string, $lastIndex);
44
-        return $pre . $post;
44
+        return $pre.$post;
45 45
     }
46 46
 
47 47
     public static function inString($string, $strToSearch) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,9 @@
 block discarded – undo
36 36
 
37 37
     public static function removeSubstring($string, $substrToRemove) {
38 38
         $firstIndex = strpos($string, $substrToRemove);
39
-        if ($firstIndex === FALSE)
40
-            return $string;
39
+        if ($firstIndex === FALSE) {
40
+                    return $string;
41
+        }
41 42
         $lastIndex = $firstIndex + strlen($substrToRemove);
42 43
         $pre = substr($string, 0, $firstIndex);
43 44
         $post = substr($string, $lastIndex);
Please login to merge, or discard this patch.