Code Duplication    Length = 3-3 lines in 2 locations

src/Knp/Rad/ResourceResolver/RoutingNormalizer.php 2 locations

@@ 38-40 (lines=3) @@
35
        $service = $declaration;
36
        $method  = null;
37
38
        if (strpos($declaration, ':') !== false) {
39
            list($service, $method) = explode(':', $declaration);
40
        }
41
42
        return [
43
            'service'   => $service,
@@ 59-61 (lines=3) @@
56
        $service = $declaration[0];
57
        $method  = null;
58
59
        if (false !== strpos($declaration[0], ':')) {
60
            list($service, $method) = explode(':', $declaration[0]);
61
        }
62
63
        return [
64
            'service'   => $service,