Passed
Push — master ( 71d1fd...4c8c00 )
by Joas
14:27 queued 12s
created
core/Controller/AvatarController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -116,12 +116,12 @@  discard block
 block discarded – undo
116 116
 	public function getAvatar($userId, $size) {
117 117
 		if ($size <= 64) {
118 118
 			if ($size !== 64) {
119
-				$this->logger->debug('Avatar requested in deprecated size ' . $size);
119
+				$this->logger->debug('Avatar requested in deprecated size '.$size);
120 120
 			}
121 121
 			$size = 64;
122 122
 		} else {
123 123
 			if ($size !== 512) {
124
-				$this->logger->debug('Avatar requested in deprecated size ' . $size);
124
+				$this->logger->debug('Avatar requested in deprecated size '.$size);
125 125
 			}
126 126
 			$size = 512;
127 127
 		}
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 			$response = new FileDisplayResponse(
133 133
 				$avatarFile,
134 134
 				Http::STATUS_OK,
135
-				['Content-Type' => $avatarFile->getMimeType(), 'X-NC-IsCustomAvatar' => (int)$avatar->isCustomAvatar()]
135
+				['Content-Type' => $avatarFile->getMimeType(), 'X-NC-IsCustomAvatar' => (int) $avatar->isCustomAvatar()]
136 136
 			);
137 137
 		} catch (\Exception $e) {
138 138
 			return new JSONResponse([], Http::STATUS_NOT_FOUND);
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 				Http::STATUS_OK,
294 294
 				['Content-Type' => $image->mimeType()]);
295 295
 
296
-		$resp->setETag((string)crc32($image->data() ?? ''));
296
+		$resp->setETag((string) crc32($image->data() ?? ''));
297 297
 		$resp->cacheFor(0);
298 298
 		$resp->setLastModified(new \DateTime('now', new \DateTimeZone('GMT')));
299 299
 		return $resp;
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 
327 327
 		$image = new \OC_Image();
328 328
 		$image->loadFromData($tmpAvatar);
329
-		$image->crop($crop['x'], $crop['y'], (int)round($crop['w']), (int)round($crop['h']));
329
+		$image->crop($crop['x'], $crop['y'], (int) round($crop['w']), (int) round($crop['h']));
330 330
 		try {
331 331
 			$avatar = $this->avatarManager->getAvatar($this->userId);
332 332
 			$avatar->set($image);
Please login to merge, or discard this patch.
core/Controller/GuestAvatarController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,12 +78,12 @@
 block discarded – undo
78 78
 
79 79
 		if ($size <= 64) {
80 80
 			if ($size !== 64) {
81
-				$this->logger->debug('Avatar requested in deprecated size ' . $size);
81
+				$this->logger->debug('Avatar requested in deprecated size '.$size);
82 82
 			}
83 83
 			$size = 64;
84 84
 		} else {
85 85
 			if ($size !== 512) {
86
-				$this->logger->debug('Avatar requested in deprecated size ' . $size);
86
+				$this->logger->debug('Avatar requested in deprecated size '.$size);
87 87
 			}
88 88
 			$size = 512;
89 89
 		}
Please login to merge, or discard this patch.