Passed
Push — task/manager-applicant-review-... ( a1a27a...d21381 )
by Xander
15:21 queued 09:20
created

HomepageController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 25
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A applicant() 0 5 1
A manager() 0 7 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
use Illuminate\Support\Facades\Lang;
7
use App\Http\Controllers\Controller;
8
9
class HomepageController extends Controller
10
{
11
    /**
12
     * Show the applicant home page
13
     * @return \Illuminate\View\View|\Illuminate\Contracts\View\Factory
14
     */
15 5
    public function applicant()
16
    {
17 5
        return view('applicant/home', [
18 5
            'home' => Lang::get('applicant/home'),
19 5
            'hero' => Lang::get('common/hero')
20
        ]);
21
    }
22
23
    /**
24
     * Show the manager home page
25
     * @return \Illuminate\View\View|\Illuminate\Contracts\View\Factory
26
     */
27 1
    public function manager()
28
    {
29 1
        return view('manager/home', [
30
            "hero" => [
31 1
                "hero_logo" => "/images/logo_tc_colour.png",
32 1
                "hero_logo_alt" => Lang::get('manager/home_hero')['logo_alt_text'],
33 1
                "hero_tagline" => Lang::get('manager/home_hero')['tagline']
34
            ]
35
        ]);
36
    }
37
}
38