Code Duplication    Length = 4-4 lines in 2 locations

src/Vacancy/VacancyParser.php 2 locations

@@ 175-178 (lines=4) @@
172
            $parts[] = intval($militaryTime);
173
            $parts[] = '00';
174
        }
175
        if (strlen($militaryTime) == 3) {
176
            $parts[0] = substr($militaryTime, 0, 1);
177
            $parts[1] = substr($militaryTime, 1, 2);
178
        }
179
        if (strlen($militaryTime) == 4) {
180
            $parts[0] = substr($militaryTime, 0, 2);
181
            $parts[1] = substr($militaryTime, 2, 2);
@@ 179-182 (lines=4) @@
176
            $parts[0] = substr($militaryTime, 0, 1);
177
            $parts[1] = substr($militaryTime, 1, 2);
178
        }
179
        if (strlen($militaryTime) == 4) {
180
            $parts[0] = substr($militaryTime, 0, 2);
181
            $parts[1] = substr($militaryTime, 2, 2);
182
        }
183
184
        return implode(':', $parts);
185
    }