HomeController::contact()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 0
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