Completed
Push — master ( f172d4...76e139 )
by devosc
02:14
created

Action::__invoke()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 2
eloc 2
nc 2
nop 2
crap 2
1
<?php
2
/**
3
 *
4
 */
5
6
namespace Mvc5\Controller;
7
8
use Mvc5\Plugins\Service;
9
10
class Action
11
{
12
    /**
13
     *
14
     */
15
    use Service;
16
17
    /**
18
     * @param $controller
19
     * @param array $args
20
     * @return mixed
21
     */
22 2
    function __invoke($controller = null, array $args = [])
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...
23
    {
24 2
        return $controller ? $this->call($controller, $args) : null;
25
    }
26
}
27