| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class HomeController extends Controller |
||
| 13 | { |
||
| 14 | //Show home message, number of buttons and updated pages |
||
| 15 | public function home() |
||
| 16 | { |
||
| 17 | |||
| 18 | $message = Page::select('home_message')->first(); |
||
| 19 | |||
| 20 | $countButton = Button::count(); |
||
| 21 | |||
| 22 | $updatedPages = DB::table('links')->join('users', 'users.id', '=', 'links.user_id')->select('users.littlelink_name', 'users.image', DB::raw('max(links.created_at) as created_at'))->groupBy('links.user_id')->orderBy('created_at', 'desc')->take(4)->get(); |
||
| 23 | |||
| 24 | return view('home', ['message' => $message, 'countButton' => $countButton, 'updatedPages' => $updatedPages]); |
||
| 25 | } |
||
| 26 | |||
| 27 | // Show demo page |
||
| 28 | public function demo(request $request) |
||
| 37 | } |
||
| 38 | |||
| 40 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.