Code Duplication    Length = 10-10 lines in 2 locations

src/Trucker/Support/Str.php 2 locations

@@ 54-63 (lines=10) @@
51
     *
52
     * @return bool
53
     */
54
    public static function contains($haystack, $needles)
55
    {
56
        foreach ((array) $needles as $needle) {
57
            if ('' != $needle && false !== strpos($haystack, $needle)) {
58
                return true;
59
            }
60
        }
61
62
        return false;
63
    }
64
65
    /**
66
     * Determine if a given string ends with a given substring.
@@ 340-349 (lines=10) @@
337
     *
338
     * @return bool
339
     */
340
    public static function startsWith($haystack, $needles)
341
    {
342
        foreach ((array) $needles as $needle) {
343
            if ('' != $needle && 0 === strpos($haystack, $needle)) {
344
                return true;
345
            }
346
        }
347
348
        return false;
349
    }
350
351
    /**
352
     * Convert a value to studly caps case.