Completed
Push — master ( 95818c...eae1b4 )
by Ben
99:23 queued 32:03
created
src/Former/Framework/TwitterBootstrap4.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
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
 
351 351
 		// In Bootsrap 3 or 4, don't append the the checkable type (radio/checkbox) as a class if
352 352
 		// rendering inline.
353
-		$class =  ($this->app['former']->framework() == 'TwitterBootstrap3' ||
353
+		$class = ($this->app['former']->framework() == 'TwitterBootstrap3' ||
354 354
 			$this->app['former']->framework() == 'TwitterBootstrap4') ? trim($isInline) : $this->checkable.$isInline;
355 355
 
356 356
 		// Merge custom attributes with global attributes
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 			$element = (is_object($field)) ? $field->render() : $field;
382 382
 		} elseif ($this->app['former']->framework() == 'TwitterBootstrap4') {
383 383
 			// Revised for Bootstrap 4, move the 'input' outside of the 'label'
384
-			$element = $field . Element::create('label', $label)->for($attributes['id'])->class($class)->render();
384
+			$element = $field.Element::create('label', $label)->for($attributes['id'])->class($class)->render();
385 385
 
386 386
 			$wrapper_class = $this->inline ? 'form-check form-check-inline' : 'form-check';
387 387
 			
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 		$this->app['former']->labels[] = $name;
422 422
 
423 423
 		// Count number of fields with the same ID
424
-		$where  = array_filter($this->app['former']->labels, function ($label) use ($name) {
424
+		$where  = array_filter($this->app['former']->labels, function($label) use ($name) {
425 425
 			return $label == $name;
426 426
 		});
427 427
 		$unique = sizeof($where);
Please login to merge, or discard this patch.