HomeController::subpage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
c 3
b 1
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace App\Controllers;
4
5
use Core\Lib\Controller;
6
7
class HomeController extends Controller
8
{
9
    public function index()
10
    {
11
        $this->params['title'] = 'Sephy Simple PHP Framework';
12
13
        return $this->view('home.index', $this->params);
14
    }
15
16
    public function subpage()
17
    {
18
        $this->params['title'] = 'Sephy Simple PHP Framework - Sub Page';
19
20
        return $this->view('home.subpage', $this->params);
21
    }
22
}
23