GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 36-36 lines in 2 locations

src/CommandBus/Handler/Program/StartHandler.php 1 location

@@ 13-48 (lines=36) @@
10
use ApiClients\Tools\Services\XmlRpc\XmlRpcService;
11
use React\Promise\PromiseInterface;
12
13
final class StartHandler
14
{
15
    /**
16
     * @var XmlRpcService
17
     */
18
    private $service;
19
20
    /**
21
     * @var Hydrator
22
     */
23
    private $hydrator;
24
25
    /**
26
     * @param XmlRpcService $service
27
     * @param Hydrator      $hydrator
28
     */
29
    public function __construct(XmlRpcService $service, Hydrator $hydrator)
30
    {
31
        $this->service = $service;
32
        $this->hydrator = $hydrator;
33
    }
34
35
    /**
36
     * @param  ProgramsCommand  $command
37
     * @return PromiseInterface
38
     */
39
    public function handle(StartCommand $command): PromiseInterface
40
    {
41
        return $this->service->call(
42
            'supervisor.startProcess',
43
            [
44
                $command->getName(),
45
            ]
46
        );
47
    }
48
}
49

src/CommandBus/Handler/Program/StopHandler.php 1 location

@@ 13-48 (lines=36) @@
10
use ApiClients\Tools\Services\XmlRpc\XmlRpcService;
11
use React\Promise\PromiseInterface;
12
13
final class StopHandler
14
{
15
    /**
16
     * @var XmlRpcService
17
     */
18
    private $service;
19
20
    /**
21
     * @var Hydrator
22
     */
23
    private $hydrator;
24
25
    /**
26
     * @param XmlRpcService $service
27
     * @param Hydrator      $hydrator
28
     */
29
    public function __construct(XmlRpcService $service, Hydrator $hydrator)
30
    {
31
        $this->service = $service;
32
        $this->hydrator = $hydrator;
33
    }
34
35
    /**
36
     * @param  ProgramsCommand  $command
37
     * @return PromiseInterface
38
     */
39
    public function handle(StopCommand $command): PromiseInterface
40
    {
41
        return $this->service->call(
42
            'supervisor.stopProcess',
43
            [
44
                $command->getName(),
45
            ]
46
        );
47
    }
48
}
49