Conditions | 2 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
39 | public function handle(EmojisCommand $command): PromiseInterface |
||
|
|||
40 | { |
||
41 | return resolve( |
||
42 | $this->service->iterate('emojis') |
||
43 | ->flatMap(function ($emojis) { |
||
44 | $structuredEmojis = []; |
||
45 | |||
46 | foreach ($emojis as $name => $image) { |
||
47 | $structuredEmojis[] = [ |
||
48 | 'name' => $name, |
||
49 | 'image' => $image, |
||
50 | ]; |
||
51 | } |
||
52 | |||
53 | return Observable::fromArray($structuredEmojis); |
||
54 | })->map(function ($emoji) { |
||
55 | return $this->hydrator->hydrate(EmojiInterface::HYDRATE_CLASS, $emoji); |
||
56 | }) |
||
57 | ); |
||
58 | } |
||
59 | } |
||
60 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.