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.

JsonHelperTrait::getJsonHelper()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 2 Features 2
Metric Value
c 3
b 2
f 2
dl 0
loc 7
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
1
<?php
2
/**
3
 * Json helper trait
4
 *
5
 * @author Kachit
6
 * @package Kachit\Helper
7
 */
8
namespace Kachit\Helper;
9
10
trait JsonHelperTrait
11
{
12
    /**
13
     * @var JsonHelper
14
     */
15
    protected $JsonHelper;
16
17
    /**
18
     * Get json helper
19
     *
20
     * @return JsonHelper
21
     */
22
    protected function getJsonHelper()
23
    {
24
        if(empty($this->JsonHelper)) {
25
            $this->JsonHelper = new JsonHelper();
26
        }
27
        return $this->JsonHelper;
28
    }
29
}