| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function handle(StateCommand $command): PromiseInterface |
||
|
|
|||
| 41 | { |
||
| 42 | 1 | return $this->service->call('supervisor.getState')->then(function (array $state) { |
|
| 43 | 1 | return resolve( |
|
| 44 | 1 | $this->hydrator->hydrate( |
|
| 45 | 1 | StateInterface::HYDRATE_CLASS, |
|
| 46 | 1 | $state |
|
| 47 | ) |
||
| 48 | ); |
||
| 49 | 1 | }); |
|
| 50 | } |
||
| 51 | } |
||
| 52 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.