Skip to content

Commit 8a32d73

Browse files
committed
chore: fix coding standard errors
Signed-off-by: Anna Larch <anna@nextcloud.com>
1 parent 4d63b65 commit 8a32d73

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎lib/AppInfo/Application.php‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ public function register(IRegistrationContext $context): void {
8080
$systemConfig = $c->get(SystemConfig::class);
8181
$configPrefix = 'activity_';
8282

83-
if ($systemConfig->getValue($configPrefix . 'dbuser', null) === null &&
84-
$systemConfig->getValue($configPrefix . 'dbpassword', null) === null &&
85-
$systemConfig->getValue($configPrefix . 'dbname', null) === null &&
86-
$systemConfig->getValue($configPrefix . 'dbhost', null) === null &&
87-
$systemConfig->getValue($configPrefix . 'dbport', null) === null &&
88-
$systemConfig->getValue($configPrefix . 'dbdriveroptions', null) === null) {
83+
if ($systemConfig->getValue($configPrefix . 'dbuser', null) === null
84+
&& $systemConfig->getValue($configPrefix . 'dbpassword', null) === null
85+
&& $systemConfig->getValue($configPrefix . 'dbname', null) === null
86+
&& $systemConfig->getValue($configPrefix . 'dbhost', null) === null
87+
&& $systemConfig->getValue($configPrefix . 'dbport', null) === null
88+
&& $systemConfig->getValue($configPrefix . 'dbdriveroptions', null) === null) {
8989
return $c->get(IDBConnection::class);
9090
}
9191

‎lib/Data.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ public function get(GroupHelper $groupHelper, UserSettings $userSettings, $user,
270270
}
271271

272272
if (
273-
$filter === 'files_favorites' ||
274-
(in_array($filter, ['all', 'by', 'self']) && $userSettings->getUserSetting($user, 'stream', 'files_favorites'))
273+
$filter === 'files_favorites'
274+
|| (in_array($filter, ['all', 'by', 'self']) && $userSettings->getUserSetting($user, 'stream', 'files_favorites'))
275275
) {
276276
try {
277277
$favoriteFilter = $this->activityManager->getFilterById('files_favorites');

‎lib/FilesHooks.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ protected function addNotificationsForFileAction($filePath, $activityType, $subj
166166
$affectedUsers = array_merge($affectedUsers, $this->getAffectedUsersFromCachedMounts($fileId));
167167
}
168168

169-
[$filteredEmailUsers, $filteredNotificationUsers] =
170-
$this->getFileChangeActivitySettings($fileId, array_keys($affectedUsers), $activityType);
169+
[$filteredEmailUsers, $filteredNotificationUsers]
170+
= $this->getFileChangeActivitySettings($fileId, array_keys($affectedUsers), $activityType);
171171

172172
foreach ($affectedUsers as $user => $path) {
173173
$user = (string)$user;

‎tests/stubs/oca_theming_defaults.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
namespace OCA\Theming {
44
interface ThemingDefaults {
55
public function getName(): string;
6-
6+
77
public function getHTMLName(): string;
88

99
public function getTitle(): string;
10-
10+
1111
public function getProductName(): string;
12-
12+
1313
public function getBaseUrl(): string;
1414

1515
public function getSlogan(?string $lang = null): string;
16-
16+
1717
public function getImprintUrl(): string;
18-
18+
1919
public function getPrivacyUrl(): string;
2020
}
2121
}

0 commit comments

Comments
 (0)