Completed
Push — master ( d142cb...dbac5b )
by Alejandro
11:48
created
src/Utils.php 1 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.