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.

StringHelperTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
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 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getStringHelper() 0 7 2
1
<?php
2
/**
3
 * String helper trait
4
 *
5
 * @author Kachit
6
 * @package Kachit\Helper
7
 */
8
namespace Kachit\Helper;
9
10
trait StringHelperTrait
11
{
12
    /**
13
     * @var StringHelper
14
     */
15
    protected $StringHelper;
16
17
    /**
18
     * Get string helper
19
     *
20
     * @return StringHelper
21
     */
22
    protected function getStringHelper()
23
    {
24
        if(empty($this->StringHelper)) {
25
            $this->StringHelper = new StringHelper();
26
        }
27
        return $this->StringHelper;
28
    }
29
}