Code Duplication    Length = 13-13 lines in 2 locations

src/Russian/AdjectivePluralization.php 2 locations

@@ 77-89 (lines=13) @@
74
        $adjective = S::slice($adjective, 0, -2);
75
        switch ($type)
76
        {
77
            case AdjectiveDeclension::HARD_BASE:
78
                $cases = [
79
                    static::IMENIT => $adjective.'ые',
80
                    static::RODIT => $adjective.'ых',
81
                    static::DAT => $adjective.'ым',
82
                ];
83
84
                $cases[static::VINIT] = static::getVinitCaseByAnimateness($cases, $animateness);
85
86
                $cases[static::TVORIT] = $adjective.'ыми';
87
                $cases[static::PREDLOJ] = $adjective.'ых';
88
89
                return $cases;
90
91
            case AdjectiveDeclension::SOFT_BASE:
92
            case AdjectiveDeclension::MIXED_BASE:
@@ 92-104 (lines=13) @@
89
                return $cases;
90
91
            case AdjectiveDeclension::SOFT_BASE:
92
            case AdjectiveDeclension::MIXED_BASE:
93
                $cases = [
94
                    static::IMENIT => $adjective.'ие',
95
                    static::RODIT => $adjective.'их',
96
                    static::DAT => $adjective.'им',
97
                ];
98
99
                $cases[static::VINIT] = static::getVinitCaseByAnimateness($cases, $animateness);
100
101
                $cases[static::TVORIT] = $adjective.'ими';
102
                $cases[static::PREDLOJ] = $adjective.'их';
103
104
                return $cases;
105
        }
106
107
        throw new RuntimeException('Unreachable');