@@ 181-188 (lines=8) @@ | ||
178 | return $result; |
|
179 | } |
|
180 | ||
181 | foreach ($this->pluralRules as $rule => $replacement) |
|
182 | { |
|
183 | if (preg_match($rule, $result)) |
|
184 | { |
|
185 | $result = preg_replace($rule, $replacement, $result); |
|
186 | break; |
|
187 | } |
|
188 | } |
|
189 | ||
190 | return $result; |
|
191 | } |
|
@@ 208-215 (lines=8) @@ | ||
205 | return $result; |
|
206 | } |
|
207 | ||
208 | foreach ($this->singularRules as $rule => $replacement) |
|
209 | { |
|
210 | if (preg_match($rule, $result)) |
|
211 | { |
|
212 | $result = preg_replace($rule, $replacement, $result); |
|
213 | break; |
|
214 | } |
|
215 | } |
|
216 | ||
217 | return $result; |
|
218 | } |