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.

ArrayHelperTrait::getArrayHelper()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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