Code Duplication    Length = 3-7 lines in 2 locations

src/DependencyInjection/NeonFileLoader.php 2 locations

@@ 225-227 (lines=3) @@
222
223
        // nette
224
        if (preg_match('#^(\S+)\s+<\s+(\S+)\z#', $id, $matches)) {
225
            if (isset($service['parent']) && $matches[2] !== $service['parent']) {
226
                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));
227
            }
228
229
            $id = $matches[1];
230
            $parent = $matches[2];
@@ 451-457 (lines=7) @@
448
        }
449
450
        // nette
451
        if (isset($service['autowired'])) {
452
            if (isset($service['autowire']) && $service['autowire'] !== $service['autowired']) {
453
                throw new InvalidArgumentException(sprintf('Contradictory definition of autowiring for service "%s" in "%s". Check you NEON syntax.', $id, $file));
454
            }
455
456
            $service['autowire'] = $service['autowired'];
457
        }
458
459
        if (isset($service['autowire'])) {
460
            // nette