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

FaqController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
c 0
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 8 1
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