Completed
Push — master ( 13a7d4...45d37a )
by Tortue
14s queued 12s
created
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.
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);
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 			if ($this->app['former']->framework() === 'TwitterBootstrap5' &&
406 406
 				$this->isOfType('switch', 'switches')
407 407
 			) {
408
-				$wrapperClass.= ' form-switch';
408
+				$wrapperClass .= ' form-switch';
409 409
 			}
410 410
 			$element = Element::create('div', $element)->class($wrapperClass)->render();
411 411
 		} else {
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
 		$this->app['former']->labels[] = $name;
443 443
 
444 444
 		// Count number of fields with the same ID
445
-		$where  = array_filter($this->app['former']->labels, function ($label) use ($name) {
445
+		$where  = array_filter($this->app['former']->labels, function($label) use ($name) {
446 446
 			return $label == $name;
447 447
 		});
448 448
 		$unique = sizeof($where);
Please login to merge, or discard this patch.