@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | |
| 366 | 366 | // In Bootsrap 3 or 4 or 5, don't append the the checkable type (radio/checkbox) as a class if |
| 367 | 367 | // rendering inline. |
| 368 | - $class = in_array($this->app['former']->framework(), ['TwitterBootstrap3', 'TwitterBootstrap4', 'TwitterBootstrap5']) ? trim($isInline) : $this->checkable.$isInline; |
|
| 368 | + $class = in_array($this->app['former']->framework(), ['TwitterBootstrap3', 'TwitterBootstrap4', 'TwitterBootstrap5']) ? trim($isInline) : $this->checkable.$isInline; |
|
| 369 | 369 | |
| 370 | 370 | // Merge custom attributes with global attributes |
| 371 | 371 | $attributes = array_merge($this->attributes, $attributes); |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | } elseif (in_array($this->app['former']->framework(), ['TwitterBootstrap4', 'TwitterBootstrap5'])) { |
| 397 | 397 | // Revised for Bootstrap 4, move the 'input' outside of the 'label' |
| 398 | 398 | $labelClass = 'form-check-label'; |
| 399 | - $element = $field . Element::create('label', $label)->for($attributes['id'])->class($labelClass)->render(); |
|
| 399 | + $element = $field.Element::create('label', $label)->for($attributes['id'])->class($labelClass)->render(); |
|
| 400 | 400 | |
| 401 | 401 | $wrapper_class = $this->inline ? 'form-check form-check-inline' : 'form-check'; |
| 402 | 402 | |
@@ -435,7 +435,7 @@ discard block |
||
| 435 | 435 | $this->app['former']->labels[] = $name; |
| 436 | 436 | |
| 437 | 437 | // Count number of fields with the same ID |
| 438 | - $where = array_filter($this->app['former']->labels, function ($label) use ($name) { |
|
| 438 | + $where = array_filter($this->app['former']->labels, function($label) use ($name) { |
|
| 439 | 439 | return $label == $name; |
| 440 | 440 | }); |
| 441 | 441 | $unique = sizeof($where); |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | $classes = array_intersect($classes, $this->fields); |
| 140 | 140 | |
| 141 | 141 | // Prepend field type |
| 142 | - $classes = array_map(function ($class) { |
|
| 142 | + $classes = array_map(function($class) { |
|
| 143 | 143 | return Str::startsWith($class, 'col') ? $class : 'input-'.$class; |
| 144 | 144 | }, $classes); |
| 145 | 145 | |