Skip to content

Commit

Permalink
[DoctrineBridge] fixed some CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 13, 2011
1 parent 63143c1 commit 72d6908
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Field/ChoiceFormField.php
Expand Up @@ -43,7 +43,7 @@ public function hasValue()

/**
* Check if the current selected option is disabled
*
*
* @return bool
*/
public function isDisabled()
Expand All @@ -56,7 +56,7 @@ public function isDisabled()

return false;
}

/**
* Sets the value of the field.
*
Expand Down Expand Up @@ -249,7 +249,7 @@ protected function initialize()
* Returns option value with associated disabled flag
*
* @param type $node
*
*
* @return array
*/
private function buildOptionValue($node)
Expand All @@ -259,7 +259,7 @@ private function buildOptionValue($node)
$defaultValue = (isset($node->nodeValue) && !empty($node->nodeValue)) ? $node->nodeValue : '1';
$option['value'] = $node->hasAttribute('value') ? $node->getAttribute('value') : $defaultValue;
$option['disabled'] = ($node->hasAttribute('disabled') && $node->getAttribute('disabled') == 'disabled');

return $option;
}

Expand All @@ -268,7 +268,7 @@ private function buildOptionValue($node)
*
* @param string $optionValue
* @param array $options
*
*
* @return bool
*/
public function containsOption($optionValue, $options)
Expand Down

0 comments on commit 72d6908

Please sign in to comment.