Code Duplication    Length = 3-7 lines in 2 locations

src/DependencyInjection/NeonFileLoader.php 2 locations

@@ 231-233 (lines=3) @@
228
229
        // nette
230
        if (preg_match('#^(\S+)\s+<\s+(\S+)\z#', $id, $matches)) {
231
            if (isset($service['parent']) && $matches[2] !== $service['parent']) {
232
                throw new InvalidArgumentException(sprintf('Two parent services "%s" and "%s" are defined for service "%s" in "%s". Check your NEON syntax.', $service['parent'], $matches[2], $matches[1], $file));
233
            }
234
235
            $id = $matches[1];
236
            $parent = $matches[2];
@@ 457-463 (lines=7) @@
454
        }
455
456
        // nette
457
        if (isset($service['autowired'])) {
458
            if (isset($service['autowire']) && $service['autowire'] !== $service['autowired']) {
459
                throw new InvalidArgumentException(sprintf('Contradictory definition of autowiring for service "%s" in "%s". Check you NEON syntax.', $id, $file));
460
            }
461
462
            $service['autowire'] = $service['autowired'];
463
        }
464
465
        if (isset($service['autowire'])) {
466
            // nette