@@ -26,7 +26,7 @@ |
||
26 | 26 | <h2 class="inlineblock"><?php p($_['heading']); ?></h2> |
27 | 27 | <?php if (!empty($_['docs'])): ?> |
28 | 28 | <a target="_blank" rel="noreferrer noopener" class="icon-info svg" |
29 | - title="<?php p($l->t('Open documentation'));?>" |
|
29 | + title="<?php p($l->t('Open documentation')); ?>" |
|
30 | 30 | href="<?php p(link_to_docs($_['docs'])); ?>"> |
31 | 31 | </a> |
32 | 32 | <?php endif; ?> |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <div class="ldapSettingControls"> |
2 | 2 | <button type="button" class="ldap_action_test_connection" name="ldap_action_test_connection"> |
3 | - <?php p($l->t('Test Configuration'));?> |
|
3 | + <?php p($l->t('Test Configuration')); ?> |
|
4 | 4 | </button> |
5 | 5 | <a href="<?php p(link_to_docs('admin-ldap')); ?>" |
6 | 6 | target="_blank" rel="noreferrer noopener"> |
7 | 7 | <img src="<?php print_unescaped(image_path('', 'actions/info.svg')); ?>" |
8 | 8 | style="height:1.75ex" /> |
9 | - <?php p($l->t('Help'));?> |
|
9 | + <?php p($l->t('Help')); ?> |
|
10 | 10 | </a> |
11 | 11 | </div> |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <div id="app-navigation"> |
2 | 2 | <ul> |
3 | - <?php if($_['admin']) { ?> |
|
3 | + <?php if ($_['admin']) { ?> |
|
4 | 4 | <li> |
5 | 5 | <a class="<?php p($_['style1']); ?>" |
6 | 6 | href="<?php print_unescaped($_['url1']); ?>"> |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | </a> |
27 | 27 | </li> |
28 | 28 | |
29 | - <?php if($_['admin']) { ?> |
|
29 | + <?php if ($_['admin']) { ?> |
|
30 | 30 | <li> |
31 | 31 | <a href="https://nextcloud.com/support/" target="_blank" rel="noreferrer noopener"> |
32 | 32 | <?php p($l->t('Getting help')); ?> ↗ |
@@ -52,9 +52,9 @@ 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 noopener" 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 | <p class="settings-hint"><?php p($l->t('It is important to set up this server to be able to send emails, like for password reset and notifications.')); ?></p> |
60 | 60 | <p><span id="mail_settings_msg" class="msg"></span></p> |
@@ -68,7 +68,7 @@ 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" |
@@ -83,7 +83,7 @@ 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 | |
@@ -104,7 +104,7 @@ 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" |
@@ -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 noopener" 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 | <p class="settings-hint"><?php p($l->t('Server-side encryption makes it possible to encrypt files which are uploaded to this server. This comes with limitations like a performance penalty, so enable this only if needed.')); ?></p> |
35 | 35 | <p id="enable"> |
@@ -55,15 +55,15 @@ |
||
55 | 55 | public function getMountsForUser(IUser $user, IStorageFactory $loader) { |
56 | 56 | $cacheBaseDir = $this->config->getSystemValue('cache_path', ''); |
57 | 57 | if ($cacheBaseDir !== '') { |
58 | - $cacheDir = rtrim($cacheBaseDir, '/') . '/' . $user->getUID(); |
|
58 | + $cacheDir = rtrim($cacheBaseDir, '/').'/'.$user->getUID(); |
|
59 | 59 | if (!file_exists($cacheDir)) { |
60 | 60 | mkdir($cacheDir, 0770, true); |
61 | - mkdir($cacheDir . '/uploads', 0770, true); |
|
61 | + mkdir($cacheDir.'/uploads', 0770, true); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | return [ |
65 | - new MountPoint('\OC\Files\Storage\Local', '/' . $user->getUID() . '/cache', ['datadir' => $cacheDir, $loader]), |
|
66 | - new MountPoint('\OC\Files\Storage\Local', '/' . $user->getUID() . '/uploads', ['datadir' => $cacheDir . '/uploads', $loader]) |
|
65 | + new MountPoint('\OC\Files\Storage\Local', '/'.$user->getUID().'/cache', ['datadir' => $cacheDir, $loader]), |
|
66 | + new MountPoint('\OC\Files\Storage\Local', '/'.$user->getUID().'/uploads', ['datadir' => $cacheDir.'/uploads', $loader]) |
|
67 | 67 | ]; |
68 | 68 | } else { |
69 | 69 | return []; |
@@ -79,7 +79,7 @@ |
||
79 | 79 | $column->setType(Type::getType(Type::BIGINT)); |
80 | 80 | $column->setOptions(['length' => 20]); |
81 | 81 | |
82 | - $updates[] = $tableName . '.' . $columnName; |
|
82 | + $updates[] = $tableName.'.'.$columnName; |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | foreach ($users as $user) { |
134 | 134 | $event->setAffectedUser($user) |
135 | 135 | ->setSubject( |
136 | - $user === $currentUser ? $action . '_self' : $action, |
|
136 | + $user === $currentUser ? $action.'_self' : $action, |
|
137 | 137 | [ |
138 | 138 | 'actor' => $currentUser, |
139 | 139 | 'calendar' => [ |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | $event, |
187 | 187 | $calendarData, |
188 | 188 | Calendar::SUBJECT_UNSHARE_USER, |
189 | - Calendar::SUBJECT_DELETE . '_self' |
|
189 | + Calendar::SUBJECT_DELETE.'_self' |
|
190 | 190 | ); |
191 | 191 | |
192 | 192 | if ($owner !== $principal[2]) { |
@@ -201,15 +201,15 @@ discard block |
||
201 | 201 | ]; |
202 | 202 | |
203 | 203 | if ($owner === $event->getAuthor()) { |
204 | - $subject = Calendar::SUBJECT_UNSHARE_USER . '_you'; |
|
204 | + $subject = Calendar::SUBJECT_UNSHARE_USER.'_you'; |
|
205 | 205 | } else if ($principal[2] === $event->getAuthor()) { |
206 | - $subject = Calendar::SUBJECT_UNSHARE_USER . '_self'; |
|
206 | + $subject = Calendar::SUBJECT_UNSHARE_USER.'_self'; |
|
207 | 207 | } else { |
208 | 208 | $event->setAffectedUser($event->getAuthor()) |
209 | - ->setSubject(Calendar::SUBJECT_UNSHARE_USER . '_you', $parameters); |
|
209 | + ->setSubject(Calendar::SUBJECT_UNSHARE_USER.'_you', $parameters); |
|
210 | 210 | $this->activityManager->publish($event); |
211 | 211 | |
212 | - $subject = Calendar::SUBJECT_UNSHARE_USER . '_by'; |
|
212 | + $subject = Calendar::SUBJECT_UNSHARE_USER.'_by'; |
|
213 | 213 | } |
214 | 214 | |
215 | 215 | $event->setAffectedUser($owner) |
@@ -230,13 +230,13 @@ discard block |
||
230 | 230 | ]; |
231 | 231 | |
232 | 232 | if ($owner === $event->getAuthor()) { |
233 | - $subject = Calendar::SUBJECT_UNSHARE_GROUP . '_you'; |
|
233 | + $subject = Calendar::SUBJECT_UNSHARE_GROUP.'_you'; |
|
234 | 234 | } else { |
235 | 235 | $event->setAffectedUser($event->getAuthor()) |
236 | - ->setSubject(Calendar::SUBJECT_UNSHARE_GROUP . '_you', $parameters); |
|
236 | + ->setSubject(Calendar::SUBJECT_UNSHARE_GROUP.'_you', $parameters); |
|
237 | 237 | $this->activityManager->publish($event); |
238 | 238 | |
239 | - $subject = Calendar::SUBJECT_UNSHARE_GROUP . '_by'; |
|
239 | + $subject = Calendar::SUBJECT_UNSHARE_GROUP.'_by'; |
|
240 | 240 | } |
241 | 241 | |
242 | 242 | $event->setAffectedUser($owner) |
@@ -272,13 +272,13 @@ discard block |
||
272 | 272 | ]; |
273 | 273 | |
274 | 274 | if ($owner === $event->getAuthor()) { |
275 | - $subject = Calendar::SUBJECT_SHARE_USER . '_you'; |
|
275 | + $subject = Calendar::SUBJECT_SHARE_USER.'_you'; |
|
276 | 276 | } else { |
277 | 277 | $event->setAffectedUser($event->getAuthor()) |
278 | - ->setSubject(Calendar::SUBJECT_SHARE_USER . '_you', $parameters); |
|
278 | + ->setSubject(Calendar::SUBJECT_SHARE_USER.'_you', $parameters); |
|
279 | 279 | $this->activityManager->publish($event); |
280 | 280 | |
281 | - $subject = Calendar::SUBJECT_SHARE_USER . '_by'; |
|
281 | + $subject = Calendar::SUBJECT_SHARE_USER.'_by'; |
|
282 | 282 | } |
283 | 283 | |
284 | 284 | $event->setAffectedUser($owner) |
@@ -299,13 +299,13 @@ discard block |
||
299 | 299 | ]; |
300 | 300 | |
301 | 301 | if ($owner === $event->getAuthor()) { |
302 | - $subject = Calendar::SUBJECT_SHARE_GROUP . '_you'; |
|
302 | + $subject = Calendar::SUBJECT_SHARE_GROUP.'_you'; |
|
303 | 303 | } else { |
304 | 304 | $event->setAffectedUser($event->getAuthor()) |
305 | - ->setSubject(Calendar::SUBJECT_SHARE_GROUP . '_you', $parameters); |
|
305 | + ->setSubject(Calendar::SUBJECT_SHARE_GROUP.'_you', $parameters); |
|
306 | 306 | $this->activityManager->publish($event); |
307 | 307 | |
308 | - $subject = Calendar::SUBJECT_SHARE_GROUP . '_by'; |
|
308 | + $subject = Calendar::SUBJECT_SHARE_GROUP.'_by'; |
|
309 | 309 | } |
310 | 310 | |
311 | 311 | $event->setAffectedUser($owner) |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | } |
404 | 404 | |
405 | 405 | $object = $this->getObjectNameAndType($objectData); |
406 | - $action = $action . '_' . $object['type']; |
|
406 | + $action = $action.'_'.$object['type']; |
|
407 | 407 | |
408 | 408 | if ($object['type'] === 'todo' && strpos($action, Event::SUBJECT_OBJECT_UPDATE) === 0 && $object['status'] === 'COMPLETED') { |
409 | 409 | $action .= '_completed'; |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | foreach ($users as $user) { |
424 | 424 | $event->setAffectedUser($user) |
425 | 425 | ->setSubject( |
426 | - $user === $currentUser ? $action . '_self' : $action, |
|
426 | + $user === $currentUser ? $action.'_self' : $action, |
|
427 | 427 | [ |
428 | 428 | 'actor' => $event->getAuthor(), |
429 | 429 | 'calendar' => [ |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | protected function getObjectNameAndType(array $objectData) { |
449 | 449 | $vObject = Reader::read($objectData['calendardata']); |
450 | 450 | $component = $componentType = null; |
451 | - foreach($vObject->getComponents() as $component) { |
|
451 | + foreach ($vObject->getComponents() as $component) { |
|
452 | 452 | if (in_array($component->name, ['VEVENT', 'VTODO'])) { |
453 | 453 | $componentType = $component->name; |
454 | 454 | break; |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\Files_Sharing\\' => array($baseDir . '/../lib'), |
|
9 | + 'OCA\\Files_Sharing\\' => array($baseDir.'/../lib'), |
|
10 | 10 | ); |