Completed
Push — master ( 30ea98...ad161f )
by Jake
02:20
created

AuthController   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A showLoginForm() 0 3 1
A postLoginForm() 0 3 1
A showRegisterForm() 0 3 1
A postRegisterForm() 0 3 1
1
<?php
2
3
namespace MeestorHok\Blue\Http\Controllers;
4
5
use Illuminate\Routing\Controller;
6
use Auth;
7
8
class AuthController extends Controller
9
{
10
    public function __construct () {
11
        $this->middleware('guest');
12
    }
13
    
14
    public function showLoginForm () {
15
        return view('Blue::auth.login');
16
    }
17
    
18
    public function postLoginForm () {
19
        return 'Posted!';
20
    }
21
    
22
    public function showRegisterForm () {
23
        return view('Blue::auth.register');
24
    }
25
    
26
    public function postRegisterForm () {
27
        return 'Posted!';
28
    }
29
}