@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | $result = $this->rootView->file_put_contents( |
145 | - $newRoot . '/' . Storage::KEY_STORAGE_MARKER, |
|
145 | + $newRoot.'/'.Storage::KEY_STORAGE_MARKER, |
|
146 | 146 | 'ownCloud will detect this folder as key storage root only if this file exists' |
147 | 147 | ); |
148 | 148 | |
@@ -161,10 +161,10 @@ discard block |
||
161 | 161 | */ |
162 | 162 | protected function moveSystemKeys($oldRoot, $newRoot) { |
163 | 163 | if ( |
164 | - $this->rootView->is_dir($oldRoot . '/files_encryption') && |
|
165 | - $this->targetExists($newRoot . '/files_encryption') === false |
|
164 | + $this->rootView->is_dir($oldRoot.'/files_encryption') && |
|
165 | + $this->targetExists($newRoot.'/files_encryption') === false |
|
166 | 166 | ) { |
167 | - $this->rootView->rename($oldRoot . '/files_encryption', $newRoot . '/files_encryption'); |
|
167 | + $this->rootView->rename($oldRoot.'/files_encryption', $newRoot.'/files_encryption'); |
|
168 | 168 | } |
169 | 169 | } |
170 | 170 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $progress->start(); |
194 | 194 | |
195 | 195 | |
196 | - foreach($this->userManager->getBackends() as $backend) { |
|
196 | + foreach ($this->userManager->getBackends() as $backend) { |
|
197 | 197 | $limit = 500; |
198 | 198 | $offset = 0; |
199 | 199 | do { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | $this->moveUserEncryptionFolder($user, $oldRoot, $newRoot); |
205 | 205 | } |
206 | 206 | $offset += $limit; |
207 | - } while(count($users) >= $limit); |
|
207 | + } while (count($users) >= $limit); |
|
208 | 208 | } |
209 | 209 | $progress->finish(); |
210 | 210 | } |
@@ -221,13 +221,13 @@ discard block |
||
221 | 221 | |
222 | 222 | if ($this->userManager->userExists($user)) { |
223 | 223 | |
224 | - $source = $oldRoot . '/' . $user . '/files_encryption'; |
|
225 | - $target = $newRoot . '/' . $user . '/files_encryption'; |
|
224 | + $source = $oldRoot.'/'.$user.'/files_encryption'; |
|
225 | + $target = $newRoot.'/'.$user.'/files_encryption'; |
|
226 | 226 | if ( |
227 | 227 | $this->rootView->is_dir($source) && |
228 | 228 | $this->targetExists($target) === false |
229 | 229 | ) { |
230 | - $this->prepareParentFolder($newRoot . '/' . $user); |
|
230 | + $this->prepareParentFolder($newRoot.'/'.$user); |
|
231 | 231 | $this->rootView->rename($source, $target); |
232 | 232 | } |
233 | 233 | } |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | $sub_dirs = explode('/', ltrim($path, '/')); |
246 | 246 | $dir = ''; |
247 | 247 | foreach ($sub_dirs as $sub_dir) { |
248 | - $dir .= '/' . $sub_dir; |
|
248 | + $dir .= '/'.$sub_dir; |
|
249 | 249 | if ($this->rootView->file_exists($dir) === false) { |
250 | 250 | $this->rootView->mkdir($dir); |
251 | 251 | } |
@@ -59,11 +59,11 @@ |
||
59 | 59 | $moduleId = $input->getArgument('module'); |
60 | 60 | |
61 | 61 | if ($moduleId === $this->encryptionManager->getDefaultEncryptionModuleId()) { |
62 | - $output->writeln('"' . $moduleId . '"" is already the default module'); |
|
62 | + $output->writeln('"'.$moduleId.'"" is already the default module'); |
|
63 | 63 | } else if ($this->encryptionManager->setDefaultEncryptionModule($moduleId)) { |
64 | - $output->writeln('<info>Set default module to "' . $moduleId . '"</info>'); |
|
64 | + $output->writeln('<info>Set default module to "'.$moduleId.'"</info>'); |
|
65 | 65 | } else { |
66 | - $output->writeln('<error>The specified module "' . $moduleId . '" does not exist</error>'); |
|
66 | + $output->writeln('<error>The specified module "'.$moduleId.'" does not exist</error>'); |
|
67 | 67 | } |
68 | 68 | } |
69 | 69 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | protected function execute(InputInterface $input, OutputInterface $output) { |
74 | - $groups = $this->groupManager->search('', (int)$input->getOption('limit'), (int)$input->getOption('offset')); |
|
74 | + $groups = $this->groupManager->search('', (int) $input->getOption('limit'), (int) $input->getOption('offset')); |
|
75 | 75 | $this->writeArrayInOutputFormat($input, $output, $this->formatGroups($groups)); |
76 | 76 | } |
77 | 77 | |
@@ -80,10 +80,10 @@ discard block |
||
80 | 80 | * @return array |
81 | 81 | */ |
82 | 82 | private function formatGroups(array $groups) { |
83 | - $keys = array_map(function (IGroup $group) { |
|
83 | + $keys = array_map(function(IGroup $group) { |
|
84 | 84 | return $group->getGID(); |
85 | 85 | }, $groups); |
86 | - $values = array_map(function (IGroup $group) { |
|
86 | + $values = array_map(function(IGroup $group) { |
|
87 | 87 | return array_keys($group->getUsers()); |
88 | 88 | }, $groups); |
89 | 89 | return array_combine($keys, $values); |
@@ -52,15 +52,15 @@ discard block |
||
52 | 52 | |
53 | 53 | <div class="section" id="mail_general_settings"> |
54 | 54 | <form id="mail_general_settings_form" class="mail_settings"> |
55 | - <h2><?php p($l->t('Email server'));?></h2> |
|
55 | + <h2><?php p($l->t('Email server')); ?></h2> |
|
56 | 56 | <a target="_blank" rel="noreferrer" class="icon-info" |
57 | - title="<?php p($l->t('Open documentation'));?>" |
|
57 | + title="<?php p($l->t('Open documentation')); ?>" |
|
58 | 58 | href="<?php p(link_to_docs('admin-email')); ?>"></a> |
59 | 59 | |
60 | 60 | <p><?php p($l->t('This is used for sending out notifications.')); ?> <span id="mail_settings_msg" class="msg"></span></p> |
61 | 61 | |
62 | 62 | <p> |
63 | - <label for="mail_smtpmode"><?php p($l->t( 'Send mode' )); ?></label> |
|
63 | + <label for="mail_smtpmode"><?php p($l->t('Send mode')); ?></label> |
|
64 | 64 | <select name='mail_smtpmode' id='mail_smtpmode'> |
65 | 65 | <?php foreach ($mail_smtpmode as $smtpmode): |
66 | 66 | $selected = ''; |
@@ -68,12 +68,12 @@ discard block |
||
68 | 68 | $selected = 'selected="selected"'; |
69 | 69 | endif; ?> |
70 | 70 | <option value='<?php p($smtpmode[0])?>' <?php p($selected) ?>><?php p($smtpmode[1]) ?></option> |
71 | - <?php endforeach;?> |
|
71 | + <?php endforeach; ?> |
|
72 | 72 | </select> |
73 | 73 | |
74 | 74 | <label id="mail_smtpsecure_label" for="mail_smtpsecure" |
75 | 75 | <?php if ($_['mail_smtpmode'] != 'smtp') print_unescaped(' class="hidden"'); ?>> |
76 | - <?php p($l->t( 'Encryption' )); ?> |
|
76 | + <?php p($l->t('Encryption')); ?> |
|
77 | 77 | </label> |
78 | 78 | <select name="mail_smtpsecure" id="mail_smtpsecure" |
79 | 79 | <?php if ($_['mail_smtpmode'] != 'smtp') print_unescaped(' class="hidden"'); ?>> |
@@ -83,12 +83,12 @@ discard block |
||
83 | 83 | $selected = 'selected="selected"'; |
84 | 84 | endif; ?> |
85 | 85 | <option value='<?php p($secure)?>' <?php p($selected) ?>><?php p($name) ?></option> |
86 | - <?php endforeach;?> |
|
86 | + <?php endforeach; ?> |
|
87 | 87 | </select> |
88 | 88 | </p> |
89 | 89 | |
90 | 90 | <p> |
91 | - <label for="mail_from_address"><?php p($l->t( 'From address' )); ?></label> |
|
91 | + <label for="mail_from_address"><?php p($l->t('From address')); ?></label> |
|
92 | 92 | <input type="text" name='mail_from_address' id="mail_from_address" placeholder="<?php p($l->t('mail'))?>" |
93 | 93 | value='<?php p($_['mail_from_address']) ?>' />@ |
94 | 94 | <input type="text" name='mail_domain' id="mail_domain" placeholder="example.com" |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | </p> |
97 | 97 | |
98 | 98 | <p id="setting_smtpauth" <?php if ($_['mail_smtpmode'] != 'smtp') print_unescaped(' class="hidden"'); ?>> |
99 | - <label for="mail_smtpauthtype"><?php p($l->t( 'Authentication method' )); ?></label> |
|
99 | + <label for="mail_smtpauthtype"><?php p($l->t('Authentication method')); ?></label> |
|
100 | 100 | <select name='mail_smtpauthtype' id='mail_smtpauthtype'> |
101 | 101 | <?php foreach ($mail_smtpauthtype as $authtype => $name): |
102 | 102 | $selected = ''; |
@@ -104,16 +104,16 @@ discard block |
||
104 | 104 | $selected = 'selected="selected"'; |
105 | 105 | endif; ?> |
106 | 106 | <option value='<?php p($authtype)?>' <?php p($selected) ?>><?php p($name) ?></option> |
107 | - <?php endforeach;?> |
|
107 | + <?php endforeach; ?> |
|
108 | 108 | </select> |
109 | 109 | |
110 | 110 | <input type="checkbox" name="mail_smtpauth" id="mail_smtpauth" class="checkbox" value="1" |
111 | 111 | <?php if ($_['mail_smtpauth']) print_unescaped('checked="checked"'); ?> /> |
112 | - <label for="mail_smtpauth"><?php p($l->t( 'Authentication required' )); ?></label> |
|
112 | + <label for="mail_smtpauth"><?php p($l->t('Authentication required')); ?></label> |
|
113 | 113 | </p> |
114 | 114 | |
115 | 115 | <p id="setting_smtphost" <?php if ($_['mail_smtpmode'] != 'smtp') print_unescaped(' class="hidden"'); ?>> |
116 | - <label for="mail_smtphost"><?php p($l->t( 'Server address' )); ?></label> |
|
116 | + <label for="mail_smtphost"><?php p($l->t('Server address')); ?></label> |
|
117 | 117 | <input type="text" name='mail_smtphost' id="mail_smtphost" placeholder="smtp.example.com" |
118 | 118 | value='<?php p($_['mail_smtphost']) ?>' /> |
119 | 119 | : |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | </form> |
124 | 124 | <form class="mail_settings" id="mail_credentials_settings"> |
125 | 125 | <p id="mail_credentials" <?php if (!$_['mail_smtpauth'] || $_['mail_smtpmode'] != 'smtp') print_unescaped(' class="hidden"'); ?>> |
126 | - <label for="mail_smtpname"><?php p($l->t( 'Credentials' )); ?></label> |
|
126 | + <label for="mail_smtpname"><?php p($l->t('Credentials')); ?></label> |
|
127 | 127 | <input type="text" name='mail_smtpname' id="mail_smtpname" placeholder="<?php p($l->t('SMTP Username'))?>" |
128 | 128 | value='<?php p($_['mail_smtpname']) ?>' /> |
129 | 129 | <input type="password" name='mail_smtppassword' id="mail_smtppassword" autocomplete="off" |
@@ -133,8 +133,8 @@ discard block |
||
133 | 133 | </form> |
134 | 134 | |
135 | 135 | <br /> |
136 | - <em><?php p($l->t( 'Test email settings' )); ?></em> |
|
137 | - <input type="submit" name="sendtestemail" id="sendtestemail" value="<?php p($l->t( 'Send email' )); ?>"/> |
|
136 | + <em><?php p($l->t('Test email settings')); ?></em> |
|
137 | + <input type="submit" name="sendtestemail" id="sendtestemail" value="<?php p($l->t('Send email')); ?>"/> |
|
138 | 138 | <span id="sendtestmail_msg" class="msg"></span> |
139 | 139 | </div> |
140 | 140 |
@@ -26,8 +26,8 @@ |
||
26 | 26 | |
27 | 27 | ?> |
28 | 28 | |
29 | -<?php foreach($_['forms'] as $form) { |
|
29 | +<?php foreach ($_['forms'] as $form) { |
|
30 | 30 | if (isset($form['form'])) {?> |
31 | - <div id="<?php isset($form['anchor']) ? p($form['anchor']) : p('');?>"><?php print_unescaped($form['form']);?></div> |
|
31 | + <div id="<?php isset($form['anchor']) ? p($form['anchor']) : p(''); ?>"><?php print_unescaped($form['form']); ?></div> |
|
32 | 32 | <?php } |
33 | 33 | };?> |
@@ -29,7 +29,7 @@ |
||
29 | 29 | <div class="section" id='encryptionAPI'> |
30 | 30 | <h2><?php p($l->t('Server-side encryption')); ?></h2> |
31 | 31 | <a target="_blank" rel="noreferrer" class="icon-info" |
32 | - title="<?php p($l->t('Open documentation'));?>" |
|
32 | + title="<?php p($l->t('Open documentation')); ?>" |
|
33 | 33 | href="<?php p(link_to_docs('admin-encryption')); ?>"></a> |
34 | 34 | |
35 | 35 | <p id="enable"> |
@@ -4,6 +4,6 @@ |
||
4 | 4 | * See the COPYING-README file. |
5 | 5 | */?> |
6 | 6 | |
7 | -<?php foreach($_['forms'] as $form) { |
|
7 | +<?php foreach ($_['forms'] as $form) { |
|
8 | 8 | print_unescaped($form); |
9 | 9 | }; |
@@ -18,11 +18,11 @@ |
||
18 | 18 | style('settings', 'settings'); |
19 | 19 | |
20 | 20 | $userlistParams = array(); |
21 | -$allGroups=array(); |
|
22 | -foreach($_["adminGroup"] as $group) { |
|
21 | +$allGroups = array(); |
|
22 | +foreach ($_["adminGroup"] as $group) { |
|
23 | 23 | $allGroups[] = $group['name']; |
24 | 24 | } |
25 | -foreach($_["groups"] as $group) { |
|
25 | +foreach ($_["groups"] as $group) { |
|
26 | 26 | $allGroups[] = $group['name']; |
27 | 27 | } |
28 | 28 | $userlistParams['subadmingroups'] = $allGroups; |
@@ -28,24 +28,24 @@ |
||
28 | 28 | </li> |
29 | 29 | |
30 | 30 | <!-- The Admin Group --> |
31 | - <?php foreach($_["adminGroup"] as $adminGroup): ?> |
|
32 | - <li data-gid="admin" data-usercount="<?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?>" class="isgroup"> |
|
31 | + <?php foreach ($_["adminGroup"] as $adminGroup): ?> |
|
32 | + <li data-gid="admin" data-usercount="<?php if ($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?>" class="isgroup"> |
|
33 | 33 | <a href="#"><span class="groupname"><?php p($l->t('Admins')); ?></span></a> |
34 | 34 | <span class="utils"> |
35 | - <span class="usercount"><?php if($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?></span> |
|
35 | + <span class="usercount"><?php if ($adminGroup['usercount'] > 0) { p($adminGroup['usercount']); } ?></span> |
|
36 | 36 | </span> |
37 | 37 | </li> |
38 | 38 | <?php endforeach; ?> |
39 | 39 | |
40 | 40 | <!--List of Groups--> |
41 | - <?php foreach($_["groups"] as $group): ?> |
|
41 | + <?php foreach ($_["groups"] as $group): ?> |
|
42 | 42 | <li data-gid="<?php p($group['name']) ?>" data-usercount="<?php p($group['usercount']) ?>" class="isgroup"> |
43 | 43 | <a href="#" class="dorename"> |
44 | 44 | <span class="groupname"><?php p($group['name']); ?></span> |
45 | 45 | </a> |
46 | 46 | <span class="utils"> |
47 | - <span class="usercount"><?php if($group['usercount'] > 0) { p($group['usercount']); } ?></span> |
|
48 | - <?php if($_['isAdmin']): ?> |
|
47 | + <span class="usercount"><?php if ($group['usercount'] > 0) { p($group['usercount']); } ?></span> |
|
48 | + <?php if ($_['isAdmin']): ?> |
|
49 | 49 | <a href="#" class="action delete" original-title="<?php p($l->t('Delete'))?>"> |
50 | 50 | <img src="<?php print_unescaped(image_path('core', 'actions/delete.svg')) ?>" /> |
51 | 51 | </a> |