Skip to content

Commit fa49545

Browse files
committed
chore(assets): Auto-fix coding standards
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent a523e22 commit fa49545

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

lib/Command/GetRecommendations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ public function execute(InputInterface $input, OutputInterface $output) {
4949
);
5050

5151
if (is_null($user)) {
52-
$output->writeln("user does not exist");
52+
$output->writeln('user does not exist');
5353
return 1;
5454
}
5555

5656
if ($input->getArgument('max')) {
57-
$recommendations = $this->recommendationService->getRecommendations($user, (int) $input->getArgument('max'));
57+
$recommendations = $this->recommendationService->getRecommendations($user, (int)$input->getArgument('max'));
5858
} else {
5959
$recommendations = $this->recommendationService->getRecommendations($user);
6060
}

lib/Controller/RecommendationController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(IRequest $request,
5050
public function index(): DataResponse {
5151
$user = $this->userSession->getUser();
5252
if (is_null($user)) {
53-
throw new Exception("Not logged in");
53+
throw new Exception('Not logged in');
5454
}
5555
$response = [];
5656
$response['enabled'] = $this->config->getUserValue($user->getUID(), Application::APP_ID, 'enabled', 'true') === 'true';
@@ -73,7 +73,7 @@ public function index(): DataResponse {
7373
public function always(): DataResponse {
7474
$user = $this->userSession->getUser();
7575
if (is_null($user)) {
76-
throw new Exception("Not logged in");
76+
throw new Exception('Not logged in');
7777
}
7878
$response = [
7979
'enabled' => $this->config->getUserValue($user->getUID(), Application::APP_ID, 'enabled', 'true') === 'true',

lib/Controller/SettingsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct($appName,
4040
public function getSettings(): JSONResponse {
4141
$user = $this->userSession->getUser();
4242
if (!$user instanceof IUser) {
43-
throw new Exception("Not logged in");
43+
throw new Exception('Not logged in');
4444
}
4545
return new JSONResponse([
4646
'enabled' => $this->config->getUserValue($user->getUID(), Application::APP_ID, 'enabled', 'true') === 'true',
@@ -55,7 +55,7 @@ public function getSettings(): JSONResponse {
5555
public function setSetting(string $key, string $value): JSONResponse {
5656
$user = $this->userSession->getUser();
5757
if (!$user instanceof IUser) {
58-
throw new Exception("Not logged in");
58+
throw new Exception('Not logged in');
5959
}
6060
$availableSettings = ['enabled'];
6161
if (!in_array($key, $availableSettings)) {

lib/Dashboard/RecommendationWidget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
IURLGenerator $urlGenerator,
3838
IMimeTypeDetector $mimeTypeDetector,
3939
RecommendationService $recommendationService,
40-
IUserManager $userManager
40+
IUserManager $userManager,
4141
) {
4242
$this->userSession = $userSession;
4343
$this->l10n = $l10n;

lib/Service/RecentlyCommentedFilesSource.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

0 commit comments

Comments
 (0)