Completed
Pull Request — master (#5493)
by
unknown
28s
created
src/Widgets/Box.php 1 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/Grid/Tools/Paginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             'total' => $this->paginator->total(),
73 73
         ];
74 74
 
75
-        $parameters = collect($parameters)->flatMap(function ($parameter, $key) {
75
+        $parameters = collect($parameters)->flatMap(function($parameter, $key) {
76 76
             return [$key => "<b>$parameter</b>"];
77 77
         });
78 78
 
Please login to merge, or discard this patch.
src/Grid/Displayers/ProgressBar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function display($style = 'primary', $size = 'sm', $max = 100)
8 8
     {
9
-        $style = collect((array) $style)->map(function ($style) {
9
+        $style = collect((array) $style)->map(function($style) {
10 10
             return 'progress-bar-'.$style;
11 11
         })->implode(' ');
12 12
 
Please login to merge, or discard this patch.
src/Tree/Tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     public function render()
57 57
     {
58
-        return $this->tools->map(function ($tool) {
58
+        return $this->tools->map(function($tool) {
59 59
             if ($tool instanceof Renderable) {
60 60
                 return $tool->render();
61 61
             }
Please login to merge, or discard this patch.
src/Form/EmbeddedForm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      */
162 162
     protected function prepareValue($key, $record)
163 163
     {
164
-        $field = $this->fields->first(function (Field $field) use ($key) {
164
+        $field = $this->fields->first(function(Field $field) use ($key) {
165 165
             return in_array($key, (array) $field->column());
166 166
         });
167 167
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         if (array_key_exists($key, $this->original)) {
185 185
             $values = $this->original[$key];
186 186
 
187
-            $this->fields->each(function (Field $field) use ($values) {
187
+            $this->fields->each(function(Field $field) use ($values) {
188 188
                 $field->setOriginal($values);
189 189
             });
190 190
         }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      */
200 200
     public function fill(array $data)
201 201
     {
202
-        $this->fields->each(function (Field $field) use ($data) {
202
+        $this->fields->each(function(Field $field) use ($data) {
203 203
             $field->fill($data);
204 204
         });
205 205
 
Please login to merge, or discard this patch.
src/Tree.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
     protected function initBranchCallback()
104 104
     {
105 105
         if (is_null($this->branchCallback)) {
106
-            $this->branchCallback = function ($branch) {
106
+            $this->branchCallback = function($branch) {
107 107
                 $key = $branch[$this->model->getKeyName()];
108 108
                 $title = $branch[$this->model->getTitleColumn()];
109 109
 
Please login to merge, or discard this patch.
src/Widgets/Navbar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             return '';
71 71
         }
72 72
 
73
-        return $this->elements[$part]->map(function ($element) {
73
+        return $this->elements[$part]->map(function($element) {
74 74
             if ($element instanceof Htmlable) {
75 75
                 return $element->toHtml();
76 76
             }
Please login to merge, or discard this patch.
src/Auth/Database/Role.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     {
87 87
         parent::boot();
88 88
 
89
-        static::deleting(function ($model) {
89
+        static::deleting(function($model) {
90 90
             $model->administrators()->detach();
91 91
 
92 92
             $model->permissions()->detach();
Please login to merge, or discard this patch.
src/Auth/Database/Permission.php 1 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, ':')) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             return false;
101 101
         }
102 102
 
103
-        $method = collect($match['method'])->filter()->map(function ($method) {
103
+        $method = collect($match['method'])->filter()->map(function($method) {
104 104
             return strtoupper($method);
105 105
         });
106 106
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         parent::boot();
142 142
 
143
-        static::deleting(function ($model) {
143
+        static::deleting(function($model) {
144 144
             $model->roles()->detach();
145 145
         });
146 146
     }
Please login to merge, or discard this patch.