HomeController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 20
ccs 0
cts 4
cp 0
rs 10
1
<?php
2
3
class HomeController extends BaseController
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
{
5
    /*
6
    |--------------------------------------------------------------------------
7
    | Default Home Controller
8
    |--------------------------------------------------------------------------
9
    |
10
    | You may wish to use controllers instead of, or in addition to, Closure
11
    | based routes. That's great! Here is an example controller method to
12
    | get you started. To route to this controller, just add the route:
13
    |
14
    |	Route::get('/', 'HomeController@showWelcome');
15
    |
16
    */
17
18
    public function showWelcome()
19
    {
20
        return View::make('hello');
21
    }
22
}
23