Code Duplication    Length = 1-1 lines in 3 locations

src/Russian/functions.php 3 locations

@@ 37-37 (lines=1) @@
34
        if (count($name) == 2) {
35
            $name[0] = LastNamesDeclension::getCase($name[0], $case, $gender);
36
            $name[1] = FirstNamesDeclension::getCase($name[1], $case, $gender);
37
            if ($case == Cases::PREDLOJ) list(, $name[1]) = explode(' ', $name[1]);
38
        } else if (count($name) == 3) {
39
            $name[0] = LastNamesDeclension::getCase($name[0], $case, $gender);
40
            $name[1] = FirstNamesDeclension::getCase($name[1], $case, $gender);
@@ 41-41 (lines=1) @@
38
        } else if (count($name) == 3) {
39
            $name[0] = LastNamesDeclension::getCase($name[0], $case, $gender);
40
            $name[1] = FirstNamesDeclension::getCase($name[1], $case, $gender);
41
            if ($case == Cases::PREDLOJ) list(, $name[1]) = explode(' ', $name[1]);
42
            $name[2] = MiddleNamesDeclension::getCase($name[2], $case, $gender);
43
            if ($case == Cases::PREDLOJ) list(, $name[2]) = explode(' ', $name[2]);
44
        }
@@ 43-43 (lines=1) @@
40
            $name[1] = FirstNamesDeclension::getCase($name[1], $case, $gender);
41
            if ($case == Cases::PREDLOJ) list(, $name[1]) = explode(' ', $name[1]);
42
            $name[2] = MiddleNamesDeclension::getCase($name[2], $case, $gender);
43
            if ($case == Cases::PREDLOJ) list(, $name[2]) = explode(' ', $name[2]);
44
        }
45
    }
46
    return implode(' ', $name);