These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
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
|
|||
23 | { |
||
24 | 2 | return $controller ? $this->call($controller, $args) : null; |
|
25 | } |
||
26 | } |
||
27 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.