@@ -66,7 +66,7 @@ |
||
66 | 66 | try { |
67 | 67 | $ldapWrapper->read($connection->getConnectionResource(), '', 'objectClass=*', array('dn')); |
68 | 68 | } catch (\Exception $e) { |
69 | - if($e->getCode() === 1) { |
|
69 | + if ($e->getCode() === 1) { |
|
70 | 70 | OCP\JSON::error(array('message' => $l->t('The configuration is invalid: anonymous bind is not allowed.'))); |
71 | 71 | exit; |
72 | 72 | } |
@@ -30,15 +30,15 @@ |
||
30 | 30 | OCP\JSON::checkAppEnabled('user_ldap'); |
31 | 31 | OCP\JSON::callCheck(); |
32 | 32 | |
33 | -$prefix = (string)$_POST['ldap_serverconfig_chooser']; |
|
33 | +$prefix = (string) $_POST['ldap_serverconfig_chooser']; |
|
34 | 34 | |
35 | 35 | // Checkboxes are not submitted, when they are unchecked. Set them manually. |
36 | 36 | // only legacy checkboxes (Advanced and Expert tab) need to be handled here, |
37 | 37 | // the Wizard-like tabs handle it on their own |
38 | 38 | $chkboxes = array('ldap_configuration_active', 'ldap_override_main_server', |
39 | 39 | 'ldap_turn_off_cert_check'); |
40 | -foreach($chkboxes as $boxid) { |
|
41 | - if(!isset($_POST[$boxid])) { |
|
40 | +foreach ($chkboxes as $boxid) { |
|
41 | + if (!isset($_POST[$boxid])) { |
|
42 | 42 | $_POST[$boxid] = 0; |
43 | 43 | } |
44 | 44 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * |
23 | 23 | */ |
24 | 24 | $state = OCP\Config::getSystemValue('ldapIgnoreNamingRules', 'doSet'); |
25 | -if($state === 'doSet') { |
|
25 | +if ($state === 'doSet') { |
|
26 | 26 | OCP\Config::setSystemValue('ldapIgnoreNamingRules', false); |
27 | 27 | } |
28 | 28 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * along with this program. If not, see <http://www.gnu.org/licenses/> |
25 | 25 | * |
26 | 26 | */ |
27 | -require_once __DIR__ . '/../3rdparty/Dropbox/autoload.php'; |
|
27 | +require_once __DIR__.'/../3rdparty/Dropbox/autoload.php'; |
|
28 | 28 | |
29 | 29 | OCP\JSON::checkAppEnabled('files_external'); |
30 | 30 | OCP\JSON::checkLoggedIn(); |
@@ -33,13 +33,13 @@ discard block |
||
33 | 33 | |
34 | 34 | // FIXME: currently hard-coded to Dropbox OAuth |
35 | 35 | if (isset($_POST['app_key']) && isset($_POST['app_secret'])) { |
36 | - $oauth = new Dropbox_OAuth_Curl((string)$_POST['app_key'], (string)$_POST['app_secret']); |
|
36 | + $oauth = new Dropbox_OAuth_Curl((string) $_POST['app_key'], (string) $_POST['app_secret']); |
|
37 | 37 | if (isset($_POST['step'])) { |
38 | 38 | switch ($_POST['step']) { |
39 | 39 | case 1: |
40 | 40 | try { |
41 | 41 | if (isset($_POST['callback'])) { |
42 | - $callback = (string)$_POST['callback']; |
|
42 | + $callback = (string) $_POST['callback']; |
|
43 | 43 | } else { |
44 | 44 | $callback = null; |
45 | 45 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | case 2: |
57 | 57 | if (isset($_POST['request_token']) && isset($_POST['request_token_secret'])) { |
58 | 58 | try { |
59 | - $oauth->setToken((string)$_POST['request_token'], (string)$_POST['request_token_secret']); |
|
59 | + $oauth->setToken((string) $_POST['request_token'], (string) $_POST['request_token_secret']); |
|
60 | 60 | $token = $oauth->getAccessToken(); |
61 | 61 | OCP\JSON::success(array('access_token' => $token['token'], |
62 | 62 | 'access_token_secret' => $token['token_secret'])); |
@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | // FIXME: currently hard-coded to Google Drive |
40 | 40 | if (isset($_POST['client_id']) && isset($_POST['client_secret']) && isset($_POST['redirect'])) { |
41 | 41 | $client = new Google_Client(); |
42 | - $client->setClientId((string)$_POST['client_id']); |
|
43 | - $client->setClientSecret((string)$_POST['client_secret']); |
|
44 | - $client->setRedirectUri((string)$_POST['redirect']); |
|
42 | + $client->setClientId((string) $_POST['client_id']); |
|
43 | + $client->setClientSecret((string) $_POST['client_secret']); |
|
44 | + $client->setRedirectUri((string) $_POST['redirect']); |
|
45 | 45 | $client->setScopes(array('https://www.googleapis.com/auth/drive')); |
46 | 46 | $client->setApprovalPrompt('force'); |
47 | 47 | $client->setAccessType('offline'); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } |
61 | 61 | } else if ($step == 2 && isset($_POST['code'])) { |
62 | 62 | try { |
63 | - $token = $client->authenticate((string)$_POST['code']); |
|
63 | + $token = $client->authenticate((string) $_POST['code']); |
|
64 | 64 | OCP\JSON::success(array('data' => array( |
65 | 65 | 'token' => $token |
66 | 66 | ))); |
@@ -30,13 +30,13 @@ |
||
30 | 30 | $limit = null; |
31 | 31 | $offset = null; |
32 | 32 | if (isset($_GET['pattern'])) { |
33 | - $pattern = (string)$_GET['pattern']; |
|
33 | + $pattern = (string) $_GET['pattern']; |
|
34 | 34 | } |
35 | 35 | if (isset($_GET['limit'])) { |
36 | - $limit = (int)$_GET['limit']; |
|
36 | + $limit = (int) $_GET['limit']; |
|
37 | 37 | } |
38 | 38 | if (isset($_GET['offset'])) { |
39 | - $offset = (int)$_GET['offset']; |
|
39 | + $offset = (int) $_GET['offset']; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $groups = []; |
@@ -18,14 +18,14 @@ |
||
18 | 18 | <tr> |
19 | 19 | <th id='headerName' class="hidden column-name"> |
20 | 20 | <div id="headerName-container"> |
21 | - <a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a> |
|
21 | + <a class="name sort columntitle" data-sort="name"><span><?php p($l->t('Name')); ?></span><span class="sort-indicator"></span></a> |
|
22 | 22 | </div> |
23 | 23 | </th> |
24 | 24 | <th id="headerSize" class="hidden column-size"> |
25 | 25 | <a class="size sort columntitle" data-sort="size"><span><?php p($l->t('Size')); ?></span><span class="sort-indicator"></span></a> |
26 | 26 | </th> |
27 | 27 | <th id="headerDate" class="hidden column-mtime"> |
28 | - <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Modified' )); ?></span><span class="sort-indicator"></span></a> |
|
28 | + <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t('Modified')); ?></span><span class="sort-indicator"></span></a> |
|
29 | 29 | </th> |
30 | 30 | </tr> |
31 | 31 | </thead> |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $token = isset($_GET['t']) ? $_GET['t'] : ''; |
28 | 28 | $route = isset($_GET['download']) ? 'files_sharing.sharecontroller.downloadShare' : 'files_sharing.sharecontroller.showShare'; |
29 | 29 | |
30 | -if($token !== '') { |
|
30 | +if ($token !== '') { |
|
31 | 31 | OC_Response::redirect($urlGenerator->linkToRoute($route, array('token' => $token))); |
32 | 32 | } else { |
33 | 33 | header('HTTP/1.0 404 Not Found'); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | <label for="select_all_trash"> |
28 | 28 | <span class="hidden-visually"><?php p($l->t('Select all'))?></span> |
29 | 29 | </label> |
30 | - <a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a> |
|
30 | + <a class="name sort columntitle" data-sort="name"><span><?php p($l->t('Name')); ?></span><span class="sort-indicator"></span></a> |
|
31 | 31 | <span id="selectedActionsList" class='selectedActions'> |
32 | 32 | <a href="" class="undelete"> |
33 | 33 | <span class="icon icon-history"></span> |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | </div> |
38 | 38 | </th> |
39 | 39 | <th id="headerDate" class="hidden column-mtime"> |
40 | - <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Deleted' )); ?></span><span class="sort-indicator"></span></a> |
|
40 | + <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t('Deleted')); ?></span><span class="sort-indicator"></span></a> |
|
41 | 41 | <span class="selectedActions"> |
42 | 42 | <a href="" class="delete-selected"> |
43 | 43 | <span><?php p($l->t('Delete'))?></span> |