Code Duplication    Length = 6-6 lines in 2 locations

vendor/cakephp/cakephp/src/Utility/Inflector.php 2 locations

@@ 524-529 (lines=6) @@
521
            return $word;
522
        }
523
524
        foreach (static::$_plural as $rule => $replacement) {
525
            if (preg_match($rule, $word)) {
526
                static::$_cache['pluralize'][$word] = preg_replace($rule, $replacement, $word);
527
                return static::$_cache['pluralize'][$word];
528
            }
529
        }
530
    }
531
532
    /**
@@ 564-569 (lines=6) @@
561
            return $word;
562
        }
563
564
        foreach (static::$_singular as $rule => $replacement) {
565
            if (preg_match($rule, $word)) {
566
                static::$_cache['singularize'][$word] = preg_replace($rule, $replacement, $word);
567
                return static::$_cache['singularize'][$word];
568
            }
569
        }
570
        static::$_cache['singularize'][$word] = $word;
571
        return $word;
572
    }