Code Duplication    Length = 1-1 lines in 3 locations

src/Russian/functions.php 3 locations

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