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

SettingsController::email()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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