Skip to content

Commit

Permalink
code tweak for fluidity
Browse files Browse the repository at this point in the history
  • Loading branch information
petercoles committed Aug 22, 2013
1 parent 06bb17c commit f148e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Former/Framework/TwitterBootstrap3.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getFieldClasses(Field $field, $classes)

// Add form-control class for text-type, textarea and select fields
// As text-type is open-ended we instead exclude those that shouldn't receive the class
if (!$field->isCheckable() and !$field->isButton() and !($field->getType() == 'file') and !in_array('form-control', $classes)) {
if (!$field->isCheckable() and !$field->isButton() and $field->getType() != 'file' and !in_array('form-control', $classes)) {
$classes[] = 'form-control';
}

Expand Down

0 comments on commit f148e3a

Please sign in to comment.