diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-09 16:46:55 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-14 08:36:26 +0100 |
commit | 5c4a804ddb4942687d5b8495d1ede51873cd412b (patch) | |
tree | 1974edcbfeab4eb4f2656ea69bb8d955b4426587 /settings | |
parent | bfe6334cd9d50ce99f0a6fd02c1aa0dc43b2b7e9 (diff) | |
download | nextcloud-server-5c4a804ddb4942687d5b8495d1ede51873cd412b.tar.gz nextcloud-server-5c4a804ddb4942687d5b8495d1ede51873cd412b.zip |
Fix SpaceBeforeOpenBrace errors
Diffstat (limited to 'settings')
-rw-r--r-- | settings/oauth.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/settings/oauth.php b/settings/oauth.php index 8dba9b33a53..07b7ae5c31d 100644 --- a/settings/oauth.php +++ b/settings/oauth.php @@ -15,7 +15,7 @@ switch($operation){ case 'register': // Here external apps can register with an ownCloud - if(empty($_GET['name']) || empty($_GET['url'])){ + if(empty($_GET['name']) || empty($_GET['url'])) { // Invalid request echo 401; } else { @@ -54,13 +54,13 @@ switch($operation){ foreach($consumer['scopes'] as $requiredapp){ // App scopes are in this format: app_$appname $requiredapp = end(explode('_', $requiredapp)); - if(!in_array($requiredapp, $apps)){ + if(!in_array($requiredapp, $apps)) { $notfound[] = $requiredapp; } } - if(!empty($notfound)){ + if(!empty($notfound)) { // We need more apps :( Show error - if(count($notfound)==1){ + if(count($notfound)==1) { $message = 'requires that you have an extra app installed on your ownCloud. Please contact your ownCloud administrator and ask them to install the app below.'; } else { $message = 'requires that you have some extra apps installed on your ownCloud. Please contract your ownCloud administrator and ask them to install the apps below.'; |