Passed
Pull Request — master (#1)
by Yohann
06:03
created

AuthController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A login() 0 5 1
1
<?php
2
3
use mvc\core\Session;
4
use mvc\core\abc\Controller;
5
6
class AuthController extends Controller
7
{
8
    public function login(): string
9
    {
10
        return $this->render(
11
            'user/login',
12
            ['error' => Session::getInstance()->flash]
13
        );
14
    }
15
}
16