Emojis::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace FlexyProject\GitHub\Receiver\Miscellaneous;
3
4
/**
5
 * This Emojis API class lets you list all the emojis available to use on GitHub.
6
 *
7
 * @link    https://developer.github.com/v3/emojis/
8
 * @package FlexyProject\GitHub\Receiver\Miscellaneous
9
 */
10
class Emojis extends AbstractMiscellaneous
11
{
12
13
    /**
14
     * Lists all the emojis available to use on GitHub.
15
     *
16
     * @link https://developer.github.com/v3/emojis/#emojis
17
     * @return array
18
     */
19
    public function get(): array
20
    {
21
        return $this->getApi()->request('/emojis');
22
    }
23
}