Permalink
Browse files

fixing Coding Standards for the added code

  • Loading branch information...
1 parent 22768c6 commit b04198f4d6e0057bedc8e14365575adb1349cc31 igor committed Sep 21, 2012
@@ -65,8 +65,8 @@ public function setValueOptions(array $options)
// Update InArray validator haystack
if (!is_null($this->validator)) {
- $validator = $this->validator->getValidator();
- $validator->setHaystack($this->getValueOptionsValues());
+ $validator = $this->validator->getValidator();
+ $validator->setHaystack($this->getValueOptionsValues());
}
return $this;
@@ -113,15 +113,15 @@ public function testInArrayValidationOfOptions($valueTests, $options)
*/
public function testInArrayValidatorHaystakIsUpdated($valueTests, $options)
{
- $element = new MultiCheckboxElement('my-checkbox');
- $inputSpec = $element->getInputSpecification();
- $inArrayValidator=$inputSpec['validators'][0]->getValidator();
+ $element = new MultiCheckboxElement('my-checkbox');
+ $inputSpec = $element->getInputSpecification();
+ $inArrayValidator=$inputSpec['validators'][0]->getValidator();
- $element->setAttributes(array(
- 'options' => $options,
+ $element->setAttributes(array(
+ 'options' => $options,
));
- $haystack=$inArrayValidator->getHaystack();
- $this->assertCount(count($options), $haystack);
+ $haystack=$inArrayValidator->getHaystack();
+ $this->assertCount(count($options), $haystack);
}
@@ -160,17 +160,15 @@ public function testInArrayValidationOfOptions($valueTests, $options)
*/
public function testInArrayValidatorHaystakIsUpdated($valueTests, $options)
{
- $element = new SelectElement('my-select');
- $inputSpec = $element->getInputSpecification();
+ $element = new SelectElement('my-select');
+ $inputSpec = $element->getInputSpecification();
- $inArrayValidator = $inputSpec['validators'][0];
- $this->assertInstanceOf('Zend\Validator\InArray', $inArrayValidator);
+ $inArrayValidator = $inputSpec['validators'][0];
+ $this->assertInstanceOf('Zend\Validator\InArray', $inArrayValidator);
- $element->setAttributes(array(
- 'options' => $options,
- ));
- $haystack=$inArrayValidator->getHaystack();
- $this->assertCount(count($options), $haystack);
+ $element->setValueOptions($options);
+ $haystack=$inArrayValidator->getHaystack();
+ $this->assertCount(count($options), $haystack);
}

0 comments on commit b04198f

Please sign in to comment.