chore(deps): Update nextcloud/coding-standard to v1.3.1#48181
chore(deps): Update nextcloud/coding-standard to v1.3.1#48181provokateurin merged 2 commits intomasterfrom
Conversation
| $calendar = $this->ensureCalendarExists($principalUri); | ||
| foreach (['', '-death', '-anniversary'] as $tag) { | ||
| $objectUri = $book['uri'] . '-' . $cardUri . $tag .'.ics'; | ||
| $objectUri = $book['uri'] . '-' . $cardUri . $tag . '.ics'; |
Check notice
Code scanning / Psalm
PossiblyNullArrayAccess
| $this->getOwner(), | ||
| $this->getOwner(). '/calendar-proxy-read', | ||
| $this->getOwner(). '/calendar-proxy-write', | ||
| $this->getOwner() . '/calendar-proxy-read', |
Check notice
Code scanning / Psalm
PossiblyNullOperand
| $this->getOwner(). '/calendar-proxy-read', | ||
| $this->getOwner(). '/calendar-proxy-write', | ||
| $this->getOwner() . '/calendar-proxy-read', | ||
| $this->getOwner() . '/calendar-proxy-write', |
Check notice
Code scanning / Psalm
PossiblyNullOperand
diff --git a/apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php b/apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php
index d8abbc39631..7e48867fcfa 100644
--- a/apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php
+++ b/apps/dav/lib/CalDAV/Reminder/NotificationProvider/PushProvider.php
@@ -68,7 +68,9 @@ class PushProvider extends AbstractProvider {
$eventUUID = (string)$vevent->UID;
if (!$eventUUID) {
return;
- };
+ }
+
+;
$eventUUIDHash = hash('sha256', $eventUUID, false);
foreach ($users as $user) {🤔 |
|
Unfortunately it also seems to generate a different result than locally. |
diff --git a/apps/dav/templates/schedule-response-error.php b/apps/dav/templates/schedule-response-error.php
index 9604c83f922..7bdb37f73dd 100644
--- a/apps/dav/templates/schedule-response-error.php
+++ b/apps/dav/templates/schedule-response-error.php
@@ -11,6 +11,8 @@
<p><?php p($l->t('Please contact the organizer directly.'));?></p>
<?php if (isset($_['organizer'])): ?>
<p><a href="<?php p($_['organizer']) ?>"><?php p(substr($_['organizer'], 7)) ?></a></p>
- <?php endif; ?>
+ <?php endif;
+
+ ?>
</div>
</div>also not ideal |
|
You also need to composer install --no-dev before commit |
|
I used |
9313fba to
2a664db
Compare
Deleting the cache did the trick and it also changed some things in the templates. |
|
Changes to the templates seem to break *DAV. |
|
Yeah let's just revert the 2 new line rules |
2a664db to
367ff22
Compare
| $loader = null, | ||
| $mountOptions = null, | ||
| $mountId = null | ||
| $mountId = null, |
Check notice
Code scanning / Psalm
MissingParamType
| if ($uid !== OC_User::getUser()) { | ||
| $info = Filesystem::getFileInfo($filename); | ||
| $ownerView = new View('/'.$uid.'/files'); | ||
| $ownerView = new View('/' . $uid . '/files'); |
Check notice
Code scanning / Psalm
PossiblyFalseOperand
| $lk = array_pop($serverConnections); | ||
| $ln = (int)str_replace('s', '', $lk); | ||
| $nk = 's'.str_pad($ln + 1, 2, '0', STR_PAD_LEFT); | ||
| $nk = 's' . str_pad($ln + 1, 2, '0', STR_PAD_LEFT); |
Check notice
Code scanning / Psalm
InvalidScalarArgument
| */ | ||
| private function getCacheKey($key): string { | ||
| $prefix = 'LDAP-'.$this->configID.'-'.$this->configPrefix.'-'; | ||
| $prefix = 'LDAP-' . $this->configID . '-' . $this->configPrefix . '-'; |
Check notice
Code scanning / Psalm
PossiblyNullOperand
| $groupBackendFound = false; | ||
| foreach ($serverContainer->getUserManager()->getBackends() as $backend) { | ||
| $this->logger->debug('instance '.get_class($backend).' user backend.', ['app' => 'user_ldap']); | ||
| $this->logger->debug('instance ' . get_class($backend) . ' user backend.', ['app' => 'user_ldap']); |
Check notice
Code scanning / Psalm
DeprecatedMethod
|
|
||
| $this->logger->debug( | ||
| 'getUsers: Options: search '.$search.' limit '.$limit.' offset '.$offset.' Filter: '.$filter, | ||
| 'getUsers: Options: search ' . $search . ' limit ' . $limit . ' offset ' . $offset . ' Filter: ' . $filter, |
Check notice
Code scanning / Psalm
PossiblyNullOperand
| */ | ||
| public function getDisplayNames($search = '', $limit = null, $offset = null) { | ||
| $cacheKey = 'getDisplayNames-'.$search.'-'.$limit.'-'.$offset; | ||
| $cacheKey = 'getDisplayNames-' . $search . '-' . $limit . '-' . $offset; |
Check notice
Code scanning / Psalm
PossiblyNullOperand
| */ | ||
| public function getDisplayNames($search = '', $limit = null, $offset = null) { | ||
| $cacheKey = 'getDisplayNames-'.$search.'-'.$limit.'-'.$offset; | ||
| $cacheKey = 'getDisplayNames-' . $search . '-' . $limit . '-' . $offset; |
Check notice
Code scanning / Psalm
PossiblyNullOperand
| $statusCode = $response->getStatusCode(); | ||
| if ($statusCode >= 200 && $statusCode < 300) { | ||
| $this->logger->debug('Webhook returned status code '.$statusCode, ['body' => $response->getBody()]); | ||
| $this->logger->debug('Webhook returned status code ' . $statusCode, ['body' => $response->getBody()]); |
Check notice
Code scanning / Psalm
PossiblyInvalidMethodCall
| $this->logger->debug('Webhook returned status code ' . $statusCode, ['body' => $response->getBody()]); | ||
| } else { | ||
| $this->logger->warning('Webhook(' . $webhookId . ') returned unexpected status code '.$statusCode, ['body' => $response->getBody()]); | ||
| $this->logger->warning('Webhook(' . $webhookId . ') returned unexpected status code ' . $statusCode, ['body' => $response->getBody()]); |
Check notice
Code scanning / Psalm
PossiblyInvalidMethodCall
|
Sharding tests are expected to fail, can someone force-merge? |
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
367ff22 to
6285f55
Compare
Summary
Psalm baseline had to be updated due to it referencing code snippets where the formatting was changed.
Checklist