Skip to content

Commit 42cc374

Browse files
authored
Merge pull request #52462 from nextcloud/dependabot/composer/vendor-bin/cs-fixer/stable30/nextcloud/coding-standard-1.2.2
build(deps): bump nextcloud/coding-standard from 1.2.1 to 1.2.2 in /vendor-bin/cs-fixer
2 parents 3ba981c + 3cc70aa commit 42cc374

File tree

2,003 files changed

+10078
-8755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,003 files changed

+10078
-8755
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22

33
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
44
# SPDX-License-Identifier: AGPL-3.0-or-later
5+
6+
# Update to coding-standard 1.2.2
7+
98d8ae805eb6ff38e60237ad4b599605df981322

apps/admin_audit/lib/Actions/Files.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function read(BeforeNodeReadEvent $event): void {
4141
];
4242
} catch (InvalidPathException|NotFoundException $e) {
4343
\OCP\Server::get(LoggerInterface::class)->error(
44-
"Exception thrown in file read: ".$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
44+
'Exception thrown in file read: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
4545
);
4646
return;
4747
}
@@ -61,7 +61,7 @@ public function beforeRename(BeforeNodeRenamedEvent $event): void {
6161
$this->renamedNodes[$source->getId()] = $source;
6262
} catch (InvalidPathException|NotFoundException $e) {
6363
\OCP\Server::get(LoggerInterface::class)->error(
64-
"Exception thrown in file rename: ".$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
64+
'Exception thrown in file rename: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
6565
);
6666
return;
6767
}
@@ -81,7 +81,7 @@ public function afterRename(NodeRenamedEvent $event): void {
8181
];
8282
} catch (InvalidPathException|NotFoundException $e) {
8383
\OCP\Server::get(LoggerInterface::class)->error(
84-
"Exception thrown in file rename: ".$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
84+
'Exception thrown in file rename: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
8585
);
8686
return;
8787
}
@@ -105,7 +105,7 @@ public function create(NodeCreatedEvent $event): void {
105105
];
106106
} catch (InvalidPathException|NotFoundException $e) {
107107
\OCP\Server::get(LoggerInterface::class)->error(
108-
"Exception thrown in file create: ".$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
108+
'Exception thrown in file create: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
109109
);
110110
return;
111111
}
@@ -132,7 +132,7 @@ public function copy(NodeCopiedEvent $event): void {
132132
];
133133
} catch (InvalidPathException|NotFoundException $e) {
134134
\OCP\Server::get(LoggerInterface::class)->error(
135-
"Exception thrown in file copy: ".$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
135+
'Exception thrown in file copy: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
136136
);
137137
return;
138138
}
@@ -155,7 +155,7 @@ public function write(NodeWrittenEvent $event): void {
155155
];
156156
} catch (InvalidPathException|NotFoundException $e) {
157157
\OCP\Server::get(LoggerInterface::class)->error(
158-
"Exception thrown in file write: ".$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
158+
'Exception thrown in file write: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
159159
);
160160
return;
161161
}
@@ -181,7 +181,7 @@ public function delete(BeforeNodeDeletedEvent $event): void {
181181
];
182182
} catch (InvalidPathException|NotFoundException $e) {
183183
\OCP\Server::get(LoggerInterface::class)->error(
184-
"Exception thrown in file delete: ".$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
184+
'Exception thrown in file delete: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
185185
);
186186
return;
187187
}
@@ -210,7 +210,7 @@ public function preview(BeforePreviewFetchedEvent $event): void {
210210
];
211211
} catch (InvalidPathException|NotFoundException $e) {
212212
\OCP\Server::get(LoggerInterface::class)->error(
213-
"Exception thrown in file preview: ".$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
213+
'Exception thrown in file preview: '.$e->getMessage(), ['app' => 'admin_audit', 'exception' => $e]
214214
);
215215
return;
216216
}

apps/cloud_federation_api/lib/Capabilities.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public function getCapabilities() {
5555

5656
$resource = $this->provider->createNewResourceType();
5757
$resource->setName('file')
58-
->setShareTypes(['user', 'group'])
59-
->setProtocols(['webdav' => '/public.php/webdav/']);
58+
->setShareTypes(['user', 'group'])
59+
->setProtocols(['webdav' => '/public.php/webdav/']);
6060

6161
$this->provider->addResourceType($resource);
6262

apps/cloud_federation_api/lib/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
45
* SPDX-License-Identifier: AGPL-3.0-or-later

apps/cloud_federation_api/lib/Controller/RequestHandlerController.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
45
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -71,9 +72,9 @@ public function __construct(
7172
* @param string $resourceType 'file', 'calendar',...
7273
*
7374
* @return JSONResponse<Http::STATUS_CREATED, CloudFederationAPIAddShare, array{}>|JSONResponse<Http::STATUS_BAD_REQUEST, CloudFederationAPIValidationError, array{}>|JSONResponse<Http::STATUS_NOT_IMPLEMENTED, CloudFederationAPIError, array{}>
74-
* 201: The notification was successfully received. The display name of the recipient might be returned in the body
75-
* 400: Bad request due to invalid parameters, e.g. when `shareWith` is not found or required properties are missing
76-
* 501: Share type or the resource type is not supported
75+
* 201: The notification was successfully received. The display name of the recipient might be returned in the body
76+
* 400: Bad request due to invalid parameters, e.g. when `shareWith` is not found or required properties are missing
77+
* 501: Share type or the resource type is not supported
7778
*/
7879
#[PublicPage]
7980
#[NoCSRFRequired]
@@ -196,10 +197,10 @@ public function addShare($shareWith, $name, $description, $providerId, $owner, $
196197
* @param array<string, mixed>|null $notification The actual payload of the notification
197198
*
198199
* @return JSONResponse<Http::STATUS_CREATED, array<string, mixed>, array{}>|JSONResponse<Http::STATUS_BAD_REQUEST, CloudFederationAPIValidationError, array{}>|JSONResponse<Http::STATUS_FORBIDDEN|Http::STATUS_NOT_IMPLEMENTED, CloudFederationAPIError, array{}>
199-
* 201: The notification was successfully received
200-
* 400: Bad request due to invalid parameters, e.g. when `type` is invalid or missing
201-
* 403: Getting resource is not allowed
202-
* 501: The resource type is not supported
200+
* 201: The notification was successfully received
201+
* 400: Bad request due to invalid parameters, e.g. when `type` is invalid or missing
202+
* 403: Getting resource is not allowed
203+
* 501: The resource type is not supported
203204
*/
204205
#[NoCSRFRequired]
205206
#[PublicPage]

apps/comments/lib/Activity/Filter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
45
* SPDX-License-Identifier: AGPL-3.0-or-later

apps/comments/lib/Activity/Listener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function commentEvent(CommentsEvent $event): void {
3838

3939
// Get all mount point owners
4040
$cache = $this->mountCollection->getMountCache();
41-
$mounts = $cache->getMountsForFileId((int)$event->getComment()->getObjectId());
41+
$mounts = $cache->getMountsForFileId((int) $event->getComment()->getObjectId());
4242
if (empty($mounts)) {
4343
return;
4444
}
@@ -47,7 +47,7 @@ public function commentEvent(CommentsEvent $event): void {
4747
foreach ($mounts as $mount) {
4848
$owner = $mount->getUser()->getUID();
4949
$ownerFolder = $this->rootFolder->getUserFolder($owner);
50-
$nodes = $ownerFolder->getById((int)$event->getComment()->getObjectId());
50+
$nodes = $ownerFolder->getById((int) $event->getComment()->getObjectId());
5151
if (!empty($nodes)) {
5252
/** @var Node $node */
5353
$node = array_shift($nodes);
@@ -75,7 +75,7 @@ public function commentEvent(CommentsEvent $event): void {
7575
foreach ($users as $user => $path) {
7676
// numerical user ids end up as integers from array keys, but string
7777
// is required
78-
$activity->setAffectedUser((string)$user);
78+
$activity->setAffectedUser((string) $user);
7979

8080
$activity->setSubject('add_comment_subject', [
8181
'actor' => $actor,

apps/comments/lib/Activity/Provider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
45
* SPDX-License-Identifier: AGPL-3.0-or-later

apps/comments/lib/Activity/Setting.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
45
* SPDX-License-Identifier: AGPL-3.0-or-later

apps/comments/lib/AppInfo/Application.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
45
* SPDX-License-Identifier: AGPL-3.0-or-later

0 commit comments

Comments
 (0)