Code Duplication    Length = 6-6 lines in 2 locations

Routing/Loader/YamlRpcLoader.php 2 locations

@@ 135-140 (lines=6) @@
132
            ));
133
        }
134
135
        if (isset($config['resource']) && isset($config['method'])) {
136
            throw new \InvalidArgumentException(sprintf(
137
                'The routing file "%s" must not specify both the "resource" key and the "method" key for "%s". Choose between an import and a route definition.',
138
                $path, $name
139
            ));
140
        }
141
142
        if (!isset($config['resource']) && isset($config['type'])) {
143
            throw new \InvalidArgumentException(sprintf(
@@ 142-147 (lines=6) @@
139
            ));
140
        }
141
142
        if (!isset($config['resource']) && isset($config['type'])) {
143
            throw new \InvalidArgumentException(sprintf(
144
                'The "type" key for the route definition "%s" in "%s" is unsupported. It is only available for imports in combination with the "resource" key.',
145
                $name, $path
146
            ));
147
        }
148
    }
149
150
    /**