Code Duplication    Length = 11-19 lines in 2 locations

src/Skobkin/Bundle/PointToolsBundle/Command/UpdateSubscriptionsCommand.php 1 location

@@ 66-84 (lines=19) @@
63
     */
64
    private $progress;
65
66
    public function __construct(
67
        EntityManagerInterface $em,
68
        LoggerInterface $logger,
69
        UserRepository $userRepo,
70
        UserApi $api,
71
        SubscriptionsManager $subscriptionManager,
72
        int $apiDelay,
73
        int $appUserId
74
    ) {
75
        parent::__construct();
76
77
        $this->em = $em;
78
        $this->logger = $logger;
79
        $this->userRepo = $userRepo;
80
        $this->api = $api;
81
        $this->subscriptionManager = $subscriptionManager;
82
        $this->apiDelay = $apiDelay;
83
        $this->appUserId = $appUserId;
84
    }
85
86
    protected function configure()
87
    {

src/Skobkin/Bundle/PointToolsBundle/Command/UpdateUsersPrivacyCommand.php 1 location

@@ 42-52 (lines=11) @@
39
    /** @var ProgressBar */
40
    private $progress;
41
42
    public function __construct(EntityManagerInterface $em, LoggerInterface $logger, UserRepository $userRepo, UserApi $api, int $apiDelay, int $appUserId)
43
    {
44
        parent::__construct();
45
46
        $this->em = $em;
47
        $this->logger = $logger;
48
        $this->userRepo = $userRepo;
49
        $this->api = $api;
50
        $this->apiDelay = $apiDelay;
51
        $this->appUserId = $appUserId;
52
    }
53
54
    /**
55
     * {@inheritdoc}