Skip to content

Commit 571e02a

Browse files
authored
Extract child instructions (#44915)
1 parent 9391221 commit 571e02a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Support/Str.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,9 +1143,9 @@ public static function substrCount($haystack, $needle, $offset = 0, $length = nu
11431143
{
11441144
if (! is_null($length)) {
11451145
return substr_count($haystack, $needle, $offset, $length);
1146-
} else {
1147-
return substr_count($haystack, $needle, $offset);
11481146
}
1147+
1148+
return substr_count($haystack, $needle, $offset);
11491149
}
11501150

11511151
/**

0 commit comments

Comments
 (0)