Skip to content

Commit 813bdc1

Browse files
Merge pull request #20375 from nextcloud/techdebt/fix-array-indent-style
Fix (array) indent style to always use one tab
2 parents 21b7e51 + 2fbad1e commit 813bdc1

File tree

145 files changed

+2632
-2632
lines changed

Some content is hidden

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

145 files changed

+2632
-2632
lines changed

apps/accessibility/appinfo/routes.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
'routes' => [
2828
['name' => 'accessibility#getCss', 'url' => '/css/user-{md5}', 'verb' => 'GET'],
2929
['name' => 'accessibility#getJavascript', 'url' => '/js/accessibility', 'verb' => 'GET'],
30-
],
31-
'ocs' => [
30+
],
31+
'ocs' => [
3232
[
3333
'name' => 'Config#getConfig',
3434
'url' => '/api/v1/config',
3535
'verb' => 'GET',
36-
],
36+
],
3737
[
3838
'name' => 'Config#setConfig',
3939
'url' => '/api/v1/config/{key}',
@@ -44,5 +44,5 @@
4444
'url' => '/api/v1/config/{key}',
4545
'verb' => 'DELETE',
4646
],
47-
]
47+
]
4848
];

apps/accessibility/lib/AccessibilityProvider.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ public function getThemes() {
7272

7373
public function getHighContrast() {
7474
return [
75-
'id' => 'highcontrast',
76-
'img' => $this->urlGenerator->imagePath($this->appName, 'mode-highcontrast.jpg'),
77-
'title' => $this->l->t('High contrast mode'),
78-
'enableLabel' => $this->l->t('Enable high contrast mode'),
79-
'text' => $this->l->t('A high contrast mode to ease your navigation. Visual quality will be reduced but clarity will be increased.')
80-
];
75+
'id' => 'highcontrast',
76+
'img' => $this->urlGenerator->imagePath($this->appName, 'mode-highcontrast.jpg'),
77+
'title' => $this->l->t('High contrast mode'),
78+
'enableLabel' => $this->l->t('Enable high contrast mode'),
79+
'text' => $this->l->t('A high contrast mode to ease your navigation. Visual quality will be reduced but clarity will be increased.')
80+
];
8181
}
8282

8383
public function getFonts() {

apps/comments/lib/Activity/Provider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,17 +146,17 @@ protected function parseLongVersion(IEvent $event) {
146146
if ($event->getSubject() === 'add_comment_subject') {
147147
if ($subjectParameters['actor'] === $this->activityManager->getCurrentUserId()) {
148148
$event->setParsedSubject($this->l->t('You commented on %1$s', [
149-
$subjectParameters['filePath'],
150-
]))
149+
$subjectParameters['filePath'],
150+
]))
151151
->setRichSubject($this->l->t('You commented on {file}'), [
152152
'file' => $this->generateFileParameter($subjectParameters['fileId'], $subjectParameters['filePath']),
153153
]);
154154
} else {
155155
$author = $this->generateUserParameter($subjectParameters['actor']);
156156
$event->setParsedSubject($this->l->t('%1$s commented on %2$s', [
157-
$author['name'],
158-
$subjectParameters['filePath'],
159-
]))
157+
$author['name'],
158+
$subjectParameters['filePath'],
159+
]))
160160
->setRichSubject($this->l->t('{author} commented on {file}'), [
161161
'author' => $author,
162162
'file' => $this->generateFileParameter($subjectParameters['fileId'], $subjectParameters['filePath']),

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ function createCalendar($principalUri, $calendarUri, array $properties) {
772772
[
773773
'calendarId' => $calendarId,
774774
'calendarData' => $this->getCalendarById($calendarId),
775-
]));
775+
]));
776776

777777
return $calendarId;
778778
}
@@ -833,7 +833,7 @@ function updateCalendar($calendarId, PropPatch $propPatch) {
833833
'calendarData' => $this->getCalendarById($calendarId),
834834
'shares' => $this->getShares($calendarId),
835835
'propertyMutations' => $mutations,
836-
]));
836+
]));
837837

838838
return true;
839839
});
@@ -852,7 +852,7 @@ function deleteCalendar($calendarId) {
852852
'calendarId' => $calendarId,
853853
'calendarData' => $this->getCalendarById($calendarId),
854854
'shares' => $this->getShares($calendarId),
855-
]));
855+
]));
856856

857857
$stmt = $this->db->prepare('DELETE FROM `*PREFIX*calendarobjects` WHERE `calendarid` = ? AND `calendartype` = ?');
858858
$stmt->execute([$calendarId, self::CALENDAR_TYPE_CALENDAR]);
@@ -2095,11 +2095,11 @@ function getSchedulingObject($principalUri, $objectUri) {
20952095
}
20962096

20972097
return [
2098-
'uri' => $row['uri'],
2099-
'calendardata' => $row['calendardata'],
2100-
'lastmodified' => $row['lastmodified'],
2101-
'etag' => '"' . $row['etag'] . '"',
2102-
'size' => (int)$row['size'],
2098+
'uri' => $row['uri'],
2099+
'calendardata' => $row['calendardata'],
2100+
'lastmodified' => $row['lastmodified'],
2101+
'etag' => '"' . $row['etag'] . '"',
2102+
'size' => (int)$row['size'],
21032103
];
21042104
}
21052105

@@ -2124,11 +2124,11 @@ function getSchedulingObjects($principalUri) {
21242124
$result = [];
21252125
foreach($stmt->fetchAll(\PDO::FETCH_ASSOC) as $row) {
21262126
$result[] = [
2127-
'calendardata' => $row['calendardata'],
2128-
'uri' => $row['uri'],
2129-
'lastmodified' => $row['lastmodified'],
2130-
'etag' => '"' . $row['etag'] . '"',
2131-
'size' => (int)$row['size'],
2127+
'calendardata' => $row['calendardata'],
2128+
'uri' => $row['uri'],
2129+
'lastmodified' => $row['lastmodified'],
2130+
'etag' => '"' . $row['etag'] . '"',
2131+
'size' => (int)$row['size'],
21322132
];
21332133
}
21342134

apps/dav/lib/CalDAV/Calendar.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ public function getACL() {
191191

192192
if ($this->getOwner() !== parent::getOwner()) {
193193
$acl[] = [
194-
'privilege' => '{DAV:}read',
195-
'principal' => parent::getOwner(),
196-
'protected' => true,
197-
];
194+
'privilege' => '{DAV:}read',
195+
'principal' => parent::getOwner(),
196+
'protected' => true,
197+
];
198198
if ($this->canWrite()) {
199199
$acl[] = [
200200
'privilege' => '{DAV:}write',

apps/dav/lib/CardDAV/AddressBook.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ public function getACL() {
130130

131131
if ($this->getOwner() !== parent::getOwner()) {
132132
$acl[] = [
133-
'privilege' => '{DAV:}read',
134-
'principal' => parent::getOwner(),
135-
'protected' => true,
136-
];
133+
'privilege' => '{DAV:}read',
134+
'principal' => parent::getOwner(),
135+
'protected' => true,
136+
];
137137
if ($this->canWrite()) {
138138
$acl[] = [
139139
'privilege' => '{DAV:}write',

apps/dav/lib/CardDAV/AddressBookImpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ protected function vCard2Array($uri, VCard $vCard, $withTypes = false) {
284284
$result[$property->name][] = [
285285
'type' => $type,
286286
'value' => $property->getValue()
287-
];
287+
];
288288
} else {
289289
$result[$property->name][] = $property->getValue();
290290
}

apps/dav/lib/CardDAV/CardDavBackend.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class CardDavBackend implements BackendInterface, SyncSupport {
7676

7777
/** @var array properties to index */
7878
public static $indexProperties = [
79-
'BDAY', 'UID', 'N', 'FN', 'TITLE', 'ROLE', 'NOTE', 'NICKNAME',
80-
'ORG', 'CATEGORIES', 'EMAIL', 'TEL', 'IMPP', 'ADR', 'URL', 'GEO', 'CLOUD'];
79+
'BDAY', 'UID', 'N', 'FN', 'TITLE', 'ROLE', 'NOTE', 'NICKNAME',
80+
'ORG', 'CATEGORIES', 'EMAIL', 'TEL', 'IMPP', 'ADR', 'URL', 'GEO', 'CLOUD'];
8181

8282
/**
8383
* @var string[] Map of uid => display name

apps/dav/lib/CardDAV/SyncService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ protected function requestSyncReport($url, $userName, $addressBookUrl, $sharedSe
202202
$body = $this->buildSyncCollectionRequestBody($syncToken);
203203

204204
$response = $client->request('REPORT', $addressBookUrl, $body, [
205-
'Content-Type' => 'application/xml'
205+
'Content-Type' => 'application/xml'
206206
]);
207207

208208
return $this->parseMultiStatus($response['body']);

apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ public function fakeLockProvider(RequestInterface $request,
134134
$lockInfo->timeout = 1800;
135135

136136
$body = $this->server->xml->write('{DAV:}prop', [
137-
'{DAV:}lockdiscovery' =>
138-
new LockDiscovery([$lockInfo])
137+
'{DAV:}lockdiscovery' =>
138+
new LockDiscovery([$lockInfo])
139139
]);
140140

141141
$response->setStatus(200);

0 commit comments

Comments
 (0)