PHP CS fixes
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
aad16c8508
commit
f93d55eebd
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
/**
|
/**
|
||||||
* @copyright Copyright (c) 2020 Joas Schilling <coding@schilljs.com>
|
* @copyright Copyright (c) 2020 Joas Schilling <coding@schilljs.com>
|
||||||
|
|
|
@ -33,7 +33,6 @@ declare(strict_types=1);
|
||||||
namespace OC\AppFramework\Routing;
|
namespace OC\AppFramework\Routing;
|
||||||
|
|
||||||
use OC\AppFramework\DependencyInjection\DIContainer;
|
use OC\AppFramework\DependencyInjection\DIContainer;
|
||||||
use OCP\AppFramework\App;
|
|
||||||
use OCP\Route\IRouter;
|
use OCP\Route\IRouter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -155,13 +154,13 @@ class RouteConfig {
|
||||||
|
|
||||||
// optionally register requirements for route. This is used to
|
// optionally register requirements for route. This is used to
|
||||||
// tell the route parser how url parameters should be matched
|
// tell the route parser how url parameters should be matched
|
||||||
if(array_key_exists('requirements', $route)) {
|
if (array_key_exists('requirements', $route)) {
|
||||||
$router->requirements($route['requirements']);
|
$router->requirements($route['requirements']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// optionally register defaults for route. This is used to
|
// optionally register defaults for route. This is used to
|
||||||
// tell the route parser how url parameters should be default valued
|
// tell the route parser how url parameters should be default valued
|
||||||
if(array_key_exists('defaults', $route)) {
|
if (array_key_exists('defaults', $route)) {
|
||||||
$router->defaults($route['defaults']);
|
$router->defaults($route['defaults']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue