summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-09 16:46:55 +0100
committerBart Visscher <bartv@thisnet.nl>2013-02-14 08:36:26 +0100
commit5c4a804ddb4942687d5b8495d1ede51873cd412b (patch)
tree1974edcbfeab4eb4f2656ea69bb8d955b4426587 /settings
parentbfe6334cd9d50ce99f0a6fd02c1aa0dc43b2b7e9 (diff)
downloadnextcloud-server-5c4a804ddb4942687d5b8495d1ede51873cd412b.tar.gz
nextcloud-server-5c4a804ddb4942687d5b8495d1ede51873cd412b.zip
Fix SpaceBeforeOpenBrace errors
Diffstat (limited to 'settings')
-rw-r--r--settings/oauth.php8
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.';