Completed
Push — master ( ca354f...7077f3 )
by Michal
09:04
created
examples/gulp/www/data/TemplateRouter.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@  discard block
 block discarded – undo
10 10
  */
11 11
 class TemplateRouter extends Routers\RouteList
12 12
 {
13
-    /** @var ILatteFactory  */
14
-    private $latteFactory;
13
+	/** @var ILatteFactory  */
14
+	private $latteFactory;
15 15
 
16 16
 	public function __construct($path, $cachePath, ILatteFactory $latteFactory)
17 17
 	{
18
-	    parent::__construct();
19
-	    $this->latteFactory = $latteFactory;
18
+		parent::__construct();
19
+		$this->latteFactory = $latteFactory;
20 20
 
21 21
 		if (is_file($cacheFile = $cachePath . '/routes.php')) {
22 22
 			$routes = require $cacheFile;
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 	{
38 38
 		$routes = [];
39 39
 
40
-        $latte = $this->createLatte();
41
-        $macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
40
+		$latte = $this->createLatte();
41
+		$macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
42 42
 		$macroSet->addMacro('url', function ($node) use (&$routes, &$file) {
43 43
 			$routes[$node->args] = (string) $file;
44 44
 		}, null, null, $macroSet::ALLOWED_IN_HEAD);
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
 	}
52 52
 
53 53
 	public function createLatte() {
54
-        $latte = $this->latteFactory->create();
55
-        $macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
56
-        $macroSet->addMacro('url', function () {}, null, null, $macroSet::ALLOWED_IN_HEAD); // ignore
57
-        return $latte;
58
-    }
54
+		$latte = $this->latteFactory->create();
55
+		$macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
56
+		$macroSet->addMacro('url', function () {}, null, null, $macroSet::ALLOWED_IN_HEAD); // ignore
57
+		return $latte;
58
+	}
59 59
 }
Please login to merge, or discard this patch.
examples/gulp/www/index.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 /** @var ILatteFactory $latteFactory */
24 24
 $latteFactory = $container->getService('latte.latteFactory');
25 25
 $container->addService(
26
-    'router',
27
-    new TemplateRouter('data/templates', __DIR__ . '/data/temp', $latteFactory)
26
+	'router',
27
+	new TemplateRouter('data/templates', __DIR__ . '/data/temp', $latteFactory)
28 28
 );
29 29
 
30 30
 // Run the application!
Please login to merge, or discard this patch.
examples/grunt/www/data/TemplateRouter.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@  discard block
 block discarded – undo
10 10
  */
11 11
 class TemplateRouter extends Routers\RouteList
12 12
 {
13
-    /** @var ILatteFactory  */
14
-    private $latteFactory;
13
+	/** @var ILatteFactory  */
14
+	private $latteFactory;
15 15
 
16 16
 	public function __construct($path, $cachePath, ILatteFactory $latteFactory)
17 17
 	{
18
-	    parent::__construct();
19
-	    $this->latteFactory = $latteFactory;
18
+		parent::__construct();
19
+		$this->latteFactory = $latteFactory;
20 20
 
21 21
 		if (is_file($cacheFile = $cachePath . '/routes.php')) {
22 22
 			$routes = require $cacheFile;
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 	{
38 38
 		$routes = [];
39 39
 
40
-        $latte = $this->createLatte();
41
-        $macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
40
+		$latte = $this->createLatte();
41
+		$macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
42 42
 		$macroSet->addMacro('url', function ($node) use (&$routes, &$file) {
43 43
 			$routes[$node->args] = (string) $file;
44 44
 		}, null, null, $macroSet::ALLOWED_IN_HEAD);
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
 	}
52 52
 
53 53
 	public function createLatte() {
54
-        $latte = $this->latteFactory->create();
55
-        $macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
56
-        $macroSet->addMacro('url', function () {}, null, null, $macroSet::ALLOWED_IN_HEAD); // ignore
57
-        return $latte;
58
-    }
54
+		$latte = $this->latteFactory->create();
55
+		$macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
56
+		$macroSet->addMacro('url', function () {}, null, null, $macroSet::ALLOWED_IN_HEAD); // ignore
57
+		return $latte;
58
+	}
59 59
 }
Please login to merge, or discard this patch.
examples/grunt/www/index.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 /** @var ILatteFactory $latteFactory */
24 24
 $latteFactory = $container->getService('latte.latteFactory');
25 25
 $container->addService(
26
-    'router',
27
-    new TemplateRouter('data/templates', __DIR__ . '/data/temp', $latteFactory)
26
+	'router',
27
+	new TemplateRouter('data/templates', __DIR__ . '/data/temp', $latteFactory)
28 28
 );
29 29
 
30 30
 // Run the application!
Please login to merge, or discard this patch.
examples/webpack/www/data/TemplateRouter.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@  discard block
 block discarded – undo
10 10
  */
11 11
 class TemplateRouter extends Routers\RouteList
12 12
 {
13
-    /** @var ILatteFactory  */
14
-    private $latteFactory;
13
+	/** @var ILatteFactory  */
14
+	private $latteFactory;
15 15
 
16 16
 	public function __construct($path, $cachePath, ILatteFactory $latteFactory)
17 17
 	{
18
-	    parent::__construct();
19
-	    $this->latteFactory = $latteFactory;
18
+		parent::__construct();
19
+		$this->latteFactory = $latteFactory;
20 20
 
21 21
 		if (is_file($cacheFile = $cachePath . '/routes.php')) {
22 22
 			$routes = require $cacheFile;
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 	{
38 38
 		$routes = [];
39 39
 
40
-        $latte = $this->createLatte();
41
-        $macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
40
+		$latte = $this->createLatte();
41
+		$macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
42 42
 		$macroSet->addMacro('url', function ($node) use (&$routes, &$file) {
43 43
 			$routes[$node->args] = (string) $file;
44 44
 		}, null, null, $macroSet::ALLOWED_IN_HEAD);
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
 	}
52 52
 
53 53
 	public function createLatte() {
54
-        $latte = $this->latteFactory->create();
55
-        $macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
56
-        $macroSet->addMacro('url', function () {}, null, null, $macroSet::ALLOWED_IN_HEAD); // ignore
57
-        return $latte;
58
-    }
54
+		$latte = $this->latteFactory->create();
55
+		$macroSet = new Latte\Macros\MacroSet($latte->getCompiler());
56
+		$macroSet->addMacro('url', function () {}, null, null, $macroSet::ALLOWED_IN_HEAD); // ignore
57
+		return $latte;
58
+	}
59 59
 }
Please login to merge, or discard this patch.
examples/webpack/www/index.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 /** @var ILatteFactory $latteFactory */
24 24
 $latteFactory = $container->getService('latte.latteFactory');
25 25
 $container->addService(
26
-    'router',
27
-    new TemplateRouter('data/templates', __DIR__ . '/data/temp', $latteFactory)
26
+	'router',
27
+	new TemplateRouter('data/templates', __DIR__ . '/data/temp', $latteFactory)
28 28
 );
29 29
 
30 30
 // Run the application!
Please login to merge, or discard this patch.