Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
zendframework/zendframework#7010 - minor CS fixes (spacing)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 16, 2014
1 parent 6e1627c commit e3b4773
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public function createInput($inputSpecification)
if ($inputSpecification instanceof InputProviderInterface) {
$inputSpecification = $inputSpecification->getInputSpecification();
}

if (!is_array($inputSpecification) && !$inputSpecification instanceof Traversable) {
throw new Exception\InvalidArgumentException(sprintf(
'%s expects an array or Traversable; received "%s"',
Expand Down Expand Up @@ -282,6 +283,7 @@ public function createInputFilter($inputFilterSpecification)
if ($inputFilterSpecification instanceof InputFilterProviderInterface) {
$inputFilterSpecification = $inputFilterSpecification->getInputFilterSpecification();
}

if (!is_array($inputFilterSpecification) && !$inputFilterSpecification instanceof Traversable) {
throw new Exception\InvalidArgumentException(sprintf(
'%s expects an array or Traversable; received "%s"',
Expand Down

0 comments on commit e3b4773

Please sign in to comment.