Completed
Branch master (a13a77)
by Song
02:37
created
src/Grid/Row.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
     public function style($style)
135 135
     {
136 136
         if (is_array($style)) {
137
-            $style = implode('', array_map(function ($key, $val) {
137
+            $style = implode('', array_map(function($key, $val) {
138 138
                 return "$key:$val";
139 139
             }, array_keys($style), array_values($style)));
140 140
         }
Please login to merge, or discard this patch.
src/Grid/Column.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     public function button($style = 'default')
211 211
     {
212 212
         if (is_array($style)) {
213
-            $style = array_map(function ($style) {
213
+            $style = array_map(function($style) {
214 214
                 return 'btn-'.$style;
215 215
             }, $style);
216 216
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     public function progressBar($style = 'primary', $size = 'sm', $max = 100)
239 239
     {
240 240
         if (is_array($style)) {
241
-            $style = array_map(function ($style) {
241
+            $style = array_map(function($style) {
242 242
                 return 'progress-bar-'.$style;
243 243
             }, $style);
244 244
 
Please login to merge, or discard this patch.
src/Routing/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $attributes = $this->attributes;
66 66
         $attributes['namespace'] = 'Encore\Admin\Controllers';
67 67
 
68
-        $this->router->group($attributes, function ($router) {
68
+        $this->router->group($attributes, function($router) {
69 69
             $router->resources([
70 70
                 'auth/users'       => 'UserController',
71 71
                 'auth/roles'       => 'RoleController',
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function register()
87 87
     {
88
-        $this->router->group($this->attributes, function ($router) {
88
+        $this->router->group($this->attributes, function($router) {
89 89
             foreach ($this->routes as $method => $arguments) {
90 90
                 foreach ($arguments as $argument) {
91 91
                     call_user_func_array([$router, $method], $argument);
Please login to merge, or discard this patch.
src/Providers/AdminServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function register()
62 62
     {
63
-        $this->app->booting(function () {
63
+        $this->app->booting(function() {
64 64
             $loader = AliasLoader::getInstance();
65 65
 
66 66
             $loader->alias('Admin', \Encore\Admin\Facades\Admin::class);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
     public function registerRouter()
116 116
     {
117
-        $this->app->singleton('admin.router', function ($app) {
117
+        $this->app->singleton('admin.router', function($app) {
118 118
             return new Router($app['router']);
119 119
         });
120 120
     }
Please login to merge, or discard this patch.
src/Controllers/PermissionController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function index()
22 22
     {
23
-        return Admin::content(function (Content $content) {
23
+        return Admin::content(function(Content $content) {
24 24
             $content->header(trans('admin::lang.permissions'));
25 25
             $content->description(trans('admin::lang.list'));
26 26
             $content->body($this->grid()->render());
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function edit($id)
38 38
     {
39
-        return Admin::content(function (Content $content) use ($id) {
39
+        return Admin::content(function(Content $content) use ($id) {
40 40
             $content->header(trans('admin::lang.permissions'));
41 41
             $content->description(trans('admin::lang.edit'));
42 42
             $content->body($this->form()->edit($id));
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function create()
52 52
     {
53
-        return Admin::content(function (Content $content) {
53
+        return Admin::content(function(Content $content) {
54 54
             $content->header(trans('admin::lang.permissions'));
55 55
             $content->description(trans('admin::lang.create'));
56 56
             $content->body($this->form());
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     protected function grid()
66 66
     {
67
-        return Admin::grid(Permission::class, function (Grid $grid) {
67
+        return Admin::grid(Permission::class, function(Grid $grid) {
68 68
             $grid->id('ID')->sortable();
69 69
             $grid->slug(trans('admin::lang.slug'));
70 70
             $grid->name(trans('admin::lang.name'));
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function form()
83 83
     {
84
-        return Admin::form(Permission::class, function (Form $form) {
84
+        return Admin::form(Permission::class, function(Form $form) {
85 85
             $form->display('id', 'ID');
86 86
 
87 87
             $form->text('slug', trans('admin::lang.slug'));
Please login to merge, or discard this patch.
src/Widgets/Box.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             return $this->style([$styles]);
65 65
         }
66 66
 
67
-        $styles = array_map(function ($style) {
67
+        $styles = array_map(function($style) {
68 68
             return 'box-'.$style;
69 69
         }, $styles);
70 70
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * Set box content.
43 43
      *
44
-     * @param $content
44
+     * @param string $content
45 45
      *
46 46
      * @return $this
47 47
      */
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * Set box style.
97 97
      *
98
-     * @param $styles
98
+     * @param string $styles
99 99
      *
100 100
      * @return $this|Box
101 101
      */
Please login to merge, or discard this patch.
src/Auth/Permission.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     protected static function error()
52 52
     {
53
-        $content = Admin::content(function ($content) {
53
+        $content = Admin::content(function($content) {
54 54
             $content->body(view('admin::deny'));
55 55
         });
56 56
 
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      *
13 13
      * @param $permission
14 14
      *
15
-     * @return true
15
+     * @return boolean|null
16 16
      */
17 17
     public static function check($permission)
18 18
     {
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @param $roles
32 32
      *
33
-     * @return true
33
+     * @return boolean|null
34 34
      */
35 35
     public static function allow($roles)
36 36
     {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      *
49 49
      * @param $roles
50 50
      *
51
-     * @return true
51
+     * @return boolean|null
52 52
      */
53 53
     public static function deny($roles)
54 54
     {
Please login to merge, or discard this patch.
src/Widgets/Form.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
      * @param Field $field
141 141
      * @return $this
142 142
      */
143
-    protected function pushField(Field &$field)
143
+    protected function pushField(Field & $field)
144 144
     {
145 145
         array_push($this->fields, $field);
146 146
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * Add form attributes.
119 119
      *
120
-     * @param string|array $attr
120
+     * @param string $attr
121 121
      * @param string       $value
122 122
      *
123 123
      * @return $this
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      *
141 141
      * @param string $method
142 142
      *
143
-     * @return bool|string
143
+     * @return string|false
144 144
      */
145 145
     public static function findFieldClass($method)
146 146
     {
Please login to merge, or discard this patch.
src/Auth/Database/Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
     {
85 85
         static::$branchOrder = array_flip(array_flatten($order));
86 86
 
87
-        static::$branchOrder = array_map(function ($item) {
87
+        static::$branchOrder = array_map(function($item) {
88 88
             return ++$item;
89 89
         }, static::$branchOrder);
90 90
     }
Please login to merge, or discard this patch.