Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
39 | 1 | public function handle(MyOrganizationsCommand $command): PromiseInterface |
|
|
|||
40 | { |
||
41 | 1 | return resolve( |
|
42 | 1 | $this->service->iterate('user/orgs') |
|
43 | 1 | ->flatMap(function ($organizations) { |
|
44 | 1 | return observableFromArray($organizations); |
|
45 | })->map(function ($organization) { |
||
46 | 1 | return $this->hydrator->hydrate(OrganizationInterface::HYDRATE_CLASS, $organization); |
|
47 | 1 | }) |
|
48 | ); |
||
49 | } |
||
50 | } |
||
51 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.