@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | IUserSession $userSession |
61 | 61 | ) { |
62 | 62 | $this->user = $user; |
63 | - $this->isAdmin = (bool)$isAdmin; |
|
63 | + $this->isAdmin = (bool) $isAdmin; |
|
64 | 64 | $this->groupManager = $groupManager; |
65 | 65 | $this->userSession = $userSession; |
66 | 66 | } |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | * @return array |
77 | 77 | */ |
78 | 78 | public function get($groupSearch = '', $userSearch = '') { |
79 | - $key = $groupSearch . '::' . $userSearch; |
|
80 | - if(isset($this->metaData[$key])) { |
|
79 | + $key = $groupSearch.'::'.$userSearch; |
|
80 | + if (isset($this->metaData[$key])) { |
|
81 | 81 | return $this->metaData[$key]; |
82 | 82 | } |
83 | 83 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $sortAdminGroupsIndex = 0; |
89 | 89 | $sortAdminGroupsKeys = array(); |
90 | 90 | |
91 | - foreach($this->getGroups($groupSearch) as $group) { |
|
91 | + foreach ($this->getGroups($groupSearch) as $group) { |
|
92 | 92 | $groupMetaData = $this->generateGroupMetaData($group, $userSearch); |
93 | 93 | if (strtolower($group->getGID()) !== 'admin') { |
94 | 94 | $this->addEntry( |
@@ -185,11 +185,11 @@ discard block |
||
185 | 185 | * @return \OCP\IGroup[] |
186 | 186 | */ |
187 | 187 | protected function getGroups($search = '') { |
188 | - if($this->isAdmin) { |
|
188 | + if ($this->isAdmin) { |
|
189 | 189 | return $this->groupManager->search($search); |
190 | 190 | } else { |
191 | 191 | $userObject = $this->userSession->getUser(); |
192 | - if($userObject !== null) { |
|
192 | + if ($userObject !== null) { |
|
193 | 193 | $groups = $this->groupManager->getSubAdmin()->getSubAdminsGroups($userObject); |
194 | 194 | } else { |
195 | 195 | $groups = []; |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function getSupportedActions() { |
51 | 51 | $actions = 0; |
52 | - foreach($this->possibleActions AS $action => $methodName) { |
|
53 | - if(method_exists($this, $methodName)) { |
|
52 | + foreach ($this->possibleActions AS $action => $methodName) { |
|
53 | + if (method_exists($this, $methodName)) { |
|
54 | 54 | $actions |= $action; |
55 | 55 | } |
56 | 56 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * compared with \OC\Group\Backend::CREATE_GROUP etc. |
68 | 68 | */ |
69 | 69 | public function implementsActions($actions) { |
70 | - return (bool)($this->getSupportedActions() & $actions); |
|
70 | + return (bool) ($this->getSupportedActions() & $actions); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -20,4 +20,4 @@ |
||
20 | 20 | * |
21 | 21 | */ |
22 | 22 | |
23 | -require_once __DIR__ . '/v1.php'; |
|
23 | +require_once __DIR__.'/v1.php'; |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | */ |
21 | 21 | |
22 | -require_once __DIR__ . '/../lib/base.php'; |
|
22 | +require_once __DIR__.'/../lib/base.php'; |
|
23 | 23 | |
24 | 24 | header('Content-Type: application/json'); |
25 | 25 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | try { |
31 | 31 | |
32 | - require_once __DIR__ . '/lib/base.php'; |
|
32 | + require_once __DIR__.'/lib/base.php'; |
|
33 | 33 | |
34 | 34 | $systemConfig = \OC::$server->getSystemConfig(); |
35 | 35 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | # see core/lib/private/legacy/defaults.php and core/themes/example/defaults.php |
39 | 39 | # for description and defaults |
40 | 40 | $defaults = new \OCP\Defaults(); |
41 | - $values=array( |
|
41 | + $values = array( |
|
42 | 42 | 'installed'=>$installed, |
43 | 43 | 'maintenance' => $maintenance, |
44 | 44 | 'needsDbUpgrade' => \OCP\Util::needUpgrade(), |
@@ -34,7 +34,7 @@ |
||
34 | 34 | </p> |
35 | 35 | <input type="submit" id="submit" value="<?php p($l->t('Reset password')); ?>" /> |
36 | 36 | <p class="text-center"> |
37 | - <img class="hidden" id="float-spinner" src="<?php p(image_path('core', 'loading-dark.gif'));?>"/> |
|
37 | + <img class="hidden" id="float-spinner" src="<?php p(image_path('core', 'loading-dark.gif')); ?>"/> |
|
38 | 38 | </p> |
39 | 39 | </fieldset> |
40 | 40 | </form> |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | <form method="post" name="login"> |
13 | 13 | <fieldset> |
14 | 14 | <?php if (!empty($_['redirect_url'])) { |
15 | - print_unescaped('<input type="hidden" name="redirect_url" value="' . \OCP\Util::sanitizeHTML($_['redirect_url']) . '">'); |
|
15 | + print_unescaped('<input type="hidden" name="redirect_url" value="'.\OCP\Util::sanitizeHTML($_['redirect_url']).'">'); |
|
16 | 16 | } ?> |
17 | 17 | <?php if (isset($_['apacheauthfailed']) && ($_['apacheauthfailed'])): ?> |
18 | 18 | <div class="warning"> |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | <small><?php p($l->t('Please contact your administrator.')); ?></small> |
21 | 21 | </div> |
22 | 22 | <?php endif; ?> |
23 | - <?php foreach($_['messages'] as $message): ?> |
|
23 | + <?php foreach ($_['messages'] as $message): ?> |
|
24 | 24 | <div class="warning"> |
25 | 25 | <?php p($message); ?><br> |
26 | 26 | </div> |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | <?php endif; ?> |
34 | 34 | <div id="message" class="hidden"> |
35 | 35 | <img class="float-spinner" alt="" |
36 | - src="<?php p(image_path('core', 'loading-dark.gif'));?>"> |
|
36 | + src="<?php p(image_path('core', 'loading-dark.gif')); ?>"> |
|
37 | 37 | <span id="messageText"></span> |
38 | 38 | <!-- the following div ensures that the spinner is always inside the #message div --> |
39 | 39 | <div style="clear: both;"></div> |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | <fieldset> |
89 | 89 | <legend><?php p($l->t('Alternative Logins')) ?></legend> |
90 | 90 | <ul> |
91 | - <?php foreach($_['alt_login'] as $login): ?> |
|
91 | + <?php foreach ($_['alt_login'] as $login): ?> |
|
92 | 92 | <li><a class="button" href="<?php print_unescaped($login['href']); ?>" ><?php p($login['name']); ?></a></li> |
93 | 93 | <?php endforeach; ?> |
94 | 94 | </ul> |
@@ -49,7 +49,7 @@ |
||
49 | 49 | <p id="update-progress-message-error" class="hidden"></p> |
50 | 50 | <ul id="update-progress-message-warnings" class="hidden"></ul> |
51 | 51 | <p id="update-progress-message"></p> |
52 | - <a class="update-show-detailed"><?php p($l->t( 'Detailed logs' )); ?> <img src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" /></a> |
|
52 | + <a class="update-show-detailed"><?php p($l->t('Detailed logs')); ?> <img src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" /></a> |
|
53 | 53 | <div id="update-progress-detailed" class="hidden"></div> |
54 | 54 | </div> |
55 | 55 | </div> |
@@ -101,6 +101,6 @@ |
||
101 | 101 | }); |
102 | 102 | |
103 | 103 | // used for heartbeat |
104 | -$this->create('heartbeat', '/heartbeat')->action(function(){ |
|
104 | +$this->create('heartbeat', '/heartbeat')->action(function() { |
|
105 | 105 | // do nothing |
106 | 106 | }); |