Completed
Push — erdiko2 ( 719271...84f584 )
by John
05:49
created
bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <?php
2 2
 // Start session
3 3
 // require_once __DIR__ . '/config/session.php';
4
-require getenv("ERDIKO_ROOT") . '/vendor/erdiko/core/session.php';
4
+require getenv("ERDIKO_ROOT").'/vendor/erdiko/core/session.php';
5 5
 // \erdiko\session\Session::start();
6 6
 // \erdiko\session\Session::set("start", true);
7 7
 
8 8
 // Set up dependencies
9
-require_once __DIR__ . '/bootstrap/dependencies.php';
9
+require_once __DIR__.'/bootstrap/dependencies.php';
10 10
 
11 11
 // Register middleware
12
-require_once __DIR__ . '/bootstrap/middleware.php';
12
+require_once __DIR__.'/bootstrap/middleware.php';
13 13
 
14 14
 // Register routes
15
-require_once __DIR__ . '/bootstrap/routes.php';
15
+require_once __DIR__.'/bootstrap/routes.php';
Please login to merge, or discard this patch.
app/entities/User.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -101,22 +101,22 @@
 block discarded – undo
101 101
 
102 102
     public function getCreatedAt()
103 103
     { 
104
-      return $this->created_at;
104
+        return $this->created_at;
105 105
     }
106 106
     
107 107
     public function setCreatedAt($created)
108 108
     {
109
-      $this->created_at = $created;
109
+        $this->created_at = $created;
110 110
     }
111 111
 
112 112
     public function getUpdatedAt()
113 113
     { 
114
-      return $this->updated_at;
114
+        return $this->updated_at;
115 115
     }
116 116
     
117 117
     public function setUpdatedAt($updated)
118 118
     {
119
-      $this->updated_at = $updated;
119
+        $this->updated_at = $updated;
120 120
     }
121 121
 
122 122
     /** 
Please login to merge, or discard this patch.
bootstrap/dependencies.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 $container = $app->getContainer();
4 4
 
5 5
 // Monolog
6
-$container['logger'] = function ($container) {
6
+$container['logger'] = function($container) {
7 7
     $settings = $container->get('settings')['logger'];
8 8
     $logger = new Monolog\Logger($settings['name']);
9 9
     $logger->pushProcessor(new Monolog\Processor\UidProcessor());
@@ -12,17 +12,17 @@  discard block
 block discarded – undo
12 12
 };
13 13
 
14 14
 // Register flash provider
15
-$container['flash'] = function () {
15
+$container['flash'] = function() {
16 16
     return new \Slim\Flash\Messages();
17 17
 };
18 18
 
19 19
 // EntityManager provider
20
-$container['em'] = function ($container) {
20
+$container['em'] = function($container) {
21 21
     return \erdiko\doctrine\EntityManager::getEntityManager($container->get('settings')['database']);
22 22
 };
23 23
 
24 24
 // Theme view (erdiko, twig)
25
-$container['theme'] = function ($container) {
25
+$container['theme'] = function($container) {
26 26
     $settings = $container->get('settings')['theme'];
27 27
     $view = new \Slim\Views\Twig($settings['templates'], [
28 28
         'debug' => $settings['debug'],
@@ -39,15 +39,15 @@  discard block
 block discarded – undo
39 39
         new Slim\Flash\Messages
40 40
     ));
41 41
 
42
-    if( $settings['debug'] )
42
+    if ($settings['debug'])
43 43
         $view->addExtension(new \Twig_Extension_Debug());
44 44
 
45 45
     return $view;
46 46
 };
47 47
 
48 48
 // 404 Handler
49
-$container['notFoundHandler'] = function ($container) {
50
-    return function ($request, $response) use ($container) {
49
+$container['notFoundHandler'] = function($container) {
50
+    return function($request, $response) use ($container) {
51 51
         $themeData = \erdiko\theme\Config::get($container->get('settings')['theme']);
52 52
         return $container['theme']->render($response->withStatus(404), '404.html', $themeData);
53 53
     };
Please login to merge, or discard this patch.