Code Duplication    Length = 4-4 lines in 2 locations

src/string.php 2 locations

@@ 210-213 (lines=4) @@
207
            return false;
208
        }
209
210
        foreach ((array) $needles as $needle)
211
        {
212
            if ($needle != '' && strpos($haystack, $needle) === 0) return true;
213
        }
214
        return false;
215
    }
216
}
@@ 229-232 (lines=4) @@
226
     */
227
    function str_contains($haystack, $needles)
228
    {
229
        foreach ((array) $needles as $needle)
230
        {
231
            if ($needle != '' && strpos($haystack, $needle) !== false) return true;
232
        }
233
        return false;
234
    }
235
}