Passed
Pull Request — master (#14)
by ARCANEDEV
05:47
created
src/Authorization/Http/Routes/Web/ProfileRoutes.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,20 +26,20 @@
 block discarded – undo
26 26
         $this->prefix('profile')->name('profile.')->middleware(['administrator.password.confirm'])->group(function () {
27 27
             // admin::auth.profile.index
28 28
             $this->get('/', [ProfileController::class, 'index'])
29
-                 ->name('index');
29
+                    ->name('index');
30 30
 
31 31
             // Account
32 32
             $this->prefix('account')->name('account.')->group(function () {
33 33
                 // admin::auth.profile.account.update
34 34
                 $this->put('update', [ProfileController::class, 'updateAccount'])
35
-                     ->name('update');
35
+                        ->name('update');
36 36
             });
37 37
 
38 38
             // Password
39 39
             $this->prefix('password')->name('password.')->group(function () {
40 40
                 // admin::auth.profile.password.update
41 41
                 $this->put('update', [ProfileController::class, 'updatePassword'])
42
-                     ->name('update');
42
+                        ->name('update');
43 43
             });
44 44
         });
45 45
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,20 +23,20 @@
 block discarded – undo
23 23
      */
24 24
     public function map(): void
25 25
     {
26
-        $this->prefix('profile')->name('profile.')->middleware(['administrator.password.confirm'])->group(function () {
26
+        $this->prefix('profile')->name('profile.')->middleware(['administrator.password.confirm'])->group(function() {
27 27
             // admin::auth.profile.index
28 28
             $this->get('/', [ProfileController::class, 'index'])
29 29
                  ->name('index');
30 30
 
31 31
             // Account
32
-            $this->prefix('account')->name('account.')->group(function () {
32
+            $this->prefix('account')->name('account.')->group(function() {
33 33
                 // admin::auth.profile.account.update
34 34
                 $this->put('update', [ProfileController::class, 'updateAccount'])
35 35
                      ->name('update');
36 36
             });
37 37
 
38 38
             // Password
39
-            $this->prefix('password')->name('password.')->group(function () {
39
+            $this->prefix('password')->name('password.')->group(function() {
40 40
                 // admin::auth.profile.password.update
41 41
                 $this->put('update', [ProfileController::class, 'updatePassword'])
42 42
                      ->name('update');
Please login to merge, or discard this patch.
src/Authorization/Http/Routes/Web/DashboardRoutes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
     {
26 26
         // admin::authorization.index
27 27
         $this->get('/', [DashboardController::class, 'index'])
28
-             ->name('index');
28
+                ->name('index');
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
src/Authorization/Http/Routes/Web/PermissionsRoutes.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@
 block discarded – undo
34 34
         $this->prefix('permissions')->name('permissions.')->group(function () {
35 35
             // admin::auth.permissions.index
36 36
             $this->get('/', [PermissionsController::class, 'index'])
37
-                 ->name('index');
37
+                    ->name('index');
38 38
 
39 39
             $this->prefix('{'.static::PERMISSION_WILDCARD.'}')->group(function () {
40 40
                 // admin::auth.permissions.show
41 41
                 $this->get('/', [PermissionsController::class, 'show'])
42
-                     ->name('show');
42
+                        ->name('show');
43 43
 
44 44
                 static::mapRouteClasses([
45 45
                     Permissions\RolesRoutes::class,
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function map(): void
33 33
     {
34
-        $this->prefix('permissions')->name('permissions.')->group(function () {
34
+        $this->prefix('permissions')->name('permissions.')->group(function() {
35 35
             // admin::auth.permissions.index
36 36
             $this->get('/', [PermissionsController::class, 'index'])
37 37
                  ->name('index');
38 38
 
39
-            $this->prefix('{'.static::PERMISSION_WILDCARD.'}')->group(function () {
39
+            $this->prefix('{'.static::PERMISSION_WILDCARD.'}')->group(function() {
40 40
                 // admin::auth.permissions.show
41 41
                 $this->get('/', [PermissionsController::class, 'show'])
42 42
                      ->name('show');
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function bindings(PermissionsRepository $repo): void
57 57
     {
58
-        $this->bind(static::PERMISSION_WILDCARD, function (string $uuid) use ($repo) {
58
+        $this->bind(static::PERMISSION_WILDCARD, function(string $uuid) use ($repo) {
59 59
             return $repo->firstOrFailWhereUuid($uuid);
60 60
         });
61 61
 
Please login to merge, or discard this patch.
src/Authorization/Http/Routes/Web/RolesRoutes.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -34,47 +34,47 @@
 block discarded – undo
34 34
         $this->name('roles.')->prefix('roles')->group(function () {
35 35
             // admin::auth.roles.index
36 36
             $this->get('/', [RolesController::class, 'index'])
37
-                 ->name('index');
37
+                    ->name('index');
38 38
 
39 39
             // admin::auth.roles.metrics
40 40
             $this->get('metrics', [RolesController::class, 'metrics'])
41
-                 ->name('metrics');
41
+                    ->name('metrics');
42 42
 
43 43
             // admin::auth.roles.create
44 44
             $this->get('create', [RolesController::class, 'create'])
45
-                 ->name('create');
45
+                    ->name('create');
46 46
 
47 47
             // admin::auth.roles.store
48 48
             $this->post('store', [RolesController::class, 'store'])
49
-                 ->name('store');
49
+                    ->name('store');
50 50
 
51 51
             $this->prefix('{'.static::ROLE_WILDCARD.'}')->group(function () {
52 52
                 // admin::auth.roles.show
53 53
                 $this->get('/', [RolesController::class, 'show'])
54
-                     ->name('show');
54
+                        ->name('show');
55 55
 
56 56
                 // admin::auth.roles.edit
57 57
                 $this->get('edit', [RolesController::class, 'edit'])
58
-                     ->name('edit');
58
+                        ->name('edit');
59 59
 
60 60
                 // admin::auth.roles.update
61 61
                 $this->put('update', [RolesController::class, 'update'])
62
-                     ->name('update');
62
+                        ->name('update');
63 63
 
64 64
                 // admin::auth.roles.activate
65 65
                 $this->put('activate', [RolesController::class, 'activate'])
66
-                     ->middleware(['ajax'])
67
-                     ->name('activate');
66
+                        ->middleware(['ajax'])
67
+                        ->name('activate');
68 68
 
69 69
                 // admin::auth.roles.deactivate
70 70
                 $this->put('deactivate', [RolesController::class, 'deactivate'])
71
-                     ->middleware(['ajax'])
72
-                     ->name('deactivate');
71
+                        ->middleware(['ajax'])
72
+                        ->name('deactivate');
73 73
 
74 74
                 // admin::auth.roles.delete
75 75
                 $this->delete('delete', [RolesController::class, 'delete'])
76
-                     ->middleware(['ajax'])
77
-                     ->name('delete');
76
+                        ->middleware(['ajax'])
77
+                        ->name('delete');
78 78
 
79 79
                 $this->namespace('Roles')->group(function () {
80 80
                     static::mapRouteClasses([
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function map(): void
33 33
     {
34
-        $this->name('roles.')->prefix('roles')->group(function () {
34
+        $this->name('roles.')->prefix('roles')->group(function() {
35 35
             // admin::auth.roles.index
36 36
             $this->get('/', [RolesController::class, 'index'])
37 37
                  ->name('index');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             $this->post('store', [RolesController::class, 'store'])
49 49
                  ->name('store');
50 50
 
51
-            $this->prefix('{'.static::ROLE_WILDCARD.'}')->group(function () {
51
+            $this->prefix('{'.static::ROLE_WILDCARD.'}')->group(function() {
52 52
                 // admin::auth.roles.show
53 53
                 $this->get('/', [RolesController::class, 'show'])
54 54
                      ->name('show');
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                      ->middleware(['ajax'])
77 77
                      ->name('delete');
78 78
 
79
-                $this->namespace('Roles')->group(function () {
79
+                $this->namespace('Roles')->group(function() {
80 80
                     static::mapRouteClasses([
81 81
                         Roles\AdministratorsRoutes::class,
82 82
                         Roles\PermissionsRoutes::class,
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function bindings(RolesRepository $repo): void
95 95
     {
96
-        $this->bind(static::ROLE_WILDCARD, function (string $uuid) use ($repo) {
96
+        $this->bind(static::ROLE_WILDCARD, function(string $uuid) use ($repo) {
97 97
             return $repo->firstWithUuidOrFail($uuid);
98 98
         });
99 99
 
Please login to merge, or discard this patch.
src/Authorization/Http/Routes/Web/Roles/AdministratorsRoutes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             $this->prefix('{'.static::USER_WILDCARD.'}')->group(function () {
38 38
                 // admin::auth.roles.administrators.detach
39 39
                 $this->delete('detach', [AdministratorsController::class, 'detach'])
40
-                     ->name('detach');
40
+                        ->name('detach');
41 41
             });
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function map(): void
35 35
     {
36
-        $this->prefix('administrators')->name('administrators.')->group(function () {
37
-            $this->prefix('{'.static::USER_WILDCARD.'}')->group(function () {
36
+        $this->prefix('administrators')->name('administrators.')->group(function() {
37
+            $this->prefix('{'.static::USER_WILDCARD.'}')->group(function() {
38 38
                 // admin::auth.roles.administrators.detach
39 39
                 $this->delete('detach', [AdministratorsController::class, 'detach'])
40 40
                      ->name('detach');
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function bindings(RolesRepository $repo): void
51 51
     {
52
-        $this->bind(static::USER_WILDCARD, function (string $uuid, Route $route) use ($repo) {
52
+        $this->bind(static::USER_WILDCARD, function(string $uuid, Route $route) use ($repo) {
53 53
             /** @var  \Arcanesoft\Foundation\Authorization\Models\Role  $role */
54 54
             $role = $route->parameter(RolesRoutes::ROLE_WILDCARD);
55 55
 
Please login to merge, or discard this patch.
src/Authorization/Http/Routes/Web/Roles/PermissionsRoutes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             $this->prefix('{'.static::PERMISSION_WILDCARD.'}')->group(function () {
38 38
                 // admin::auth.roles.permissions.detach
39 39
                 $this->delete('detach', [PermissionsController::class, 'detach'])
40
-                     ->name('detach');
40
+                        ->name('detach');
41 41
             });
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function map(): void
35 35
     {
36
-        $this->prefix('permissions')->name('permissions.')->group(function () {
37
-            $this->prefix('{'.static::PERMISSION_WILDCARD.'}')->group(function () {
36
+        $this->prefix('permissions')->name('permissions.')->group(function() {
37
+            $this->prefix('{'.static::PERMISSION_WILDCARD.'}')->group(function() {
38 38
                 // admin::auth.roles.permissions.detach
39 39
                 $this->delete('detach', [PermissionsController::class, 'detach'])
40 40
                      ->name('detach');
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function bindings(RolesRepository $repo): void
51 51
     {
52
-        $this->bind(static::PERMISSION_WILDCARD, function (string $uuid, Route $route) use ($repo) {
52
+        $this->bind(static::PERMISSION_WILDCARD, function(string $uuid, Route $route) use ($repo) {
53 53
             /** @var  \Arcanesoft\Foundation\Authorization\Models\Role  $role */
54 54
             $role = $route->parameter(RolesRoutes::ROLE_WILDCARD);
55 55
 
Please login to merge, or discard this patch.
src/Authorization/Http/Routes/Web/Administrators/SessionsRoutes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         $this->name('sessions.')->name('prefix')->group(function () {
37 37
             $this->prefix('{'.static::WILDCARD_SESSION.'}')->group(function () {
38 38
                 $this->delete('delete', [SessionsController::class, 'delete'])
39
-                     ->name('delete'); // admin::auth.administrators.sessions.delete
39
+                        ->name('delete'); // admin::auth.administrators.sessions.delete
40 40
             });
41 41
         });
42 42
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function map(): void
35 35
     {
36
-        $this->name('sessions.')->name('prefix')->group(function () {
37
-            $this->prefix('{'.static::WILDCARD_SESSION.'}')->group(function () {
36
+        $this->name('sessions.')->name('prefix')->group(function() {
37
+            $this->prefix('{'.static::WILDCARD_SESSION.'}')->group(function() {
38 38
                 $this->delete('delete', [SessionsController::class, 'delete'])
39 39
                      ->name('delete'); // admin::auth.administrators.sessions.delete
40 40
             });
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function bindings(SessionsRepository $repo): void
50 50
     {
51
-        $this->bind(static::WILDCARD_SESSION, function (string $uuid) use ($repo) {
51
+        $this->bind(static::WILDCARD_SESSION, function(string $uuid) use ($repo) {
52 52
             return $repo->firstByIdOrFail($uuid);
53 53
         });
54 54
     }
Please login to merge, or discard this patch.
src/Authorization/Http/Routes/Web/PasswordResetsRoutes.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
         $this->name('password-resets.')->prefix('password-resets')->group(function () {
27 27
             // admin::authorization.password-resets.index
28 28
             $this->get('/', [PasswordResetsController::class, 'index'])
29
-                 ->name('index');
29
+                    ->name('index');
30 30
 
31 31
             // admin::authorization.password-resets.metrics
32 32
             $this->get('metrics', [PasswordResetsController::class, 'metrics'])
33
-                 ->name('metrics');
33
+                    ->name('metrics');
34 34
         });
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function map(): void
25 25
     {
26
-        $this->name('password-resets.')->prefix('password-resets')->group(function () {
26
+        $this->name('password-resets.')->prefix('password-resets')->group(function() {
27 27
             // admin::authorization.password-resets.index
28 28
             $this->get('/', [PasswordResetsController::class, 'index'])
29 29
                  ->name('index');
Please login to merge, or discard this patch.
src/Authorization/Http/Routes/Web/Permissions/RolesRoutes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             $this->prefix('{'.static::ROLE_WILDCARD.'}')->group(function () {
38 38
                 // admin::auth.permissions.roles.detach
39 39
                 $this->delete('detach', [RolesController::class, 'detach'])
40
-                     ->name('detach');
40
+                        ->name('detach');
41 41
             });
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function map(): void
35 35
     {
36
-        $this->prefix('roles')->name('roles.')->group(function () {
37
-            $this->prefix('{'.static::ROLE_WILDCARD.'}')->group(function () {
36
+        $this->prefix('roles')->name('roles.')->group(function() {
37
+            $this->prefix('{'.static::ROLE_WILDCARD.'}')->group(function() {
38 38
                 // admin::auth.permissions.roles.detach
39 39
                 $this->delete('detach', [RolesController::class, 'detach'])
40 40
                      ->name('detach');
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function bindings(PermissionsRepository $repo): void
51 51
     {
52
-        $this->bind(static::ROLE_WILDCARD, function (string $uuid, Route $route) use ($repo) {
52
+        $this->bind(static::ROLE_WILDCARD, function(string $uuid, Route $route) use ($repo) {
53 53
             /** @var  \Arcanesoft\Foundation\Authorization\Models\Permission  $permission */
54 54
             $permission = $route->parameter(PermissionsRoutes::PERMISSION_WILDCARD);
55 55
 
Please login to merge, or discard this patch.