Completed
Pull Request — master (#923)
by Julius
04:27 queued 01:55
created
lib/Service/BoardService.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@  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);
96
-		$circleBoards = $this->boardMapper->findAllByCircles($userInfo['user'], null, null,  $since);
95
+		$groupBoards = $this->boardMapper->findAllByGroups($userInfo['user'], $userInfo['groups'], null, null, $since);
96
+		$circleBoards = $this->boardMapper->findAllByCircles($userInfo['user'], null, null, $since);
97 97
 		$complete = array_merge($userBoards, $groupBoards, $circleBoards);
98 98
 		$result = [];
99 99
 		/** @var Board $item */
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	 */
129 129
 	public function find($boardId) {
130 130
 
131
-		if ( is_numeric($boardId) === false ) {
131
+		if (is_numeric($boardId) === false) {
132 132
 			throw new BadRequestException('board id must be a number');
133 133
 		}
134 134
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 	 */
178 178
 	public function isArchived($mapper, $id) {
179 179
 
180
-		if (is_numeric($id) === false)  {
180
+		if (is_numeric($id) === false) {
181 181
 			throw new BadRequestException('id must be a number');
182 182
 		}
183 183
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 			throw new BadRequestException('mapper must be provided');
212 212
 		}
213 213
 
214
-		if (is_numeric($id) === false)  {
214
+		if (is_numeric($id) === false) {
215 215
 			throw new BadRequestException('id must be a number');
216 216
 		}
217 217
 
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
 	 * @throws BadRequestException
350 350
 	 */
351 351
 	public function deleteForce($id) {
352
-		if (is_numeric($id) === false)  {
352
+		if (is_numeric($id) === false) {
353 353
 			throw new BadRequestException('id must be a number');
354 354
 		}
355 355
 
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
 			throw new BadRequestException('color must be provided');
384 384
 		}
385 385
 
386
-		if ( is_bool($archived) === false ) {
386
+		if (is_bool($archived) === false) {
387 387
 			throw new BadRequestException('archived must be a boolean');
388 388
 		}
389 389
 
Please login to merge, or discard this patch.