Passed
Push — feature/experience-api ( 5f417f...bbfe27 )
by Tristan
04:24 queued 22s
created

FaqController::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use App\Http\Controllers\Controller;
6
use Illuminate\Support\Facades\Lang;
7
8
class FaqController extends Controller
9
{
10
    /**
11
     * Show the FAQ page.
12
     *
13
     * @return View
14
     */
15
    public function __invoke()
16
    {
17
        return view(
0 ignored issues
show
Bug introduced by
The function view was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
        return /** @scrutinizer ignore-call */ view(
Loading history...
18
            'applicant/static_faq',
19
            [
20
                'faq' => Lang::get('applicant/faq'),
21
                'breadcrumb_home' => route('home'),
0 ignored issues
show
Bug introduced by
The function route was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
                'breadcrumb_home' => /** @scrutinizer ignore-call */ route('home'),
Loading history...
22
                'applicant_sidebar_active' => 'active',
23
            ]
24
        );
25
    }
26
}
27