Skip to content

Commit 5981b7e

Browse files
susnuxkesselb
authored andcommitted
chore: apply new CSFixer rules
Signed-off-by: Ferdinand Thiessen <[email protected]> # Conflicts: # apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
1 parent 28ef8b2 commit 5981b7e

File tree

1,339 files changed

+3200
-2092
lines changed

Some content is hidden

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

1,339 files changed

+3200
-2092
lines changed

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: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,16 @@ public function addShare($shareWith, $name, $description, $providerId, $owner, $
118118

119119
// check if all required parameters are set
120120
if (
121-
$shareWith === null ||
122-
$name === null ||
123-
$providerId === null ||
124-
$resourceType === null ||
125-
$shareType === null ||
126-
!is_array($protocol) ||
127-
!isset($protocol['name']) ||
128-
!isset($protocol['options']) ||
129-
!is_array($protocol['options']) ||
130-
!isset($protocol['options']['sharedSecret'])
121+
$shareWith === null
122+
|| $name === null
123+
|| $providerId === null
124+
|| $resourceType === null
125+
|| $shareType === null
126+
|| !is_array($protocol)
127+
|| !isset($protocol['name'])
128+
|| !isset($protocol['options'])
129+
|| !is_array($protocol['options'])
130+
|| !isset($protocol['options']['sharedSecret'])
131131
) {
132132
return new JSONResponse(
133133
[
@@ -340,10 +340,10 @@ public function inviteAccepted(string $recipientProvider, string $token, string
340340
public function receiveNotification($notificationType, $resourceType, $providerId, ?array $notification) {
341341
// check if all required parameters are set
342342
if (
343-
$notificationType === null ||
344-
$resourceType === null ||
345-
$providerId === null ||
346-
!is_array($notification)
343+
$notificationType === null
344+
|| $resourceType === null
345+
|| $providerId === null
346+
|| !is_array($notification)
347347
) {
348348
return new JSONResponse(
349349
[

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/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

apps/comments/lib/Collaboration/CommentersSorter.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: 2017 Nextcloud GmbH and Nextcloud contributors
45
* SPDX-License-Identifier: AGPL-3.0-or-later

apps/comments/lib/Controller/NotificationsController.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/Search/Result.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/comments/tests/Unit/Collaboration/CommentersSorterTest.php

Lines changed: 37 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
45
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -60,32 +61,30 @@ public static function sortDataProvider(): array {
6061
#1 – sort properly and otherwise keep existing order
6162
'actors' => ['users' => ['celia' => 3, 'darius' => 7, 'faruk' => 5, 'gail' => 5], 'bots' => ['r2-d2' => 8]],
6263
'input' => [
63-
'users' =>
64-
[
65-
['value' => ['shareWith' => 'alice']],
66-
['value' => ['shareWith' => 'bob']],
67-
['value' => ['shareWith' => 'celia']],
68-
['value' => ['shareWith' => 'darius']],
69-
['value' => ['shareWith' => 'elena']],
70-
['value' => ['shareWith' => 'faruk']],
71-
['value' => ['shareWith' => 'gail']],
72-
],
64+
'users' => [
65+
['value' => ['shareWith' => 'alice']],
66+
['value' => ['shareWith' => 'bob']],
67+
['value' => ['shareWith' => 'celia']],
68+
['value' => ['shareWith' => 'darius']],
69+
['value' => ['shareWith' => 'elena']],
70+
['value' => ['shareWith' => 'faruk']],
71+
['value' => ['shareWith' => 'gail']],
72+
],
7373
'bots' => [
7474
['value' => ['shareWith' => 'c-3po']],
7575
['value' => ['shareWith' => 'r2-d2']],
7676
]
7777
],
7878
'expected' => [
79-
'users' =>
80-
[
81-
['value' => ['shareWith' => 'darius']],
82-
['value' => ['shareWith' => 'faruk']],
83-
['value' => ['shareWith' => 'gail']],
84-
['value' => ['shareWith' => 'celia']],
85-
['value' => ['shareWith' => 'alice']],
86-
['value' => ['shareWith' => 'bob']],
87-
['value' => ['shareWith' => 'elena']],
88-
],
79+
'users' => [
80+
['value' => ['shareWith' => 'darius']],
81+
['value' => ['shareWith' => 'faruk']],
82+
['value' => ['shareWith' => 'gail']],
83+
['value' => ['shareWith' => 'celia']],
84+
['value' => ['shareWith' => 'alice']],
85+
['value' => ['shareWith' => 'bob']],
86+
['value' => ['shareWith' => 'elena']],
87+
],
8988
'bots' => [
9089
['value' => ['shareWith' => 'r2-d2']],
9190
['value' => ['shareWith' => 'c-3po']],
@@ -96,32 +95,30 @@ public static function sortDataProvider(): array {
9695
#2 – no commentors, input equals output
9796
'actors' => [],
9897
'input' => [
99-
'users' =>
100-
[
101-
['value' => ['shareWith' => 'alice']],
102-
['value' => ['shareWith' => 'bob']],
103-
['value' => ['shareWith' => 'celia']],
104-
['value' => ['shareWith' => 'darius']],
105-
['value' => ['shareWith' => 'elena']],
106-
['value' => ['shareWith' => 'faruk']],
107-
['value' => ['shareWith' => 'gail']],
108-
],
98+
'users' => [
99+
['value' => ['shareWith' => 'alice']],
100+
['value' => ['shareWith' => 'bob']],
101+
['value' => ['shareWith' => 'celia']],
102+
['value' => ['shareWith' => 'darius']],
103+
['value' => ['shareWith' => 'elena']],
104+
['value' => ['shareWith' => 'faruk']],
105+
['value' => ['shareWith' => 'gail']],
106+
],
109107
'bots' => [
110108
['value' => ['shareWith' => 'c-3po']],
111109
['value' => ['shareWith' => 'r2-d2']],
112110
]
113111
],
114112
'expected' => [
115-
'users' =>
116-
[
117-
['value' => ['shareWith' => 'alice']],
118-
['value' => ['shareWith' => 'bob']],
119-
['value' => ['shareWith' => 'celia']],
120-
['value' => ['shareWith' => 'darius']],
121-
['value' => ['shareWith' => 'elena']],
122-
['value' => ['shareWith' => 'faruk']],
123-
['value' => ['shareWith' => 'gail']],
124-
],
113+
'users' => [
114+
['value' => ['shareWith' => 'alice']],
115+
['value' => ['shareWith' => 'bob']],
116+
['value' => ['shareWith' => 'celia']],
117+
['value' => ['shareWith' => 'darius']],
118+
['value' => ['shareWith' => 'elena']],
119+
['value' => ['shareWith' => 'faruk']],
120+
['value' => ['shareWith' => 'gail']],
121+
],
125122
'bots' => [
126123
['value' => ['shareWith' => 'c-3po']],
127124
['value' => ['shareWith' => 'r2-d2']],

0 commit comments

Comments
 (0)