@@ -12,7 +12,7 @@ |
||
| 12 | 12 | $this->value = $this->value->toArray(); |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | - return collect((array) $this->value)->map(function ($name) use ($style) { |
|
| 15 | + return collect((array) $this->value)->map(function($name) use ($style) { |
|
| 16 | 16 | return "<span class='badge bg-{$style}'>$name</span>"; |
| 17 | 17 | })->implode(' '); |
| 18 | 18 | } |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | 'data-value' => "{$this->value}", |
| 156 | 156 | ]; |
| 157 | 157 | |
| 158 | - $attributes = collect($attributes)->map(function ($attribute, $name) { |
|
| 158 | + $attributes = collect($attributes)->map(function($attribute, $name) { |
|
| 159 | 159 | return "$name='$attribute'"; |
| 160 | 160 | })->implode(' '); |
| 161 | 161 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | $this->value = $this->value->toArray(); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - return collect((array) $this->value)->filter()->map(function ($path) use ($server, $width, $height) { |
|
| 16 | + return collect((array) $this->value)->filter()->map(function($path) use ($server, $width, $height) { |
|
| 17 | 17 | if (url()->isValidUrl($path)) { |
| 18 | 18 | $src = $path; |
| 19 | 19 | } else { |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public function display($style) |
| 8 | 8 | { |
| 9 | - $style = collect((array) $style)->map(function ($style) { |
|
| 9 | + $style = collect((array) $style)->map(function($style) { |
|
| 10 | 10 | return 'btn-'.$style; |
| 11 | 11 | })->implode(' '); |
| 12 | 12 | |
@@ -6,7 +6,7 @@ |
||
| 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 | |
@@ -55,7 +55,7 @@ |
||
| 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 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | public function render() |
| 26 | 26 | { |
| 27 | - return $this->items->reverse()->map(function ($item) { |
|
| 27 | + return $this->items->reverse()->map(function($item) { |
|
| 28 | 28 | if ($item instanceof Htmlable) { |
| 29 | 29 | return $item->toHtml(); |
| 30 | 30 | } |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | public function setWidth($fieldWidth = 8, $labelWidth = 2) |
| 164 | 164 | { |
| 165 | - collect($this->fields)->each(function ($field) use ($fieldWidth, $labelWidth) { |
|
| 165 | + collect($this->fields)->each(function($field) use ($fieldWidth, $labelWidth) { |
|
| 166 | 166 | /* @var Field $field */ |
| 167 | 167 | $field->setWidth($fieldWidth, $labelWidth); |
| 168 | 168 | }); |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | * |
| 196 | 196 | * @return $this |
| 197 | 197 | */ |
| 198 | - protected function pushField(Field &$field) |
|
| 198 | + protected function pushField(Field & $field) |
|
| 199 | 199 | { |
| 200 | 200 | array_push($this->fields, $field); |
| 201 | 201 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | */ |
| 58 | 58 | public function allPermissions() |
| 59 | 59 | { |
| 60 | - return $this->roles->map(function ($role) { |
|
| 60 | + return $this->roles->map(function($role) { |
|
| 61 | 61 | return $role->permissions; |
| 62 | 62 | })->flatten()->merge($this->permissions); |
| 63 | 63 | } |