Code Duplication    Length = 10-11 lines in 2 locations

src/Russian/NounDeclension.php 1 location

@@ 349-358 (lines=10) @@
346
347
            // Neuter adjectives
348
            case 'ое':
349
            case 'ее':
350
                $prefix = S::slice($word, 0, -1);
351
                return [
352
                    Cases::IMENIT => $word,
353
                    Cases::RODIT => $prefix.'го',
354
                    Cases::DAT => $prefix.'му',
355
                    Cases::VINIT => $word,
356
                    Cases::TVORIT => S::slice($word, 0, -2).(S::slice($word, -2, -1) == 'о' ? 'ы' : 'и').'м',
357
                    Cases::PREDLOJ => $prefix.'м',
358
                ];
359
360
            // Female adjectives
361
            case 'ая':

src/Russian/GeographicalNamesInflection.php 1 location

@@ 353-363 (lines=11) @@
350
                        self::PREDLOJ => $prefix.'и',
351
                    ];
352
353
                case 'а':
354
                    // Москва, Рига
355
                    $prefix = S::name(S::slice($name, 0, -1));
356
                    return [
357
                        self::IMENIT => $prefix.'а',
358
                        self::RODIT => $prefix.(self::isVelarConsonant(S::slice($name, -2, -1)) ? 'и' : 'ы'),
359
                        self::DAT => $prefix.'е',
360
                        self::VINIT => $prefix.'у',
361
                        self::TVORIT => $prefix.'ой',
362
                        self::PREDLOJ => $prefix.'е',
363
                    ];
364
365
                case 'й':
366
                    // Ишимбай