Skip to content
Browse files

[#2331] CS fixes

- whitespace
- loop branching
- private -> protected
  • Loading branch information...
1 parent bfec251 commit 35a29d2b4e036d556eb1531e7a8330fc017ffae9 @weierophinney weierophinney committed Sep 13, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 library/Zend/Form/Element/Select.php
View
11 library/Zend/Form/Element/Select.php
@@ -174,21 +174,22 @@ public function getInputSpecification()
*/
protected function getValueOptionsValues()
{
- $values = array();
+ $values = array();
$options = $this->getValueOptions();
foreach ($options as $key => $optionSpec) {
- if(is_array($optionSpec) && array_key_exists('options', $optionSpec)){
+ if (is_array($optionSpec) && array_key_exists('options', $optionSpec)) {
foreach ($optionSpec['options'] as $nestedKey => $nestedOptionSpec) {
$values[] = $this->getOptionValue($nestedKey, $nestedOptionSpec);
}
- }else{
- $values[] = $this->getOptionValue($key, $optionSpec);
+ continue;
}
+
+ $values[] = $this->getOptionValue($key, $optionSpec);
}
return $values;
}
- private function getOptionValue($key, $optionSpec)
+ protected function getOptionValue($key, $optionSpec)
{
return is_array($optionSpec) ? $optionSpec['value'] : $key;
}

0 comments on commit 35a29d2

Please sign in to comment.
Something went wrong with that request. Please try again.