Test Failed
Push — master ( 1c1110...a9a6c6 )
by Jean-Christophe
06:40
created

_addMessageForRouteCreation()   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 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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
		$content = str_replace ( "<br>", "\n", $content );
17
		return strip_tags ( $content );
18
	}
19
20
	protected function getTemplateDir() {
21
		return $this->activeDir . "/project-files/templates/";
22
	}
23
24
	protected function _addMessageForRouteCreation($path, $jsCallback = "") {
25
		echo "You need to re-init Router cache to apply this update with init-cache command\n";
26
	}
27
}
28
29