Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 2 | public function getEmojis(): array |
|
38 | { |
||
39 | 2 | $cacheKey = sprintf('%s.emojis', self::CACHE_KEY_PREFIX); |
|
40 | |||
41 | 2 | $emojis = $this->cache->get($cacheKey, function (ItemInterface $item) { |
|
42 | 1 | return $this->api->emojis(['include' => 'all'])['emojis']; |
|
43 | 2 | }); |
|
44 | |||
45 | 2 | return $emojis; |
|
46 | } |
||
48 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.