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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 2
c 2
b 1
f 1
lcom 1
cbo 1
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getArrayHelper() 0 6 2
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
}