Merge pull request #4 from timw4mail/scrutinizer-patch-1

Scrutinizer Auto-Fixes
This commit is contained in:
Timothy Warren 2015-10-06 13:37:48 -04:00
commit c86d72f3e2
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']);