Code Duplication    Length = 7-7 lines in 2 locations

src/Kunstmaan/AdminBundle/Command/ApplyAclCommand.php 1 location

@@ 38-44 (lines=7) @@
35
    {
36
        parent::__construct();
37
38
        if (!$aclManager instanceof AclManager) {
39
            @trigger_error(sprintf('Passing a command name as the first argument of "%s" is deprecated since version symfony 3.4 and will be removed in symfony 4.0. If the command was registered by convention, make it a service instead. ', __METHOD__), E_USER_DEPRECATED);
40
41
            $this->setName(null === $aclManager ? 'kuma:acl:apply' : $aclManager);
42
43
            return;
44
        }
45
46
        $this->aclManager = $aclManager;
47
        $this->em = $em;

src/Kunstmaan/AdminBundle/Command/UpdateAclCommand.php 1 location

@@ 38-44 (lines=7) @@
35
    {
36
        parent::__construct();
37
38
        if (!$aclManager instanceof AclManager) {
39
            @trigger_error(sprintf('Passing a command name as the first argument of "%s" is deprecated since version symfony 3.4 and will be removed in symfony 4.0. If the command was registered by convention, make it a service instead. ', __METHOD__), E_USER_DEPRECATED);
40
41
            $this->setName(null === $aclManager ? 'kuma:acl:update' : $aclManager);
42
43
            return;
44
        }
45
46
        $this->aclManager = $aclManager;
47
        $this->em = $em;