Code Duplication    Length = 5-5 lines in 2 locations

src/Stringy.php 2 locations

@@ 2881-2885 (lines=5) @@
2878
      $continue = false;
2879
2880
      if ($delimiter == '-') {
2881
        foreach ($specialCases['names'] as $beginning) {
2882
          if (UTF8::strpos($name, $beginning, 0, $encoding) === 0) {
2883
            $continue = true;
2884
          }
2885
        }
2886
      }
2887
2888
      foreach ($specialCases['prefixes'] as $beginning) {
@@ 2888-2892 (lines=5) @@
2885
        }
2886
      }
2887
2888
      foreach ($specialCases['prefixes'] as $beginning) {
2889
        if (UTF8::strpos($name, $beginning, 0, $encoding) === 0) {
2890
          $continue = true;
2891
        }
2892
      }
2893
2894
      if ($continue) {
2895
        continue;