Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
2 changed files with 4 additions and 4 deletions
Showing only changes of commit edd393793a - Show all commits

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