Completed
Push — erdiko2 ( 65f931...308584 )
by John
04:09
created
app/controllers/Grid.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@  discard block
 block discarded – undo
3 3
 
4 4
 class Grid extends \erdiko\Controller
5 5
 {
6
-	protected $container;
6
+    protected $container;
7 7
    
8
-	public function __invoke($request, $response, $args) 
9
-	{
8
+    public function __invoke($request, $response, $args) 
9
+    {
10 10
         $this->container->logger->debug("/controller");
11
-   		$view = 'pages/grid.html';
11
+            $view = 'pages/grid.html';
12 12
 
13 13
         // Get erdiko config, this gets application.json and loads the theme specified
14 14
         $config = \erdiko\theme\Config::get();        
@@ -31,6 +31,6 @@  discard block
 block discarded – undo
31 31
         }
32 32
         $config['items'] = $items;
33 33
 
34
-   		return $this->container->theme->render($response, $view, $config);
35
-  	}
34
+            return $this->container->theme->render($response, $view, $config);
35
+        }
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
app/controllers/Home.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@  discard block
 block discarded – undo
3 3
 
4 4
 class Home extends \erdiko\Controller
5 5
 {
6
-	protected $container;
6
+    protected $container;
7 7
    
8
-	public function __invoke($request, $response, $args) 
9
-	{
8
+    public function __invoke($request, $response, $args) 
9
+    {
10 10
         $this->container->logger->debug("/controller");
11
-   	    $view = 'views/controller.html';
11
+            $view = 'views/controller.html';
12 12
 
13 13
         // Get erdiko config, this gets application.json and loads the theme specified
14 14
         $config = \erdiko\theme\Config::get();        
@@ -18,6 +18,6 @@  discard block
 block discarded – undo
18 18
         $config['title'] = "Erdiko Controller Example";
19 19
         $config['args'] = $args;
20 20
 
21
-   		return $this->container->theme->render($response, $view, $config);
22
-  	}
21
+            return $this->container->theme->render($response, $view, $config);
22
+        }
23 23
 }
24 24
\ No newline at end of file
Please login to merge, or discard this patch.
src/dependencies.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,9 @@
 block discarded – undo
28 28
     // Instantiate and add Slim specific extension
29 29
     $basePath = rtrim(str_ireplace('index.php', '', $container['request']->getUri()->getBasePath()), '/');
30 30
     $view->addExtension(new Slim\Views\TwigExtension($container['router'], $basePath));
31
-    if($settings['debug'] == true)
32
-        $view->addExtension(new \Twig_Extension_Debug());
31
+    if($settings['debug'] == true) {
32
+            $view->addExtension(new \Twig_Extension_Debug());
33
+    }
33 34
 
34 35
     return $view;
35 36
 };
Please login to merge, or discard this patch.