HomeController   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 5 1
A defaultDan() 0 4 1
A about() 0 4 1
A contact() 0 5 1
A listen() 0 6 1
1
<?php namespace WITR\Http\Controllers;
2
3
use WITR\Eboard;
4
use WITR\SystemSetting;
5
6
class HomeController extends Controller {
7
8
	/**
9
	 * Show the application dashboard to the user.
10
	 *
11
	 * @return Response
12
	 */
13
	public function index()
14
	{
15
        $banner = SystemSetting::frontPageBannerText();
0 ignored issues
show
Bug introduced by
The method frontPageBannerText() does not exist on WITR\SystemSetting. Did you maybe mean scopeFrontPageBannerText()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
16
		return view('home.index')->withBanner($banner);
17
	}
18
19
	public function defaultDan()
20
	{
21
		return view('home.default');
22
	}
23
24
	public function about()
25
	{
26
		return view('about');
27
	}
28
29
	public function contact()
30
	{
31
		$eboard = Eboard::all();
32
		return view('contact', ['eboard' => $eboard]);
33
	}
34
35
	public function listen()
36
	{
37
		$pulseMounts = app('config')['witr.icecast.mounts.studio-x']; 
38
		$undergroundMounts = app('config')['witr.icecast.mounts.studio-a']; 
39
		return view('listen', compact('pulseMounts', 'undergroundMounts'));
40
	}
41
42
}
43