WelcomeController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 34
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A index() 0 4 1
1
<?php namespace WITR\Http\Controllers;
2
3
class WelcomeController extends Controller {
4
5
	/*
6
	|--------------------------------------------------------------------------
7
	| Welcome Controller
8
	|--------------------------------------------------------------------------
9
	|
10
	| This controller renders the "marketing page" for the application and
11
	| is configured to only allow guests. Like most of the other sample
12
	| controllers, you are free to modify or remove it as you desire.
13
	|
14
	*/
15
16
	/**
17
	 * Create a new controller instance.
18
	 *
19
	 * @return void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
20
	 */
21
	public function __construct()
22
	{
23
		$this->middleware('guest');
24
	}
25
26
	/**
27
	 * Show the application welcome screen to the user.
28
	 *
29
	 * @return Response
30
	 */
31
	public function index()
32
	{
33
		return view('welcome');
34
	}
35
36
}
37