-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): Update nextcloud/coding-standard to v1.3.1 #48181
Conversation
@@ -108,7 +110,7 @@ | |||
|
|||
$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 Note
@@ -189,15 +193,16 @@ | |||
$acl = $this->caldavBackend->applyShareAcl($this->getResourceId(), $acl); | |||
$allowedPrincipals = [ | |||
$this->getOwner(), | |||
$this->getOwner(). '/calendar-proxy-read', | |||
$this->getOwner(). '/calendar-proxy-write', | |||
$this->getOwner() . '/calendar-proxy-read', |
Check notice
Code scanning / Psalm
PossiblyNullOperand Note
$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 Note
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
@@ -39,7 +39,7 @@ | |||
$arguments = null, | |||
$loader = null, | |||
$mountOptions = null, | |||
$mountId = null | |||
$mountId = null, |
Check notice
Code scanning / Psalm
MissingParamType Note
@@ -91,7 +91,7 @@ | |||
Filesystem::initMountPoints($uid); | |||
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 Note
@@ -15,7 +15,7 @@ | |||
sort($serverConnections); | |||
$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 Note
@@ -259,11 +259,11 @@ | |||
* @param string|null $key | |||
*/ | |||
private function getCacheKey($key): string { | |||
$prefix = 'LDAP-'.$this->configID.'-'.$this->configPrefix.'-'; | |||
$prefix = 'LDAP-' . $this->configID . '-' . $this->configPrefix . '-'; |
Check notice
Code scanning / Psalm
PossiblyNullOperand Note
@@ -36,15 +36,15 @@ | |||
$userBackendFound = false; | |||
$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 Note
@@ -237,7 +237,7 @@ | |||
]); | |||
|
|||
$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 Note
@@ -495,7 +495,7 @@ | |||
* @return array an array of all displayNames (value) and the corresponding uids (key) | |||
*/ | |||
public function getDisplayNames($search = '', $limit = null, $offset = null) { | |||
$cacheKey = 'getDisplayNames-'.$search.'-'.$limit.'-'.$offset; | |||
$cacheKey = 'getDisplayNames-' . $search . '-' . $limit . '-' . $offset; |
Check notice
Code scanning / Psalm
PossiblyNullOperand Note
@@ -495,7 +495,7 @@ | |||
* @return array an array of all displayNames (value) and the corresponding uids (key) | |||
*/ | |||
public function getDisplayNames($search = '', $limit = null, $offset = null) { | |||
$cacheKey = 'getDisplayNames-'.$search.'-'.$limit.'-'.$offset; | |||
$cacheKey = 'getDisplayNames-' . $search . '-' . $limit . '-' . $offset; |
Check notice
Code scanning / Psalm
PossiblyNullOperand Note
@@ -81,12 +81,12 @@ | |||
} | |||
$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 Note
} 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 Note
Sharding tests are expected to fail, can someone force-merge? |
Signed-off-by: provokateurin <[email protected]>
Signed-off-by: provokateurin <[email protected]>
367ff22
to
6285f55
Compare
Summary
Psalm baseline had to be updated due to it referencing code snippets where the formatting was changed.
Checklist