Completed
Pull Request — master (#91)
by Glenn
02:47
created

SettingsController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A index() 0 4 1
A email() 0 4 1
1
<?php
2
3
namespace App\Http\Controllers;
4
5
use Illuminate\Http\Request;
6
7
use App\Http\Requests;
8
9
class SettingsController extends Controller
10
{
11
    // TODO: Needs phpunit tests. -> create github issue
12
13
	/**
14
     * SettingsController constructor.
15
     */
16
    public function __construct()
17
    {
18
        $this->middleware('auth');
19
        $this->middleware('lang');
20
    }
21
22
    /**
23
     * Get the general settings page.
24
     *
25
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
26
     */
27
    public function index()
28
    {
29
    	return view('settings.index');
30
    }
31
32
		/**
33
		 * Get the email settings page.
34
		 *
35
		 * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
36
		 */
37
		public function email()
38
		{
39
			return view('settings.email');
40
		}
41
42
}
43