| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function showLogs() |
||
| 38 | { |
||
| 39 | $logs = $this->srv->getLogFiles(); |
||
| 40 | $selected = $this->getRequest()->get("log"); |
||
| 41 | list($log, $monthOpen) = $this->srv->formatLogFile($selected); |
||
| 42 | asort($logs); |
||
| 43 | return $this->render("logs.html.twig", array( |
||
| 44 | "logs" => $logs, |
||
| 45 | "log" => $log, |
||
| 46 | "selected" => $selected, |
||
| 47 | "month_open" => $monthOpen, |
||
| 48 | )); |
||
| 49 | } |
||
| 50 | } |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.