Code Duplication    Length = 9-10 lines in 2 locations

src/Russian/FirstNamesInflection.php 1 location

@@ 328-337 (lines=10) @@
325
                    static::TVORIT => $prefix.'ой',
326
                    static::PREDLOJ => $prefix.'е',
327
                ];
328
            } else {
329
                return [
330
                    static::IMENIT => $prefix.'а',
331
                    static::RODIT => $prefix.'ы',
332
                    static::DAT => $prefix.'е',
333
                    static::VINIT => $prefix.'у',
334
                    static::TVORIT => $prefix.'ей',
335
                    static::PREDLOJ => $prefix.'е',
336
                ];
337
            }
338
        } elseif (S::slice($name, -1) == 'ь' && static::isConsonant(S::slice($name, -2, -1))) {
339
            $prefix = S::name(S::slice($name, 0, -1));
340
            return [

src/Russian/GeographicalNamesInflection.php 1 location

@@ 210-218 (lines=9) @@
207
                case 'ль':
208
                    $prefix = S::name(S::slice($name, 0, -1));
209
210
                    if ($name === 'электросталь')
211
                        return [
212
                            static::IMENIT => $prefix.'ь',
213
                            static::RODIT => $prefix.'и',
214
                            static::DAT => $prefix.'и',
215
                            static::VINIT => $prefix.'ь',
216
                            static::TVORIT => $prefix.'ью',
217
                            static::PREDLOJ => $prefix.'и',
218
                        ];
219
220
                    return [
221
                        static::IMENIT => $prefix.'ь',