summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-14 12:54:36 -0800
committerBart Visscher <bartv@thisnet.nl>2013-02-14 12:54:36 -0800
commit9058d398a7b9aac58ab4aa7379e13ca83c72281d (patch)
tree7aaa55510ab15435efc2f36cf5628f5763f3ce02 /settings
parent4320f23c87ab6b43a31b8dcb0c6e44127438f123 (diff)
parentffae6f4b847e96d691053300c355ab81edc6c1c8 (diff)
downloadnextcloud-server-9058d398a7b9aac58ab4aa7379e13ca83c72281d.tar.gz
nextcloud-server-9058d398a7b9aac58ab4aa7379e13ca83c72281d.zip
Merge pull request #1662 from owncloud/style-cleanup
Style cleanup
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.';