Passed
Push — master ( 49f1ef...b2146d )
by John
05:49 queued 11s
created

SearchController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use App\Http\Controllers\Controller;
6
use Illuminate\Http\Request;
7
8
class SearchController extends Controller
9
{
10
    /**
11
     * Show the Status Page.
12
     *
13
     * @return Response
0 ignored issues
show
Bug introduced by
The type App\Http\Controllers\Response was not found. Did you mean Response? If so, make sure to prefix the type with \.
Loading history...
14
     */
15
    public function __invoke(Request $request)
16
    {
17
        return view('search.index', [
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('search.inde... $request->input('q'))) returns the type Illuminate\View\View which is incompatible with the documented return type App\Http\Controllers\Response.
Loading history...
18
            'page_title' => "Search",
19
            'site_title' => config("app.name"),
20
            'navigation' => null,
21
            'search_key' => $request->input('q')
22
        ]);
23
    }
24
}
25