Code Duplication    Length = 3-3 lines in 2 locations

src/string.php 2 locations

@@ 183-185 (lines=3) @@
180
     */
181
    function ends_with($haystack, $needles)
182
    {
183
        if($haystack===null || $haystack=='' || $needles===null || $needles==''){
184
            return false;
185
        }
186
187
        foreach ((array) $needles as $needle)
188
        {
@@ 206-208 (lines=3) @@
203
     */
204
    function starts_with($haystack, $needles)
205
    {
206
        if($haystack===null || $haystack=='' || $needles===null || $needles==''){
207
            return false;
208
        }
209
210
        foreach ((array) $needles as $needle)
211
        {