Test Setup Failed
Branch master (5c926f)
by Song
09:45
created
src/Widgets/Box.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@  discard block
 block discarded – undo
26 26
         }
27 27
     }
28 28
 
29
+    /**
30
+     * @param string $content
31
+     */
29 32
     public function content($content)
30 33
     {
31 34
         if ($content instanceof Renderable) {
@@ -37,6 +40,9 @@  discard block
 block discarded – undo
37 40
         return $this;
38 41
     }
39 42
 
43
+    /**
44
+     * @param string $title
45
+     */
40 46
     public function title($title)
41 47
     {
42 48
         $this->attributes['title'] = $title;
Please login to merge, or discard this patch.
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.
src/Widgets/Chart/Pie.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
         return $data;
56 56
     }
57 57
 
58
+    /**
59
+     * @return string
60
+     */
58 61
     public function script()
59 62
     {
60 63
         $this->data = $this->fillColor($this->data);
Please login to merge, or discard this patch.
src/Grid/Filter/Between.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
         $this->value = array_get($inputs, $this->column);
56 56
 
57
-        $value = array_filter($this->value, function ($val) {
57
+        $value = array_filter($this->value, function($val) {
58 58
             return $val !== '';
59 59
         });
60 60
 
Please login to merge, or discard this patch.
src/Grid/Filter/AbstractFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
 
159 159
         list($relation, $args[0]) = explode('.', $this->column);
160 160
 
161
-        return ['whereHas' => [$relation, function ($relation) use ($args) {
161
+        return ['whereHas' => [$relation, function($relation) use ($args) {
162 162
             call_user_func_array([$relation, $this->query], $args);
163 163
         }]];
164 164
     }
Please login to merge, or discard this patch.
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/RoleController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function index()
23 23
     {
24
-        return Admin::content(function (Content $content) {
24
+        return Admin::content(function(Content $content) {
25 25
             $content->header(trans('admin::lang.roles'));
26 26
             $content->description(trans('admin::lang.list'));
27 27
             $content->body($this->grid()->render());
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function edit($id)
39 39
     {
40
-        return Admin::content(function (Content $content) use ($id) {
40
+        return Admin::content(function(Content $content) use ($id) {
41 41
             $content->header(trans('admin::lang.roles'));
42 42
             $content->description(trans('admin::lang.edit'));
43 43
             $content->body($this->form()->edit($id));
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function create()
53 53
     {
54
-        return Admin::content(function (Content $content) {
54
+        return Admin::content(function(Content $content) {
55 55
             $content->header(trans('admin::lang.roles'));
56 56
             $content->description(trans('admin::lang.create'));
57 57
             $content->body($this->form());
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function grid()
67 67
     {
68
-        return Admin::grid(Role::class, function (Grid $grid) {
68
+        return Admin::grid(Role::class, function(Grid $grid) {
69 69
             $grid->id('ID')->sortable();
70 70
             $grid->slug(trans('admin::lang.slug'));
71 71
             $grid->name(trans('admin::lang.name'));
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      */
83 83
     public function form()
84 84
     {
85
-        return Admin::form(Role::class, function (Form $form) {
85
+        return Admin::form(Role::class, function(Form $form) {
86 86
             $form->display('id', 'ID');
87 87
 
88 88
             $form->text('slug', trans('admin::lang.slug'));
Please login to merge, or discard this patch.