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...
11
{
12
use ParentHasClientAwareTrait;
13
14
/**
15
* @var Repository
16
*/
17
protected $build;
18
19
/**
20
* @var array
21
*/
22
protected $builds;
23
24
public function __construct(Build $build, array $builds)
It seems like $build of type object<WyriHaximus\Travis\Build> is incompatible with the declared type object<WyriHaximus\Travis\Repository> of property $build.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
28
$this->builds = $builds;
29
}
30
31
public function getRequest(): RequestInterface
32
{
33
// TODO: Implement getRequest() method.
34
}
35
36
public function fromResponse(ResponseInterface $response): EndpointInterface
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.