Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
44 | public static function staticAdminLogon($route = null) { |
||
45 | $form = new LoginForm(); |
||
46 | $form->setData(array("route" => $route)); |
||
47 | $form->build(); |
||
48 | $tpl = Template::getInstance(); |
||
49 | $tpl->setPublicZone(true); |
||
50 | return $tpl->render("login.html.twig", array( |
||
51 | 'form' => $form, |
||
52 | )); |
||
53 | } |
||
54 | |||
67 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.