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.
This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
14
{
15
/**
16
* @var RequestService
17
*/
18
private $requestService;
19
20
/**
21
* @var Hydrator
22
*/
23
private $hydrator;
24
25
/**
26
* @param RequestService $requestService
27
* @param Hydrator $hydrator
28
*/
29
public function __construct(RequestService $requestService, Hydrator $hydrator)
30
{
31
$this->requestService = $requestService;
32
$this->hydrator = $hydrator;
33
}
34
35
/**
36
* @param RefCommand $command
37
* @return PromiseInterface
38
*/
39
public function handle(RefCommand $command): PromiseInterface
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.