Completed
Pull Request — master (#3979)
by
unknown
07:34
created
src/Actions/Action.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * @param string $prefix
123 123
      *
124
-     * @return mixed|string
124
+     * @return string
125 125
      */
126 126
     public function selector($prefix)
127 127
     {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     }
212 212
 
213 213
     /**
214
-     * @return mixed
214
+     * @return string
215 215
      */
216 216
     public function getCalledClass()
217 217
     {
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
     }
412 412
 
413 413
     /**
414
-     * @return mixed
414
+     * @return string
415 415
      */
416 416
     public function render()
417 417
     {
Please login to merge, or discard this 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 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-     * @return mixed
48
+     * @return string
49 49
      */
50 50
     protected function getModelClass()
51 51
     {
Please login to merge, or discard this 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/Response.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
     /**
210 210
      * @param \Exception $exception
211 211
      *
212
-     * @return mixed
212
+     * @return Response
213 213
      */
214 214
     public static function withException(\Exception $exception)
215 215
     {
Please login to merge, or discard this patch.
src/Actions/RowAction.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     /**
41 41
      * Set row model.
42 42
      *
43
-     * @param mixed $key
43
+     * @param string $key
44 44
      *
45 45
      * @return \Illuminate\Database\Eloquent\Model|mixed
46 46
      */
Please login to merge, or discard this 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/HasPermissions.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * Get all permissions of user.
11 11
      *
12
-     * @return mixed
12
+     * @return Collection
13 13
      */
14 14
     public function allPermissions() : Collection
15 15
     {
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     /**
20 20
      * Check if user has permission.
21 21
      *
22
-     * @param $ability
22
+     * @param string $ability
23 23
      * @param array $arguments
24 24
      *
25 25
      * @return bool
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * Check if user is administrator.
58 58
      *
59
-     * @return mixed
59
+     * @return boolean
60 60
      */
61 61
     public function isAdministrator() : bool
62 62
     {
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      *
69 69
      * @param string $role
70 70
      *
71
-     * @return mixed
71
+     * @return boolean
72 72
      */
73 73
     public function isRole(string $role) : bool
74 74
     {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      *
81 81
      * @param array $roles
82 82
      *
83
-     * @return mixed
83
+     * @return boolean
84 84
      */
85 85
     public function inRoles(array $roles = []) : bool
86 86
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
     {
115 115
         parent::boot();
116 116
 
117
-        static::deleting(function ($model) {
117
+        static::deleting(function($model) {
118 118
             $model->roles()->detach();
119 119
 
120 120
             $model->permissions()->detach();
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.