Code Duplication    Length = 8-8 lines in 2 locations

src/Inflector.php 2 locations

@@ 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
	}