Completed
Pull Request — master (#607)
by Tortue
01:28
created
src/Former/Traits/Checkable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Former/Framework/TwitterBootstrap5.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.