Skip to content

Commit

Permalink
PHP CS fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Apr 14, 2020
1 parent fbaa959 commit e07f126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/cloud_federation_api/appinfo/routes.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);
/**
* @copyright Copyright (c) 2020 Joas Schilling <coding@schilljs.com>
Expand Down
5 changes: 2 additions & 3 deletions lib/private/AppFramework/Routing/RouteConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
namespace OC\AppFramework\Routing;

use OC\AppFramework\DependencyInjection\DIContainer;
use OCP\AppFramework\App;
use OCP\Route\IRouter;

/**
Expand Down Expand Up @@ -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']);
}
}
Expand Down

0 comments on commit e07f126

Please sign in to comment.