Completed
Push — master ( 2892f0...f0e401 )
by Alexis
02:51
created
bootstrap/dependencies.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,25 +20,25 @@
 block discarded – undo
20 20
 $capsule->setAsGlobal();
21 21
 $capsule->bootEloquent();
22 22
 
23
-$container['db'] = function () use ($capsule) {
23
+$container['db'] = function() use ($capsule) {
24 24
     return $capsule;
25 25
 };
26 26
 
27
-$container['auth'] = function () {
27
+$container['auth'] = function() {
28 28
     $sentinel = new Sentinel(new SentinelBootstrapper(__DIR__ . '/sentinel.php'));
29 29
 
30 30
     return $sentinel->getSentinel();
31 31
 };
32 32
 
33
-$container['flash'] = function () {
33
+$container['flash'] = function() {
34 34
     return new Messages();
35 35
 };
36 36
 
37
-$container['validator'] = function () {
37
+$container['validator'] = function() {
38 38
     return new Validator();
39 39
 };
40 40
 
41
-$container['view'] = function ($container) {
41
+$container['view'] = function($container) {
42 42
     $view = new Twig(
43 43
         $container['settings']['view']['template_path'],
44 44
         $container['settings']['view']['twig']
Please login to merge, or discard this patch.
bootstrap/handlers.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,31 +11,31 @@
 block discarded – undo
11 11
  *
12 12
  * https://www.slimframework.com/docs/objects/router.html#route-strategies
13 13
  */
14
-$container['foundHandler'] = function () {
14
+$container['foundHandler'] = function() {
15 15
     return new RequestResponseArgs();
16 16
 };
17 17
 
18 18
 if ($container['env'] === 'prod') {
19
-    $container['notFoundHandler'] = function ($container) {
20
-        return function (Request $request, Response $response) use ($container) {
19
+    $container['notFoundHandler'] = function($container) {
20
+        return function(Request $request, Response $response) use ($container) {
21 21
             return $response->withStatus(404)->write($container['view']->fetch('Error/404.twig'));
22 22
         };
23 23
     };
24 24
 
25
-    $container['notAllowedHandler'] = function ($container) {
26
-        return function (Request $request, Response $response, array $methods) use ($container) {
25
+    $container['notAllowedHandler'] = function($container) {
26
+        return function(Request $request, Response $response, array $methods) use ($container) {
27 27
             return $response->withStatus(405)->write($container['view']->fetch('Error/4xx.twig'));
28 28
         };
29 29
     };
30 30
 
31
-    $container['errorHandler'] = function ($container) {
32
-        return function (Request $request, Response $response, Exception $exception) use ($container) {
31
+    $container['errorHandler'] = function($container) {
32
+        return function(Request $request, Response $response, Exception $exception) use ($container) {
33 33
             return $response->withStatus(500)->write($container['view']->fetch('Error/500.twig'));
34 34
         };
35 35
     };
36 36
 
37
-    $container['phpErrorHandler'] = function ($container) {
38
-        return function (Request $request, Response $response, Throwable $error) use ($container) {
37
+    $container['phpErrorHandler'] = function($container) {
38
+        return function(Request $request, Response $response, Throwable $error) use ($container) {
39 39
             return $response->withStatus(500)->write($container['view']->fetch('Error/500.twig'));
40 40
         };
41 41
     };
Please login to merge, or discard this patch.
src/App/Resources/routes/auth.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
3 3
 use App\Middleware\GuestMiddleware;
4 4
 use App\Middleware\AuthMiddleware;
5 5
 
6
-$app->group('', function () {
6
+$app->group('', function() {
7 7
     $this->map(['GET', 'POST'], '/login', 'auth.controller:login')->setName('login');
8 8
     $this->map(['GET', 'POST'], '/register', 'auth.controller:register')->setName('register');
9 9
 })->add(new GuestMiddleware($container));
10 10
 
11
-$app->group('', function () {
11
+$app->group('', function() {
12 12
     $this->get('/logout', 'auth.controller:logout')->setName('logout');
13 13
 })->add(new AuthMiddleware($container));
Please login to merge, or discard this patch.
bootstrap/controllers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 ];
7 7
 
8 8
 foreach ($controllers as $key => $class) {
9
-    $container[$key] = function ($container) use ($class) {
9
+    $container[$key] = function($container) use ($class) {
10 10
         return new $class($container);
11 11
     };
12 12
 }
Please login to merge, or discard this patch.
bootstrap/database/auth.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     Manager::schema()->dropIfExists($table);
22 22
 }
23 23
 
24
-Manager::schema()->create('user', function (Blueprint $table) {
24
+Manager::schema()->create('user', function(Blueprint $table) {
25 25
     $table->increments('id');
26 26
     $table->string('username')->unique();
27 27
     $table->string('email')->unique();
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     $table->timestamps();
34 34
 });
35 35
 
36
-Manager::schema()->create('activations', function (Blueprint $table) {
36
+Manager::schema()->create('activations', function(Blueprint $table) {
37 37
     $table->increments('id');
38 38
     $table->unsignedInteger('user_id');
39 39
     $table->string('code');
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     $table->foreign('user_id')->references('id')->on('user');
44 44
 });
45 45
 
46
-Manager::schema()->create('persistences', function (Blueprint $table) {
46
+Manager::schema()->create('persistences', function(Blueprint $table) {
47 47
     $table->increments('id');
48 48
     $table->unsignedInteger('user_id');
49 49
     $table->string('code')->unique();
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     $table->foreign('user_id')->references('id')->on('user');
52 52
 });
53 53
 
54
-Manager::schema()->create('reminders', function (Blueprint $table) {
54
+Manager::schema()->create('reminders', function(Blueprint $table) {
55 55
     $table->increments('id');
56 56
     $table->unsignedInteger('user_id');
57 57
     $table->string('code');
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     $table->foreign('user_id')->references('id')->on('user');
62 62
 });
63 63
 
64
-Manager::schema()->create('roles', function (Blueprint $table) {
64
+Manager::schema()->create('roles', function(Blueprint $table) {
65 65
     $table->increments('id');
66 66
     $table->string('slug')->unique();
67 67
     $table->string('name');
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     $table->timestamps();
70 70
 });
71 71
 
72
-Manager::schema()->create('role_users', function (Blueprint $table) {
72
+Manager::schema()->create('role_users', function(Blueprint $table) {
73 73
     $table->unsignedInteger('user_id');
74 74
     $table->unsignedInteger('role_id');
75 75
     $table->timestamps();
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     $table->foreign('role_id')->references('id')->on('roles');
79 79
 });
80 80
 
81
-Manager::schema()->create('throttle', function (Blueprint $table) {
81
+Manager::schema()->create('throttle', function(Blueprint $table) {
82 82
     $table->increments('id');
83 83
     $table->integer('user_id')->unsigned()->nullable();
84 84
     $table->string('type');
Please login to merge, or discard this patch.