Passed
Push — master ( c5e11d...bd0bd9 )
by Jean-Christophe
05:42
created

ConsoleScaffoldController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Ubiquity\scaffolding;
4
5
class ConsoleScaffoldController extends ScaffoldController {
6
	private $activeDir;
7
8
	public function __construct($activeDir) {
9
		$this->activeDir = $activeDir;
10
	}
11
12
	protected function storeControllerNameInSession($controller) {
13
	}
14
15
	protected function showSimpleMessage($content, $type, $title = null, $icon = "info", $timeout = NULL, $staticName = null) {
16
		return strip_tags ( $content );
17
	}
18
19
	protected function getTemplateDir() {
20
		return $this->activeDir . "/project-files/templates/";
21
	}
22
}
23
24