Code Duplication    Length = 5-5 lines in 2 locations

src/Helper/Inflector.php 2 locations

@@ 90-94 (lines=5) @@
87
            }
88
        }
89
90
        foreach ($irregular as $_plural=> $_singular){
91
            if (preg_match('/('.$_plural.')$/i', $word, $arr)) {
92
                return preg_replace('/('.$_plural.')$/i', substr($arr[0],0,1).substr($_singular,1), $word);
93
            }
94
        }
95
96
        foreach ($plural as $rule => $replacement) {
97
            if (preg_match($rule, $word)) {
@@ 161-165 (lines=5) @@
158
            }
159
        }
160
161
        foreach ($irregular as $_plural=> $_singular){
162
            if (preg_match('/('.$_singular.')$/i', $word, $arr)) {
163
                return preg_replace('/('.$_singular.')$/i', substr($arr[0],0,1).substr($_plural,1), $word);
164
            }
165
        }
166
167
        foreach ($singular as $rule => $replacement) {
168
            if (preg_match($rule, $word)) {