summaryrefslogtreecommitdiffstats
path: root/lib/router.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-10-27 17:45:09 +0200
committerBart Visscher <bartv@thisnet.nl>2012-10-27 17:45:15 +0200
commitfecfeac55d762ec80c9305b55e7140588bfe5dd5 (patch)
tree19ff96d8a70542360060effb4dd088e33c5151ab /lib/router.php
parentd6953fa5ed796699d82b82473317b700dfbcfa72 (diff)
downloadnextcloud-server-fecfeac55d762ec80c9305b55e7140588bfe5dd5.tar.gz
nextcloud-server-fecfeac55d762ec80c9305b55e7140588bfe5dd5.zip
Fix introduced style errors
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/router.php b/lib/router.php
index a471a06802c..d5adb72055a 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -35,9 +35,9 @@ class OC_Router {
public function loadRoutes() {
foreach(OC_APP::getEnabledApps() as $app){
$file = OC_App::getAppPath($app).'/appinfo/routes.php';
- if(file_exists($file)){
+ if(file_exists($file)) {
$this->useCollection($app);
- require_once($file);
+ require_once $file;
$collection = $this->getCollection($app);
$this->root->addCollection($collection, '/apps/'.$app);
}
@@ -81,7 +81,7 @@ class OC_Router {
*
* @param string $url The url to find
*/
- public function match($url) {
+ public function match($url) {
$matcher = new UrlMatcher($this->root, $this->context);
$parameters = $matcher->match($url);
if (isset($parameters['action'])) {
@@ -93,7 +93,7 @@ class OC_Router {
unset($parameters['action']);
call_user_func($action, $parameters);
} elseif (isset($parameters['file'])) {
- include ($parameters['file']);
+ include $parameters['file'];
} else {
throw new Exception('no action available');
}