Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
57 | public function getEmojis() |
||
58 | { |
||
59 | $cacheKey = sprintf('%s.emojis', self::CACHE_KEY_PREFIX); |
||
60 | |||
61 | if ($emojis = $this->cache->fetch($cacheKey)) { |
||
62 | return $emojis; |
||
63 | } |
||
64 | |||
65 | $emojis = $this->client->emojis(['include' => 'all'])['emojis']; |
||
66 | $this->cache->save($cacheKey, $emojis); |
||
67 | |||
68 | return $emojis; |
||
69 | } |
||
71 |