| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function index() |
||
| 16 | { |
||
| 17 | $articles = Article::with('category', 'user') |
||
| 18 | ->latest() |
||
| 19 | ->limit(6) |
||
| 20 | ->get(); |
||
| 21 | |||
| 22 | $comments = Comment::with('article', 'user') |
||
| 23 | ->latest() |
||
| 24 | ->limit(4) |
||
| 25 | ->get(); |
||
| 26 | |||
| 27 | return view('page.index', ['articles' => $articles, 'comments' => $comments]); |
||
| 28 | } |
||
| 29 | |||
| 45 |
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.