Completed
Push — master ( 3f6149...d479eb )
by Alexis
03:15
created
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.
app/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.
app/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.
app/dependencies.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,25 +23,25 @@  discard block
 block discarded – undo
23 23
 $capsule->setAsGlobal();
24 24
 $capsule->bootEloquent();
25 25
 
26
-$container['db'] = function () use ($capsule) {
26
+$container['db'] = function() use ($capsule) {
27 27
     return $capsule;
28 28
 };
29 29
 
30
-$container['auth'] = function () {
30
+$container['auth'] = function() {
31 31
     $sentinel = new Sentinel(new SentinelBootstrapper(__DIR__ . '/sentinel.php'));
32 32
 
33 33
     return $sentinel->getSentinel();
34 34
 };
35 35
 
36
-$container['flash'] = function () {
36
+$container['flash'] = function() {
37 37
     return new Messages();
38 38
 };
39 39
 
40
-$container['validator'] = function () {
40
+$container['validator'] = function() {
41 41
     return new Validator();
42 42
 };
43 43
 
44
-$container['view'] = function ($container) {
44
+$container['view'] = function($container) {
45 45
     $settings = $container['settings'];
46 46
 
47 47
     $view = new Twig(
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     return $view;
67 67
 };
68 68
 
69
-$container['monolog'] = function ($container) {
69
+$container['monolog'] = function($container) {
70 70
     $settings = $container['settings']['monolog'];
71 71
 
72 72
     $logger = new Logger($settings['name']);
Please login to merge, or discard this patch.
app/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.