Completed
Push — master ( eb902d...f172d4 )
by devosc
05:42 queued 03:45
created

GlobalVar   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A config() 0 4 1
1
<?php
2
/**
3
 *
4
 */
5
6
namespace Mvc5\Plugin;
7
8
class GlobalVar
9
    extends Value
10
{
11
    /**
12
     * @return mixed
13
     */
14
    function config()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
15
    {
16
        return $GLOBALS[$this->config] ?? null;
17
    }
18
}
19