Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer 2015-10-06 17:35:42 +00:00
parent f9b3d64eca
commit edd393793a
2 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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']);