Code Duplication    Length = 4-4 lines in 2 locations

src/string.php 2 locations

@@ 200-203 (lines=4) @@
197
            return false;
198
        }
199
200
        foreach ((array)$needles as $needle) {
201
            if ($needle != '' && strpos($haystack, $needle) === 0) {
202
                return true;
203
            }
204
        }
205
        return false;
206
    }
@@ 219-222 (lines=4) @@
216
     */
217
    function str_contains($haystack, $needles)
218
    {
219
        foreach ((array)$needles as $needle) {
220
            if ($needle != '' && strpos($haystack, $needle) !== false) {
221
                return true;
222
            }
223
        }
224
        return false;
225
    }