From e07f126a24aab4a47d85814bcf64267c8e2e74d6 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 14 Apr 2020 17:24:29 +0200 Subject: [PATCH] PHP CS fixes Signed-off-by: Joas Schilling --- apps/cloud_federation_api/appinfo/routes.php | 1 + lib/private/AppFramework/Routing/RouteConfig.php | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/cloud_federation_api/appinfo/routes.php b/apps/cloud_federation_api/appinfo/routes.php index 49ea1155305fe..9aa98315c3da2 100644 --- a/apps/cloud_federation_api/appinfo/routes.php +++ b/apps/cloud_federation_api/appinfo/routes.php @@ -1,4 +1,5 @@ diff --git a/lib/private/AppFramework/Routing/RouteConfig.php b/lib/private/AppFramework/Routing/RouteConfig.php index 58e677dd01ad9..af745a35fcca2 100644 --- a/lib/private/AppFramework/Routing/RouteConfig.php +++ b/lib/private/AppFramework/Routing/RouteConfig.php @@ -33,7 +33,6 @@ namespace OC\AppFramework\Routing; use OC\AppFramework\DependencyInjection\DIContainer; -use OCP\AppFramework\App; use OCP\Route\IRouter; /** @@ -155,13 +154,13 @@ protected function processRoute(array $route, string $routeNamePrefix = ''): voi // optionally register requirements for route. This is used to // 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']); } // optionally register defaults for route. This is used to // 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']); } }