@@ -163,7 +163,7 @@ |
||
163 | 163 | * @return array |
164 | 164 | */ |
165 | 165 | function getGroupMembership($principal) { |
166 | - list($prefix, ) = \Sabre\Uri\split($principal); |
|
166 | + list($prefix,) = \Sabre\Uri\split($principal); |
|
167 | 167 | |
168 | 168 | if ($prefix === 'principals/system') { |
169 | 169 | $principal = $this->getPrincipalByPath($principal); |
@@ -30,12 +30,12 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * @var ICalendar[] holds all registered calendars |
32 | 32 | */ |
33 | - private $calendars=[]; |
|
33 | + private $calendars = []; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * @var \Closure[] to call to load/register calendar providers |
37 | 37 | */ |
38 | - private $calendarLoaders=[]; |
|
38 | + private $calendarLoaders = []; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * This function is used to search and find objects within the user's calendars. |
@@ -50,12 +50,12 @@ discard block |
||
50 | 50 | * @return array an array of events/journals/todos which are arrays of arrays of key-value-pairs |
51 | 51 | * @since 13.0.0 |
52 | 52 | */ |
53 | - public function search($pattern, array $searchProperties=[], array $options=[], $limit=null, $offset=null) { |
|
53 | + public function search($pattern, array $searchProperties = [], array $options = [], $limit = null, $offset = null) { |
|
54 | 54 | $this->loadCalendars(); |
55 | 55 | $result = []; |
56 | - foreach($this->calendars as $calendar) { |
|
56 | + foreach ($this->calendars as $calendar) { |
|
57 | 57 | $r = $calendar->search($pattern, $searchProperties, $options, $limit, $offset); |
58 | - foreach($r as $o) { |
|
58 | + foreach ($r as $o) { |
|
59 | 59 | $o['calendar-key'] = $calendar->getKey(); |
60 | 60 | $result[] = $o; |
61 | 61 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * loads all calendars |
133 | 133 | */ |
134 | 134 | private function loadCalendars() { |
135 | - foreach($this->calendarLoaders as $callable) { |
|
135 | + foreach ($this->calendarLoaders as $callable) { |
|
136 | 136 | $callable($this); |
137 | 137 | } |
138 | 138 | $this->calendarLoaders = []; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @return array an array of events/journals/todos which are arrays of key-value-pairs |
88 | 88 | * @since 13.0.0 |
89 | 89 | */ |
90 | - public function search($pattern, array $searchProperties=[], array $options=[], $limit=null, $offset=null) { |
|
90 | + public function search($pattern, array $searchProperties = [], array $options = [], $limit = null, $offset = null) { |
|
91 | 91 | return $this->backend->search($this->calendarInfo, $pattern, |
92 | 92 | $searchProperties, $options, $limit, $offset); |
93 | 93 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $permissions = $this->calendar->getACL(); |
101 | 101 | $result = 0; |
102 | 102 | foreach ($permissions as $permission) { |
103 | - switch($permission['privilege']) { |
|
103 | + switch ($permission['privilege']) { |
|
104 | 104 | case '{DAV:}read': |
105 | 105 | $result |= Constants::PERMISSION_READ; |
106 | 106 | break; |
@@ -77,7 +77,7 @@ |
||
77 | 77 | IDBConnection $db, IConfig $config, |
78 | 78 | IJobList $jobList, |
79 | 79 | IUserManager $userManager, |
80 | - CalDavBackend $calDavBackend){ |
|
80 | + CalDavBackend $calDavBackend) { |
|
81 | 81 | parent::__construct($appName, $request); |
82 | 82 | $this->db = $db; |
83 | 83 | $this->config = $config; |
@@ -174,14 +174,14 @@ discard block |
||
174 | 174 | return; |
175 | 175 | } |
176 | 176 | |
177 | - $ns = '{' . $this::NS_OWNCLOUD . '}'; |
|
177 | + $ns = '{'.$this::NS_OWNCLOUD.'}'; |
|
178 | 178 | $requestedProps = []; |
179 | 179 | $filterRules = []; |
180 | 180 | |
181 | 181 | // parse report properties and gather filter info |
182 | 182 | foreach ($report as $reportProps) { |
183 | 183 | $name = $reportProps['name']; |
184 | - if ($name === $ns . 'filter-rules') { |
|
184 | + if ($name === $ns.'filter-rules') { |
|
185 | 185 | $filterRules = $reportProps['value']; |
186 | 186 | } else if ($name === '{DAV:}prop') { |
187 | 187 | // propfind properties |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | if (empty($filesUri)) { |
243 | 243 | return ''; |
244 | 244 | } |
245 | - return '/' . $filesUri; |
|
245 | + return '/'.$filesUri; |
|
246 | 246 | } |
247 | 247 | |
248 | 248 | /** |
@@ -254,19 +254,19 @@ discard block |
||
254 | 254 | * @throws TagNotFoundException whenever a tag was not found |
255 | 255 | */ |
256 | 256 | protected function processFilterRules($filterRules) { |
257 | - $ns = '{' . $this::NS_OWNCLOUD . '}'; |
|
257 | + $ns = '{'.$this::NS_OWNCLOUD.'}'; |
|
258 | 258 | $resultFileIds = null; |
259 | 259 | $systemTagIds = []; |
260 | 260 | $circlesIds = []; |
261 | 261 | $favoriteFilter = null; |
262 | 262 | foreach ($filterRules as $filterRule) { |
263 | - if ($filterRule['name'] === $ns . 'systemtag') { |
|
263 | + if ($filterRule['name'] === $ns.'systemtag') { |
|
264 | 264 | $systemTagIds[] = $filterRule['value']; |
265 | 265 | } |
266 | 266 | if ($filterRule['name'] === self::CIRCLE_PROPERTYNAME) { |
267 | 267 | $circlesIds[] = $filterRule['value']; |
268 | 268 | } |
269 | - if ($filterRule['name'] === $ns . 'favorite') { |
|
269 | + if ($filterRule['name'] === $ns.'favorite') { |
|
270 | 270 | $favoriteFilter = true; |
271 | 271 | } |
272 | 272 | |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | } |
316 | 316 | |
317 | 317 | if (!empty($unknownTagIds)) { |
318 | - throw new TagNotFoundException('Tag with ids ' . implode(', ', $unknownTagIds) . ' not found'); |
|
318 | + throw new TagNotFoundException('Tag with ids '.implode(', ', $unknownTagIds).' not found'); |
|
319 | 319 | } |
320 | 320 | } |
321 | 321 | |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | public function prepareResponses($filesUri, $requestedProps, $nodes) { |
368 | 368 | $responses = []; |
369 | 369 | foreach ($nodes as $node) { |
370 | - $propFind = new PropFind($filesUri . $node->getPath(), $requestedProps); |
|
370 | + $propFind = new PropFind($filesUri.$node->getPath(), $requestedProps); |
|
371 | 371 | |
372 | 372 | $this->server->getPropertiesByNode($propFind, $node); |
373 | 373 | // copied from Sabre Server's getPropertiesForPath |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | } |
381 | 381 | |
382 | 382 | $responses[] = new Response( |
383 | - rtrim($this->server->getBaseUri(), '/') . $filesUri . $node->getPath(), |
|
383 | + rtrim($this->server->getBaseUri(), '/').$filesUri.$node->getPath(), |
|
384 | 384 | $result, |
385 | 385 | 200 |
386 | 386 | ); |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <div class="ldapWizardControls"> |
2 | - <span class="ldap_saving hidden"><?php p($l->t('Saving'));?> <img class="wizSpinner" src="<?php p(image_path('core', 'loading.gif')); ?>"/></span> |
|
2 | + <span class="ldap_saving hidden"><?php p($l->t('Saving')); ?> <img class="wizSpinner" src="<?php p(image_path('core', 'loading.gif')); ?>"/></span> |
|
3 | 3 | <span class="ldap_config_state_indicator"></span> <span class="ldap_config_state_indicator_sign"></span> |
4 | 4 | <button class="ldap_action_back invisible" name="ldap_action_back" |
5 | 5 | type="button"> |
6 | - <?php p($l->t('Back'));?> |
|
6 | + <?php p($l->t('Back')); ?> |
|
7 | 7 | </button> |
8 | 8 | <button class="ldap_action_continue primary" name="ldap_action_continue" type="button"> |
9 | - <?php p($l->t('Continue'));?> |
|
9 | + <?php p($l->t('Continue')); ?> |
|
10 | 10 | </button> |
11 | 11 | <a href="<?php p(link_to_docs('admin-ldap')); ?>" |
12 | 12 | target="_blank" rel="noreferrer noopener"> |
13 | 13 | <img src="<?php print_unescaped(image_path('', 'actions/info.svg')); ?>" |
14 | 14 | style="height:1.75ex" /> |
15 | - <span class="ldap_grey"><?php p($l->t('Help'));?></span> |
|
15 | + <span class="ldap_grey"><?php p($l->t('Help')); ?></span> |
|
16 | 16 | </a> |
17 | 17 | </div> |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $res['group'] = []; |
88 | 88 | $res['group']['enabled'] = $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes') === 'yes'; |
89 | 89 | $res['group']['expire_date']['enabled'] = true; |
90 | - $res['default_permissions'] = (int)$this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL); |
|
90 | + $res['default_permissions'] = (int) $this->config->getAppValue('core', 'shareapi_default_permissions', Constants::PERMISSION_ALL); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | //Federated sharing |
@@ -23,18 +23,18 @@ |
||
23 | 23 | * |
24 | 24 | */ |
25 | 25 | |
26 | -require_once __DIR__ . '/../lib/versioncheck.php'; |
|
27 | -require_once __DIR__ . '/../lib/base.php'; |
|
26 | +require_once __DIR__.'/../lib/versioncheck.php'; |
|
27 | +require_once __DIR__.'/../lib/base.php'; |
|
28 | 28 | |
29 | 29 | header('Content-type: application/xml'); |
30 | 30 | |
31 | 31 | $request = \OC::$server->getRequest(); |
32 | 32 | |
33 | -$url = $request->getServerProtocol() . '://' . substr($request->getServerHost() . $request->getRequestUri(), 0, -17).'ocs/v1.php/'; |
|
33 | +$url = $request->getServerProtocol().'://'.substr($request->getServerHost().$request->getRequestUri(), 0, -17).'ocs/v1.php/'; |
|
34 | 34 | |
35 | 35 | $writer = new XMLWriter(); |
36 | 36 | $writer->openURI('php://output'); |
37 | -$writer->startDocument('1.0','UTF-8'); |
|
37 | +$writer->startDocument('1.0', 'UTF-8'); |
|
38 | 38 | $writer->setIndent(true); |
39 | 39 | $writer->startElement('providers'); |
40 | 40 | $writer->startElement('provider'); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * @param array $calendars |
66 | 66 | */ |
67 | 67 | private function register(IManager $cm, array $calendars) { |
68 | - foreach($calendars as $calendarInfo) { |
|
68 | + foreach ($calendars as $calendarInfo) { |
|
69 | 69 | $calendar = new Calendar($this->backend, $calendarInfo, $this->l10n, $this->config); |
70 | 70 | $cm->registerCalendar(new CalendarImpl( |
71 | 71 | $calendar, |