HomeController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 2
c 3
b 1
f 0
lcom 1
cbo 1
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 6 1
A subpage() 0 6 1
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