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