Code Duplication    Length = 9-10 lines in 2 locations

src/Russian/FirstNamesInflection.php 1 location

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

src/Russian/GeographicalNamesInflection.php 1 location

@@ 199-207 (lines=9) @@
196
                case 'ль':
197
                    $prefix = S::name(S::slice($name, 0, -1));
198
199
                    if ($name === 'электросталь')
200
                        return [
201
                            self::IMENIT => $prefix.'ь',
202
                            self::RODIT => $prefix.'и',
203
                            self::DAT => $prefix.'и',
204
                            self::VINIT => $prefix.'ь',
205
                            self::TVORIT => $prefix.'ью',
206
                            self::PREDLOJ => $prefix.'и',
207
                        ];
208
209
                    return [
210
                        self::IMENIT => $prefix.'ь',