From edd393793abf0c791fbd4af20c7d2774a25b25d8 Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Tue, 6 Oct 2015 17:35:42 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- src/Aviat/AnimeClient/Config.php | 2 +- src/Aviat/AnimeClient/Router.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Aviat/AnimeClient/Config.php b/src/Aviat/AnimeClient/Config.php index ac58a675..3d535bf3 100644 --- a/src/Aviat/AnimeClient/Config.php +++ b/src/Aviat/AnimeClient/Config.php @@ -22,7 +22,7 @@ class Config { * * @param array $config_files */ - public function __construct(array $config_files=[]) + public function __construct(array $config_files = []) { // @codeCoverageIgnoreStart if (empty($config_files)) diff --git a/src/Aviat/AnimeClient/Router.php b/src/Aviat/AnimeClient/Router.php index 9fccf31b..c09e6294 100644 --- a/src/Aviat/AnimeClient/Router.php +++ b/src/Aviat/AnimeClient/Router.php @@ -144,7 +144,7 @@ class Router extends RoutingBase { if ( ! empty($route->tokens)) { - foreach($route->tokens as $key => $v) + foreach ($route->tokens as $key => $v) { if (array_key_exists($key, $route->params)) { @@ -201,7 +201,7 @@ class Router extends RoutingBase { $controllers = []; - foreach($class_files as $file) + foreach ($class_files as $file) { $raw_class_name = basename(str_replace(".php", "", $file)); $path = strtolower(basename($raw_class_name)); @@ -230,7 +230,7 @@ class Router extends RoutingBase { $applied_routes = array_merge($this->routes[$route_type], $this->routes['common']); // Add routes - foreach($applied_routes as $name => &$route) + foreach ($applied_routes as $name => &$route) { $path = $route['path']; unset($route['path']);