Completed
Pull Request — master (#3979)
by
unknown
07:34
created
src/Actions/Action.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Actions;
4 4
 
5
-use Encore\Admin\Admin;
6
-use Encore\Admin\Form\Field;
7
-use Illuminate\Contracts\Support\Renderable;
5
+use Encore\Admin\Admin;
6
+use Encore\Admin\Form\Field;
7
+use Illuminate\Contracts\Support\Renderable;
8 8
 use Illuminate\Http\Request;
9 9
 
10 10
 /**
Please login to merge, or discard this patch.
src/Actions/Authorizable.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Actions;
4 4
 
5
-use Encore\Admin\Facades\Admin;
6
-use Illuminate\Database\Eloquent\Collection;
5
+use Encore\Admin\Facades\Admin;
6
+use Illuminate\Database\Eloquent\Collection;
7 7
 use Illuminate\Database\Eloquent\Model;
8 8
 
9 9
 /**
Please login to merge, or discard this patch.
src/Actions/GridAction.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Actions;
4 4
 
5
-use Encore\Admin\Grid;
5
+use Encore\Admin\Grid;
6 6
 use Illuminate\Http\Request;
7 7
 
8 8
 /**
Please login to merge, or discard this patch.
src/Actions/Interactor/Form.php 1 patch
Unused Use Statements   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Actions\Interactor;
4 4
 
5
-use Encore\Admin\Actions\RowAction;
6
-use Encore\Admin\Admin;
7
-use Encore\Admin\Form\Field;
8
-use Illuminate\Http\Request;
9
-use Illuminate\Support\MessageBag;
10
-use Illuminate\Validation\ValidationException;
11
-use Illuminate\Validation\Validator;
5
+use Encore\Admin\Actions\RowAction;
6
+use Encore\Admin\Admin;
7
+use Encore\Admin\Form\Field;
8
+use Illuminate\Http\Request;
9
+use Illuminate\Support\MessageBag;
10
+use Illuminate\Validation\ValidationException;
11
+use Illuminate\Validation\Validator;
12 12
 use Symfony\Component\DomCrawler\Crawler;
13 13
 
14 14
 class Form extends Interactor
Please login to merge, or discard this patch.
src/Actions/RowAction.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Actions;
4 4
 
5
-use Encore\Admin\Grid\Column;
5
+use Encore\Admin\Grid\Column;
6 6
 use Illuminate\Http\Request;
7 7
 
8 8
 abstract class RowAction extends GridAction
Please login to merge, or discard this patch.
src/Auth/Database/Administrator.php 1 patch
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Auth\Database;
4 4
 
5
-use Encore\Admin\Traits\AdminBuilder;
6
-use Illuminate\Auth\Authenticatable;
7
-use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
8
-use Illuminate\Database\Eloquent\Model;
9
-use Illuminate\Database\Eloquent\Relations\BelongsToMany;
5
+use Encore\Admin\Traits\AdminBuilder;
6
+use Illuminate\Auth\Authenticatable;
7
+use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
8
+use Illuminate\Database\Eloquent\Model;
9
+use Illuminate\Database\Eloquent\Relations\BelongsToMany;
10 10
 use Illuminate\Support\Facades\Storage;
11 11
 
12 12
 /**
Please login to merge, or discard this patch.
src/Auth/Database/Menu.php 2 patches
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Auth\Database;
4 4
 
5
-use Encore\Admin\Traits\AdminBuilder;
6
-use Encore\Admin\Traits\ModelTree;
7
-use Illuminate\Database\Eloquent\Model;
8
-use Illuminate\Database\Eloquent\Relations\BelongsToMany;
5
+use Encore\Admin\Traits\AdminBuilder;
6
+use Encore\Admin\Traits\ModelTree;
7
+use Illuminate\Database\Eloquent\Model;
8
+use Illuminate\Database\Eloquent\Relations\BelongsToMany;
9 9
 use Illuminate\Support\Facades\DB;
10 10
 
11 11
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     {
97 97
         static::treeBoot();
98 98
 
99
-        static::deleting(function ($model) {
99
+        static::deleting(function($model) {
100 100
             $model->roles()->detach();
101 101
         });
102 102
     }
Please login to merge, or discard this patch.
src/Auth/Database/Permission.php 2 patches
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Auth\Database;
4 4
 
5
-use Illuminate\Database\Eloquent\Model;
6
-use Illuminate\Database\Eloquent\Relations\BelongsToMany;
7
-use Illuminate\Http\Request;
5
+use Illuminate\Database\Eloquent\Model;
6
+use Illuminate\Database\Eloquent\Relations\BelongsToMany;
7
+use Illuminate\Http\Request;
8 8
 use Illuminate\Support\Str;
9 9
 
10 10
 class Permission extends Model
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $method = $this->http_method;
68 68
 
69
-        $matches = array_map(function ($path) use ($method) {
69
+        $matches = array_map(function($path) use ($method) {
70 70
             $path = trim(config('admin.route.prefix'), '/').$path;
71 71
 
72 72
             if (Str::contains($path, ':')) {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             return false;
119 119
         }
120 120
 
121
-        $method = collect($match['method'])->filter()->map(function ($method) {
121
+        $method = collect($match['method'])->filter()->map(function($method) {
122 122
             return strtoupper($method);
123 123
         });
124 124
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     {
159 159
         parent::boot();
160 160
 
161
-        static::deleting(function ($model) {
161
+        static::deleting(function($model) {
162 162
             $model->roles()->detach();
163 163
         });
164 164
     }
Please login to merge, or discard this patch.
src/Auth/Permission.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Auth;
4 4
 
5
-use Encore\Admin\Facades\Admin;
5
+use Encore\Admin\Facades\Admin;
6 6
 use Encore\Admin\Middleware\Pjax;
7 7
 
8 8
 class Permission
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         }
22 22
 
23 23
         if (is_array($permission)) {
24
-            collect($permission)->each(function ($permission) {
24
+            collect($permission)->each(function($permission) {
25 25
                 call_user_func([self::class, 'check'], $permission);
26 26
             });
27 27
 
Please login to merge, or discard this patch.