Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 24-30 (lines=7) @@
21
    {
22
        $this->versionChecker = $versionChecker;
23
24
        if (func_num_args() > 2) {
25
            @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);
26
27
            $this->cache = func_get_arg(2);
28
29
            return;
30
        }
31
32
        $this->cache = $cache;
33
    }

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

@@ 80-86 (lines=7) @@
77
        $this->em = $em;
78
        $this->configuration = $configuration;
79
80
        if (func_num_args() > 6) {
81
            @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);
82
83
            $this->formFactory = func_get_arg(6);
84
85
            return;
86
        }
87
88
        $this->formFactory = $formFactory;
89
    }