Passed
Pull Request — master (#14)
by ARCANEDEV
08:52
created
database/migrations/2019_01_01_000009_create_auth_throttles_table.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
         if ( ! Auth::config('throttles.enabled', false))
42 42
             return;
43 43
 
44
-        $this->createSchema(function (Blueprint $table) {
44
+        $this->createSchema(function(Blueprint $table) {
45 45
             $table->id();
46 46
             $table->unsignedBigInteger('user_id')->nullable();
47 47
 
Please login to merge, or discard this patch.
migrations/2019_01_01_000002_create_auth_socialite_providers_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function up(): void
42 42
     {
43
-        $this->createSchema(function (Blueprint $table) {
43
+        $this->createSchema(function(Blueprint $table) {
44 44
             $table->id();
45 45
             $table->unsignedBigInteger('user_id')->index();
46 46
             $table->string('provider_type', 50);
Please login to merge, or discard this patch.
database/migrations/2019_01_01_000003_create_auth_administrators_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function up(): void
42 42
     {
43
-        $this->createSchema(function (Blueprint $table) {
43
+        $this->createSchema(function(Blueprint $table) {
44 44
             $table->id();
45 45
             $table->uuid('uuid');
46 46
             $table->string('first_name', 30)->nullable();
Please login to merge, or discard this patch.
database/migrations/2019_01_01_000011_create_auth_sessions_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function up(): void
42 42
     {
43
-        $this->createSchema(function (Blueprint $table) {
43
+        $this->createSchema(function(Blueprint $table) {
44 44
             $table->string('id')->primary();
45 45
             $table->foreignId('user_id')->nullable()->index();
46 46
             $table->string('guard', 20)->nullable();
Please login to merge, or discard this patch.
database/migrations/2019_01_01_000010_create_auth_password_resets_table.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 up(): void
43 43
     {
44
-        $this->createSchema(function (Blueprint $table) {
44
+        $this->createSchema(function(Blueprint $table) {
45 45
             $table->string('email');
46 46
             $table->string('token');
47 47
             $table->timestamp('created_at')->nullable();
Please login to merge, or discard this patch.
database/migrations/2019_01_01_000006_create_auth_permissions_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function up(): void
42 42
     {
43
-        $this->createSchema(function (Blueprint $table) {
43
+        $this->createSchema(function(Blueprint $table) {
44 44
             $table->id();
45 45
             $table->uuid('uuid');
46 46
             $table->unsignedInteger('group_id')->default(0);
Please login to merge, or discard this patch.
src/Core/Database/PermissionsSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@
 block discarded – undo
53 53
     protected function getPermissionsFromPolicyManager($abilities): Collection
54 54
     {
55 55
         return $this->policyManager()->abilities()
56
-            ->filter(function (Ability $ability) use ($abilities) {
56
+            ->filter(function(Ability $ability) use ($abilities) {
57 57
                 return Str::startsWith($ability->key(), $abilities);
58 58
             })
59
-            ->transform(function (Ability $ability) {
59
+            ->transform(function(Ability $ability) {
60 60
                 return new Permission(array_merge($ability->metas(), [
61 61
                     'ability' => $ability->key(),
62 62
                 ]));
Please login to merge, or discard this patch.
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.