Code Duplication    Length = 8-9 lines in 2 locations

src/Commands/Worker/Run.php 1 location

@@ 26-34 (lines=9) @@
23
        $workerProvider,
24
        $outputInterfaceAware;
25
26
    public function __construct(Client $client, WorkerProvider $workerProvider, OutputInterfaceAware $outputInterfaceAware)
27
    {
28
        parent::__construct();
29
30
        $this->client = $client;
31
        $this->workerProvider = $workerProvider;
32
        $this->outputInterfaceAware = $outputInterfaceAware;
33
        $this->eventDispatcher = new NullEventDispatcher();
34
    }
35
36
    protected function configure()
37
    {

src/Workers/WorkerCommands.php 1 location

@@ 23-30 (lines=8) @@
20
        $workerProvider,
21
        $outputInterfaceAware;
22
23
    public function __construct(Application $console, Client $client, WorkerProvider $workerProvider, OutputInterfaceAware $outputInterfaceAware)
24
    {
25
        $this->console = $console;
26
        $this->client = $client;
27
        $this->workerProvider = $workerProvider;
28
        $this->outputInterfaceAware = $outputInterfaceAware;
29
        $this->eventDispatcher = new NullEventDispatcher();
30
    }
31
32
    public function register()
33
    {