set_default_route::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 *
5
 * @package sitemaker
6
 * @copyright (c) 2013 Daniel A. (blitze)
7
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
8
 *
9
 */
10
11
namespace blitze\sitemaker\services\blocks\action;
12
13
class set_default_route extends base_action
14
{
15
	/**
16
	 * {@inheritdoc}
17 1
	 */
18
	public function execute($style_id)
19 1
	{
20
		$route = $this->request->variable('route', '');
21 1
		$this->config->set('sitemaker_default_layout', join(':', [$route, $style_id]));
22
23
		return array();
24
	}
25
}
26