Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 25-27 (lines=3) @@
22
            return $this->normalizeArray($declaration);
23
        }
24
25
        if (isset($declaration['arguments']) && !is_array($declaration['arguments'])) {
26
            throw new \InvalidArgumentException('The "arguments" parameter should be an array of arguments.');
27
        }
28
29
        // Adds default value to associative array
30
        return array_merge(['method' => null, 'required' => true, 'arguments' => []], $declaration);
@@ 55-57 (lines=3) @@
52
        $service = $declaration[0];
53
        $method  = null;
54
55
        if (isset($declaration[1]) && !is_array($declaration[1])) {
56
            throw new \InvalidArgumentException('The second argument for a resource configuration, when expressed with a numerically indexed array, should be an array of arguments.');
57
        }
58
59
        if (false !== strpos($declaration[0], ':')) {
60
            list($service, $method) = explode(':', $declaration[0]);