@@ -41,7 +41,7 @@ |
||
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) { |
@@ -36,8 +36,9 @@ |
||
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); |