GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 585461...7f7a7e )
by
unknown
11:15
created

helpers.php ➔ xe_trans_choice()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
eloc 2
nc 1
nop 5
dl 0
loc 4
rs 10
1
<?php
2
/**
3
 * Class Translation
4
 *
5
 * PHP version 5
6
 *
7
 * @category    Translation
8
 * @package     Xpressengine\Translation
9
 * @author      XE Team (developers) <[email protected]>
10
 * @copyright   2015 Copyright (C) NAVER <http://www.navercorp.com>
11
 * @license     http://www.gnu.org/licenses/lgpl-3.0-standalone.html LGPL
12
 * @link        http://www.xpressengine.com
13
 */
14
15
if (! function_exists('xe_trans')) {
16
    /**
17
     * @param null   $id         다국어 키
18
     * @param array  $parameters 파라매터
19
     * @param string $domain     domain
20
     * @param null   $locale     로케일
21
     * @return string
22
     */
23
    function xe_trans($id = null, $parameters = array(), $domain = 'messages', $locale = null)
24
    {
25
        if (is_null($id)) {
26
            return app('xe.translator');
27
        }
28
29
        try {
30
            return app('xe.translator')->trans($id, $parameters, $domain, $locale);
31
        } catch (Exception $e) {
32
            return $id;
33
        }
34
    }
35
}
36
37
if (! function_exists('xe_trans_choice')) {
38
    /**
39
     * @param string $id         다국어 키
40
     * @param int    $number     숫자
41
     * @param array  $parameters 파라매터
42
     * @param string $domain     domain
43
     * @param null   $locale     로케일
44
     * @return string
45
     */
46
    function xe_trans_choice($id, $number, array $parameters = array(), $domain = 'messages', $locale = null)
47
    {
48
        return app('xe.translator')->transChoice($id, $number, $parameters, $domain, $locale);
49
    }
50
}
51