Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
41 | public static function create(string $host, array $options = []): self |
||
42 | { |
||
43 | $loop = Factory::create(); |
||
44 | $options = ApiSettings::getOptions($host, $options, 'Sync'); |
||
45 | $client = FoundationClientFactory::create($loop, $options); |
||
46 | setAsyncScheduler($loop); |
||
47 | $asyncClient = AsyncClient::createFromClient($client); |
||
48 | |||
49 | return new self($loop, $asyncClient); |
||
50 | } |
||
51 | |||
61 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.