Cancelled
Push — test-branch ( 5c534a )
by Yonathan
06:17 queued 06:17
created

HomepageController::manager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 7
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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
    public function manager()
28
    {
29
        return view('manager/home', [
30
            "hero" => [
31
                "hero_logo" => "/images/logo_tc_colour.png",
32
                "hero_logo_alt" => Lang::get('manager/home_hero')['logo_alt_text'],
33
                "hero_tagline" => Lang::get('manager/home_hero')['tagline']
34
            ]
35
        ]);
36
    }
37
}
38