]> source.dussan.org Git - nextcloud-server.git/commitdiff
PHP CS fixes
authorJoas Schilling <coding@schilljs.com>
Tue, 14 Apr 2020 15:24:29 +0000 (17:24 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sat, 18 Apr 2020 09:21:28 +0000 (11:21 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/cloud_federation_api/appinfo/routes.php
lib/private/AppFramework/Routing/RouteConfig.php

index 49ea1155305fe09bec604db079c833ffe6574c43..9aa98315c3da26193ebf7691f2983bacbeaf1af0 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 declare(strict_types=1);
 /**
  * @copyright Copyright (c) 2020 Joas Schilling <coding@schilljs.com>
index 58e677dd01ad9fb52eda97a96d919504fb08c0db..af745a35fcca2000487e41a4119419df9d934b71 100644 (file)
@@ -33,7 +33,6 @@ declare(strict_types=1);
 namespace OC\AppFramework\Routing;
 
 use OC\AppFramework\DependencyInjection\DIContainer;
-use OCP\AppFramework\App;
 use OCP\Route\IRouter;
 
 /**
@@ -155,13 +154,13 @@ class RouteConfig {
 
                // 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']);
                }
        }