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

src/Controller/Action.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

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
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