Passed
Branch master (876cb0)
by Alexis
03:56
created
Category
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', 'AuthController:login')->setName('login');
8 8
     $this->map(['GET', 'POST'], '/register', 'AuthController:register')->setName('register');
9 9
 })->add(new GuestMiddleware($container));
10 10
 
11
-$app->group('', function () {
11
+$app->group('', function() {
12 12
     $this->get('/logout', 'AuthController:logout')->setName('logout');
13 13
 })->add(new AuthMiddleware($container));
Please login to merge, or discard this patch.
bootstrap/controllers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$container['AppController'] = function ($container) {
3
+$container['AppController'] = function($container) {
4 4
     return new App\Controller\AppController($container);
5 5
 };
6 6
 
7
-$container['AuthController'] = function ($container) {
7
+$container['AuthController'] = function($container) {
8 8
     return new App\Controller\AuthController($container);
9 9
 };
Please login to merge, or discard this patch.
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/database/auth.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 Manager::schema()->dropIfExists('roles');
16 16
 Manager::schema()->dropIfExists('user');
17 17
 
18
-Manager::schema()->create('user', function (Blueprint $table) {
18
+Manager::schema()->create('user', function(Blueprint $table) {
19 19
     $table->increments('id');
20 20
     $table->string('username')->unique();
21 21
     $table->string('email')->unique();
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     $table->timestamps();
28 28
 });
29 29
 
30
-Manager::schema()->create('activations', function (Blueprint $table) {
30
+Manager::schema()->create('activations', function(Blueprint $table) {
31 31
     $table->increments('id');
32 32
     $table->unsignedInteger('user_id');
33 33
     $table->string('code');
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     $table->foreign('user_id')->references('id')->on('user');
38 38
 });
39 39
 
40
-Manager::schema()->create('persistences', function (Blueprint $table) {
40
+Manager::schema()->create('persistences', function(Blueprint $table) {
41 41
     $table->increments('id');
42 42
     $table->unsignedInteger('user_id');
43 43
     $table->string('code')->unique();
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     $table->foreign('user_id')->references('id')->on('user');
46 46
 });
47 47
 
48
-Manager::schema()->create('reminders', function (Blueprint $table) {
48
+Manager::schema()->create('reminders', function(Blueprint $table) {
49 49
     $table->increments('id');
50 50
     $table->unsignedInteger('user_id');
51 51
     $table->string('code');
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     $table->foreign('user_id')->references('id')->on('user');
56 56
 });
57 57
 
58
-Manager::schema()->create('roles', function (Blueprint $table) {
58
+Manager::schema()->create('roles', function(Blueprint $table) {
59 59
     $table->increments('id');
60 60
     $table->string('slug')->unique();
61 61
     $table->string('name');
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     $table->timestamps();
64 64
 });
65 65
 
66
-Manager::schema()->create('role_users', function (Blueprint $table) {
66
+Manager::schema()->create('role_users', function(Blueprint $table) {
67 67
     $table->unsignedInteger('user_id');
68 68
     $table->unsignedInteger('role_id');
69 69
     $table->timestamps();
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     $table->foreign('role_id')->references('id')->on('roles');
73 73
 });
74 74
 
75
-Manager::schema()->create('throttle', function (Blueprint $table) {
75
+Manager::schema()->create('throttle', function(Blueprint $table) {
76 76
     $table->increments('id');
77 77
     $table->integer('user_id')->unsigned()->nullable();
78 78
     $table->string('type');
Please login to merge, or discard this patch.
bootstrap/handlers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  * public function controllerAction($request, $response, $arg1, $arg2, $arg3, ...)
9 9
  *
10 10
  */
11
-$container['foundHandler'] = function () {
11
+$container['foundHandler'] = function() {
12 12
     return new RequestResponseArgs();
13 13
 };
14 14
 
Please login to merge, or discard this patch.