From e3b4773038d8c8679c07c13eb9139f5040bd50aa Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 16 Dec 2014 12:44:53 +0100 Subject: [PATCH] zendframework/zf2#7010 - minor CS fixes (spacing) --- src/Factory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Factory.php b/src/Factory.php index a89b9929..7b2dc605 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -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"', @@ -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"',