Completed
Push — erdiko2 ( 117d91...a0a9d1 )
by John
02:07
created
app/controllers/Config.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 Config 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("route: /config");
11
-   	    $view = 'pages/config.html';
11
+            $view = 'pages/config.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
         // $theme->title = "Dump Config";
19 19
         // (array)$theme; Config::get(), ['page'] = array();
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/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 // Application Routes
3 3
 
4
-$app->get('/', function ($request, $response, $args) {
4
+$app->get('/', function($request, $response, $args) {
5 5
     // Render index view
6 6
     return $this->theme->render($response, 'slim.phtml', $args);
7 7
 });
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 //    ->setName('home');
12 12
 
13 13
 // Render Twig template in route
14
-$app->any('/render/[{name}]', function ($request, $response, $args) {
14
+$app->any('/render/[{name}]', function($request, $response, $args) {
15 15
     // Erdiko setup (load configs)
16 16
     // $erdiko = \erdiko\App;
17 17
     // $erdiko->load('application');
Please login to merge, or discard this patch.