PageController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 1
f 0
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A privacyAction() 0 3 1
A termsAction() 0 3 1
1
<?php
2
3
/**
4
 * @license MIT, http://opensource.org/licenses/MIT
5
 * @copyright Aimeos (aimeos.org), 2015-2016
6
 * @package laravel
7
 * @subpackage Controller
8
 */
9
10
11
namespace Aimeos\Shop\Controller;
12
13
use Illuminate\Routing\Controller;
14
use Illuminate\Support\Facades\View;
15
16
17
/**
18
 * Aimeos controller for support page request.
19
 *
20
 * @package laravel
21
 * @subpackage Controller
22
 */
23
class PageController extends Controller
24
{
25
	/**
26
	 * Returns the html for the privacy policy page.
27
	 *
28
	 * @return \Illuminate\Contracts\View\View View for rendering the output
29
	 */
30
	public function privacyAction()
31
	{
32
		return View::make('shop::page.privacy');
33
	}
34
35
36
	/**
37
	 * Returns the html for the terms and conditions page.
38
	 *
39
	 * @return \Illuminate\Contracts\View\View View for rendering the output
40
	 */
41
	public function termsAction()
42
	{
43
		return View::make('shop::page.terms');
44
	}
45
}