diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-20 11:45:08 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-20 11:45:08 +0100 |
commit | f5c361cf44739058b79f322576a1bad2d8c142d9 (patch) | |
tree | a22217c6995751023112832d191d213e494e2fbc /core/Controller | |
parent | 37bb33c5799b834dfef3fb73936bd0e5a4773fb8 (diff) | |
download | nextcloud-server-f5c361cf44739058b79f322576a1bad2d8c142d9.tar.gz nextcloud-server-f5c361cf44739058b79f322576a1bad2d8c142d9.zip |
composer run cs:fix
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/Controller')
-rw-r--r-- | core/Controller/AvatarController.php | 16 | ||||
-rw-r--r-- | core/Controller/WalledGardenController.php | 1 | ||||
-rw-r--r-- | core/Controller/WellKnownController.php | 1 | ||||
-rw-r--r-- | core/Controller/WhatsNewController.php | 1 | ||||
-rw-r--r-- | core/Controller/WipeController.php | 1 |
5 files changed, 8 insertions, 12 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php index 673ed1be05b..c6567b33209 100644 --- a/core/Controller/AvatarController.php +++ b/core/Controller/AvatarController.php @@ -308,16 +308,16 @@ class AvatarController extends Controller { return new JSONResponse(['data' => [ 'message' => $this->l->t("No temporary profile picture available, try again") ]], - Http::STATUS_NOT_FOUND); + Http::STATUS_NOT_FOUND); } $image = new \OCP\Image(); $image->loadFromData($tmpAvatar); $resp = new DataDisplayResponse( - $image->data() ?? '', - Http::STATUS_OK, - ['Content-Type' => $image->mimeType()]); + $image->data() ?? '', + Http::STATUS_OK, + ['Content-Type' => $image->mimeType()]); $resp->setETag((string)crc32($image->data() ?? '')); $resp->cacheFor(0); @@ -331,12 +331,12 @@ class AvatarController extends Controller { public function postCroppedAvatar(?array $crop = null): JSONResponse { if (is_null($crop)) { return new JSONResponse(['data' => ['message' => $this->l->t("No crop data provided")]], - Http::STATUS_BAD_REQUEST); + Http::STATUS_BAD_REQUEST); } if (!isset($crop['x'], $crop['y'], $crop['w'], $crop['h'])) { return new JSONResponse(['data' => ['message' => $this->l->t("No valid crop data provided")]], - Http::STATUS_BAD_REQUEST); + Http::STATUS_BAD_REQUEST); } $tmpAvatar = $this->cache->get('tmpAvatar'); @@ -344,7 +344,7 @@ class AvatarController extends Controller { return new JSONResponse(['data' => [ 'message' => $this->l->t("No temporary profile picture available, try again") ]], - Http::STATUS_BAD_REQUEST); + Http::STATUS_BAD_REQUEST); } $image = new \OCP\Image(); @@ -358,7 +358,7 @@ class AvatarController extends Controller { return new JSONResponse(['status' => 'success']); } catch (\OC\NotSquareException $e) { return new JSONResponse(['data' => ['message' => $this->l->t('Crop is not square')]], - Http::STATUS_BAD_REQUEST); + Http::STATUS_BAD_REQUEST); } catch (\Exception $e) { $this->logger->error($e->getMessage(), ['exception' => $e, 'app' => 'core']); return new JSONResponse(['data' => ['message' => $this->l->t('An error occurred. Please contact your admin.')]], Http::STATUS_BAD_REQUEST); diff --git a/core/Controller/WalledGardenController.php b/core/Controller/WalledGardenController.php index 584c264aaf9..0079cc5a69a 100644 --- a/core/Controller/WalledGardenController.php +++ b/core/Controller/WalledGardenController.php @@ -28,7 +28,6 @@ use OCP\AppFramework\Http; use OCP\AppFramework\Http\Response; class WalledGardenController extends Controller { - /** * @PublicPage * @NoCSRFRequired diff --git a/core/Controller/WellKnownController.php b/core/Controller/WellKnownController.php index 12384b6f9ad..01ae5e4fae8 100644 --- a/core/Controller/WellKnownController.php +++ b/core/Controller/WellKnownController.php @@ -33,7 +33,6 @@ use OCP\AppFramework\Http\Response; use OCP\IRequest; class WellKnownController extends Controller { - /** @var RequestManager */ private $requestManager; diff --git a/core/Controller/WhatsNewController.php b/core/Controller/WhatsNewController.php index 12024dec030..0dae0f97322 100644 --- a/core/Controller/WhatsNewController.php +++ b/core/Controller/WhatsNewController.php @@ -37,7 +37,6 @@ use OCP\IUserSession; use OCP\L10N\IFactory; class WhatsNewController extends OCSController { - /** @var IConfig */ protected $config; /** @var IUserSession */ diff --git a/core/Controller/WipeController.php b/core/Controller/WipeController.php index 5eef03b129f..44ec5fc598a 100644 --- a/core/Controller/WipeController.php +++ b/core/Controller/WipeController.php @@ -33,7 +33,6 @@ use OCP\AppFramework\Http\JSONResponse; use OCP\IRequest; class WipeController extends Controller { - /** @var RemoteWipe */ private $remoteWipe; |