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

Commit

Permalink
CS fixes per php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Feb 28, 2016
1 parent 35a9d05 commit 9bab442
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Router/Http/TreeRouteStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static function factory($options = [])
if ($options instanceof Traversable) {
$options = ArrayUtils::iteratorToArray($options);
}

if (! is_array($options)) {
throw new Exception\InvalidArgumentException(__METHOD__ . ' expects an array or Traversable set of options');
}
Expand Down
4 changes: 2 additions & 2 deletions src/Router/SimpleRouteStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,15 @@ protected function routeFromArray($specs)
if ($specs instanceof Traversable) {
$specs = ArrayUtils::iteratorToArray($specs);
}

if (! is_array($specs)) {
throw new Exception\InvalidArgumentException('Route definition must be an array or Traversable object');
}

if (! isset($specs['type'])) {
throw new Exception\InvalidArgumentException('Missing "type" option');
}

if (! isset($specs['options'])) {
$specs['options'] = [];
}
Expand Down
1 change: 0 additions & 1 deletion src/Service/ServiceManagerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Zend\ModuleManager\Listener\ServiceListener;
use Zend\ModuleManager\ModuleManager;
use Zend\ServiceManager\Config;
use Zend\ServiceManager\Factory\InvokableFactory;
use Zend\ServiceManager\ServiceLocatorAwareInterface;
use Zend\ServiceManager\ServiceManager;
use Zend\ServiceManager\ServiceManagerAwareInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Service/ViewHelperManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Zend\Mvc\Router\RouteMatch;
use Zend\ServiceManager\ConfigInterface;
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
use Zend\Stdlib\ArrayUtils;
use Zend\View\Helper as ViewHelper;
use Zend\View\HelperPluginManager;

Expand Down
1 change: 0 additions & 1 deletion test/View/Console/ViewManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use Zend\Mvc\Service\ServiceManagerConfig;
use Zend\Mvc\View\Console\ViewManager;
use Zend\ServiceManager\ServiceManager;
use Zend\Stdlib\ArrayUtils;

/**
* Tests for {@see \Zend\Mvc\View\Console\ViewManager}
Expand Down

0 comments on commit 9bab442

Please sign in to comment.