diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-14 23:29:51 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-21 23:47:56 +0100 |
commit | 83f161d3f964a48f6dbe92e69233575b1984c547 (patch) | |
tree | d648e6aa95d256c9581be264905f3c5755927412 /settings/oauth.php | |
parent | 1a747b3e480a2b44969b1306a5d354e721781c81 (diff) | |
download | nextcloud-server-83f161d3f964a48f6dbe92e69233575b1984c547.tar.gz nextcloud-server-83f161d3f964a48f6dbe92e69233575b1984c547.zip |
Style cleanup settings
Diffstat (limited to 'settings/oauth.php')
-rw-r--r-- | settings/oauth.php | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/settings/oauth.php b/settings/oauth.php index 07b7ae5c31d..8b4759f999e 100644 --- a/settings/oauth.php +++ b/settings/oauth.php @@ -5,7 +5,7 @@ * See the COPYING-README file. */ -require_once('../lib/base.php'); +require_once '../lib/base.php'; // Logic $operation = isset($_GET['operation']) ? $_GET['operation'] : ''; $server = OC_OAuth_server::init(); @@ -23,9 +23,10 @@ switch($operation){ $callbackfail = empty($_GET['callback_fail']) ? null : $_GET['callback_fail']; $consumer = OC_OAuth_Server::register_consumer($_GET['name'], $_GET['url'], $callbacksuccess, $callbackfail); - echo 'Registered consumer successfully! </br></br>Key: ' . $consumer->key . '</br>Secret: ' . $consumer->secret; + echo 'Registered consumer successfully! </br></br>Key: ' . $consumer->key + . '</br>Secret: ' . $consumer->secret; } - break; + break; case 'request_token': @@ -38,7 +39,7 @@ switch($operation){ echo $exception->getMessage(); } - break; + break; case 'authorise'; OC_API::checkLoggedIn(); @@ -61,9 +62,11 @@ switch($operation){ if(!empty($notfound)) { // We need more apps :( Show error 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.'; + $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.'; + $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.'; } $t = new OC_Template('settings', 'oauth-required-apps', 'guest'); OC_Util::addStyle('settings', 'oauth'); @@ -77,7 +80,7 @@ switch($operation){ $t->assign('consumer', $consumer); $t->printPage(); } - break; + break; case 'access_token'; try { @@ -89,10 +92,10 @@ switch($operation){ echo $exception->getMessage(); } - break; + break; default: // Something went wrong, we need an operation! OC_Response::setStatus(400); - break; + break; } |