Code Duplication    Length = 5-5 lines in 2 locations

src/Helper/Inflector.php 2 locations

@@ 84-88 (lines=5) @@
81
82
        $lowercased_word = strtolower($word);
83
84
        foreach ($uncountable as $_uncountable){
85
            if(substr($lowercased_word,(-1*strlen($_uncountable))) == $_uncountable){
86
                return $word;
87
            }
88
        }
89
90
        foreach ($irregular as $_plural=> $_singular){
91
            if (preg_match('/('.$_plural.')$/i', $word, $arr)) {
@@ 155-159 (lines=5) @@
152
        'move' => 'moves');
153
154
        $lowercased_word = strtolower($word);
155
        foreach ($uncountable as $_uncountable){
156
            if(substr($lowercased_word,(-1*strlen($_uncountable))) == $_uncountable){
157
                return $word;
158
            }
159
        }
160
161
        foreach ($irregular as $_plural=> $_singular){
162
            if (preg_match('/('.$_singular.')$/i', $word, $arr)) {