summaryrefslogtreecommitdiffstats
path: root/apps/files_external/ajax/dropbox.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2012-11-30 16:27:11 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-11-30 16:27:11 +0100
commit92df70b6e5c4cba373cf0b24af02c328881cdd2d (patch)
treecaa914884d58cb9118330c3823c4525c7dfd65cf /apps/files_external/ajax/dropbox.php
parentdf21ebeaf73bed10e972af6ef09f2bfb0df68e1c (diff)
downloadnextcloud-server-92df70b6e5c4cba373cf0b24af02c328881cdd2d.tar.gz
nextcloud-server-92df70b6e5c4cba373cf0b24af02c328881cdd2d.zip
fix checkstyle for files_external app, add whitespace for readability
Diffstat (limited to 'apps/files_external/ajax/dropbox.php')
-rw-r--r--apps/files_external/ajax/dropbox.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/apps/files_external/ajax/dropbox.php b/apps/files_external/ajax/dropbox.php
index f5923940dc9..58c41d69062 100644
--- a/apps/files_external/ajax/dropbox.php
+++ b/apps/files_external/ajax/dropbox.php
@@ -16,9 +16,13 @@ if (isset($_POST['app_key']) && isset($_POST['app_secret'])) {
$callback = null;
}
$token = $oauth->getRequestToken();
- OCP\JSON::success(array('data' => array('url' => $oauth->getAuthorizeUrl($callback), 'request_token' => $token['token'], 'request_token_secret' => $token['token_secret'])));
+ OCP\JSON::success(array('data' => array('url' => $oauth->getAuthorizeUrl($callback),
+ 'request_token' => $token['token'],
+ 'request_token_secret' => $token['token_secret'])));
} catch (Exception $exception) {
- OCP\JSON::error(array('data' => array('message' => 'Fetching request tokens failed. Verify that your Dropbox app key and secret are correct.')));
+ OCP\JSON::error(array('data' => array('message' =>
+ 'Fetching request tokens failed. Verify that your Dropbox app key and secret are correct.')
+ ));
}
break;
case 2:
@@ -26,9 +30,12 @@ if (isset($_POST['app_key']) && isset($_POST['app_secret'])) {
try {
$oauth->setToken($_POST['request_token'], $_POST['request_token_secret']);
$token = $oauth->getAccessToken();
- OCP\JSON::success(array('access_token' => $token['token'], 'access_token_secret' => $token['token_secret']));
+ OCP\JSON::success(array('access_token' => $token['token'],
+ 'access_token_secret' => $token['token_secret']));
} catch (Exception $exception) {
- OCP\JSON::error(array('data' => array('message' => 'Fetching access tokens failed. Verify that your Dropbox app key and secret are correct.')));
+ OCP\JSON::error(array('data' => array('message' =>
+ 'Fetching access tokens failed. Verify that your Dropbox app key and secret are correct.')
+ ));
}
}
break;