Passed
Push — master ( f5d7fd...3b403d )
by Julius
02:46
created
lib/Controller/ConfigController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -23,16 +23,13 @@
 block discarded – undo
23 23
 
24 24
 namespace OCA\Deck\Controller;
25 25
 
26
-use OCA\Deck\Service\DefaultBoardService;
27 26
 use OCP\AppFramework\Http\DataResponse;
28 27
 use OCP\AppFramework\Http\NotFoundResponse;
29 28
 use OCP\IConfig;
30 29
 use OCP\IGroup;
31 30
 use OCP\IGroupManager;
32 31
 use OCP\IRequest;
33
-use OCP\AppFramework\Http\TemplateResponse;
34 32
 use OCP\AppFramework\Controller;
35
-use OCP\IL10N;
36 33
 
37 34
 class ConfigController extends Controller {
38 35
 
Please login to merge, or discard this patch.
lib/Service/BoardService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	public function findAll($since = -1) {
93 93
 		$userInfo = $this->getBoardPrerequisites();
94 94
 		$userBoards = $this->boardMapper->findAllByUser($userInfo['user'], null, null, $since);
95
-		$groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups'],null, null,  $since);
95
+		$groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups'], null, null, $since);
96 96
 		$complete = array_merge($userBoards, $groupBoards);
97 97
 		$result = [];
98 98
 		/** @var Board $item */
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	 */
128 128
 	public function find($boardId) {
129 129
 
130
-		if ( is_numeric($boardId) === false ) {
130
+		if (is_numeric($boardId) === false) {
131 131
 			throw new BadRequestException('board id must be a number');
132 132
 		}
133 133
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 	 */
177 177
 	public function isArchived($mapper, $id) {
178 178
 
179
-		if (is_numeric($id) === false)  {
179
+		if (is_numeric($id) === false) {
180 180
 			throw new BadRequestException('id must be a number');
181 181
 		}
182 182
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 			throw new BadRequestException('mapper must be provided');
211 211
 		}
212 212
 
213
-		if (is_numeric($id) === false)  {
213
+		if (is_numeric($id) === false) {
214 214
 			throw new BadRequestException('id must be a number');
215 215
 		}
216 216
 
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
 	 * @throws BadRequestException
346 346
 	 */
347 347
 	public function deleteForce($id) {
348
-		if (is_numeric($id) === false)  {
348
+		if (is_numeric($id) === false) {
349 349
 			throw new BadRequestException('id must be a number');
350 350
 		}
351 351
 
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 			throw new BadRequestException('color must be provided');
380 380
 		}
381 381
 
382
-		if ( is_bool($archived) === false ) {
382
+		if (is_bool($archived) === false) {
383 383
 			throw new BadRequestException('archived must be a boolean');
384 384
 		}
385 385
 
Please login to merge, or discard this patch.
lib/Controller/PageController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 	public function index() {
64 64
 		$params = [
65 65
 			'user' => $this->userId,
66
-			'maxUploadSize' => (int)\OCP\Util::uploadLimit(),
66
+			'maxUploadSize' => (int) \OCP\Util::uploadLimit(),
67 67
 			'canCreate' => $this->permissionService->canCreate()
68 68
 		];
69 69
 
Please login to merge, or discard this patch.