Passed
Pull Request — master (#14)
by ARCANEDEV
08:28
created
src/Core/Database/RolesSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function seedMany(array $roles): void
31 31
     {
32
-        $roles = array_map(function (array $role) {
32
+        $roles = array_map(function(array $role) {
33 33
             return static::prepareRole($role);
34 34
         }, $roles);
35 35
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     {
130 130
         $needles = Arr::wrap($needles);
131 131
 
132
-        return $permissions->filter(function ($ability) use ($needles) {
132
+        return $permissions->filter(function($ability) use ($needles) {
133 133
             return Str::startsWith($ability, $needles) || Str::is($needles, $ability);
134 134
         })->keys()->toArray();
135 135
     }
Please login to merge, or discard this patch.
src/Core/Providers/AuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function boot(): void
43 43
     {
44
-        Gate::after(function (Administrator $admin, string $ability) {
44
+        Gate::after(function(Administrator $admin, string $ability) {
45 45
             return $admin->isSuperAdmin()
46 46
                 || $admin->may($ability);
47 47
         });
Please login to merge, or discard this patch.
src/Core/Http/Routes/WebRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function map(): void
24 24
     {
25
-        $this->adminGroup(function () {
25
+        $this->adminGroup(function() {
26 26
             static::mapRouteClasses([
27 27
                 Web\DashboardRoutes::class,
28 28
             ]);
Please login to merge, or discard this patch.
src/Core/Http/Routes/ApiRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function map(): void
29 29
     {
30
-        $this->adminApiGroup(function () {
30
+        $this->adminApiGroup(function() {
31 31
             static::mapRouteClasses([
32 32
                 EventsRoutes::class,
33 33
                 ComponentsRoutes::class,
Please login to merge, or discard this patch.
src/Core/Http/Routes/Api/ComponentsRoutes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $this->prefix('components')->name('components.')->group(function () {
29 29
             // admin::api.components.handle
30 30
             $this->post('/', [ComponentsController::class, 'handle'])
31
-                 ->name('handle');
31
+                    ->name('handle');
32 32
         });
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function map(): void
27 27
     {
28
-        $this->prefix('components')->name('components.')->group(function () {
28
+        $this->prefix('components')->name('components.')->group(function() {
29 29
             // admin::api.components.handle
30 30
             $this->post('/', [ComponentsController::class, 'handle'])
31 31
                  ->name('handle');
Please login to merge, or discard this patch.
src/Core/Http/Routes/Api/MetricsRoutes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $this->prefix('metrics')->name('metrics.')->group(function () {
29 29
             // admin::api.metrics.handle
30 30
             $this->post('/', [MetricsController::class, 'handle'])
31
-                 ->name('handle');
31
+                    ->name('handle');
32 32
         });
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function map(): void
27 27
     {
28
-        $this->prefix('metrics')->name('metrics.')->group(function () {
28
+        $this->prefix('metrics')->name('metrics.')->group(function() {
29 29
             // admin::api.metrics.handle
30 30
             $this->post('/', [MetricsController::class, 'handle'])
31 31
                  ->name('handle');
Please login to merge, or discard this patch.
src/Core/Http/Routes/Api/EventsRoutes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $this->prefix('events')->name('events.')->group(function () {
29 29
             // admin::api.events.handle
30 30
             $this->post('/', [EventsController::class, 'handle'])
31
-                 ->name('handle');
31
+                    ->name('handle');
32 32
         });
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function map(): void
27 27
     {
28
-        $this->prefix('events')->name('events.')->group(function () {
28
+        $this->prefix('events')->name('events.')->group(function() {
29 29
             // admin::api.events.handle
30 30
             $this->post('/', [EventsController::class, 'handle'])
31 31
                  ->name('handle');
Please login to merge, or discard this patch.
src/Core/Http/Routes/Web/DashboardRoutes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
     {
35 35
         // admin::index
36 36
         $this->get('/', [DashboardController::class, 'index'])
37
-             ->name('index');
37
+                ->name('index');
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/Core/Http/Middleware/EnsureIsActive.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,9 @@
 block discarded – undo
47 47
      */
48 48
     private function isActivated($user): bool
49 49
     {
50
-        if ( ! $user instanceof CanBeActivated)
51
-            return false;
50
+        if ( ! $user instanceof CanBeActivated) {
51
+                    return false;
52
+        }
52 53
 
53 54
         return $user->isActive();
54 55
     }
Please login to merge, or discard this patch.