| 1 | <?php |
||
| 12 | class IndexController |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var Twig_Environment |
||
| 17 | */ |
||
| 18 | private $twig; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * |
||
| 22 | * @var \Models\User\UserRepo $UserRepo |
||
| 23 | */ |
||
| 24 | protected $UserRepo; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * IndexController, constructed by container |
||
| 28 | * |
||
| 29 | * @param Twig_Environment $twig |
||
| 30 | */ |
||
| 31 | public function __construct(Twig_Environment $twig, UserRepo $UserRepo) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Return index page (/) |
||
| 39 | * |
||
| 40 | * @param array $args |
||
| 41 | * @return Response |
||
| 42 | */ |
||
| 43 | public function get($args) |
||
| 69 | } |
||
| 70 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.