Code Duplication    Length = 7-7 lines in 2 locations

src/Kunstmaan/AdminBundle/Toolbar/BundleVersionDataCollector.php 1 location

@@ 23-29 (lines=7) @@
20
    {
21
        $this->versionChecker = $versionChecker;
22
23
        if (\func_num_args() > 2) {
24
            @trigger_error(sprintf('Passing the "logger" service as the second argument in "%s" is deprecated in KunstmaanAdminBundle 5.1 and will be removed in KunstmaanAdminBundle 6.0. Remove the "logger" argument from your service definition.', __METHOD__), E_USER_DEPRECATED);
25
26
            $this->cache = func_get_arg(2);
27
28
            return;
29
        }
30
31
        $this->cache = $cache;
32
    }

src/Kunstmaan/ConfigBundle/Controller/ConfigController.php 1 location

@@ 82-88 (lines=7) @@
79
            @trigger_error('Passing the "@templating" service as the 2nd argument is deprecated since KunstmaanConfigBundle 5.4 and will be replaced by the Twig renderer in KunstmaanConfigBundle 6.0. Injected the "@twig" service instead.', E_USER_DEPRECATED);
80
        }
81
82
        if (\func_num_args() > 6) {
83
            @trigger_error(sprintf('Passing the "container" as the sixth argument in "%s" is deprecated in KunstmaanConfigBundle 5.1 and will be removed in KunstmaanConfigBundle 6.0. Remove the "container" argument from your service definition.', __METHOD__), E_USER_DEPRECATED);
84
85
            $this->formFactory = func_get_arg(6);
86
87
            return;
88
        }
89
90
        $this->formFactory = $formFactory;
91
    }