@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | $entities = []; |
| 82 | 82 | $cursor = $qb->execute(); |
| 83 | - while($row = $cursor->fetch()){ |
|
| 83 | + while ($row = $cursor->fetch()) { |
|
| 84 | 84 | $entities[] = $this->mapRowToEntity($row); |
| 85 | 85 | } |
| 86 | 86 | $cursor->closeCursor(); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | $entities = []; |
| 107 | 107 | $cursor = $qb->execute(); |
| 108 | - while($row = $cursor->fetch()){ |
|
| 108 | + while ($row = $cursor->fetch()) { |
|
| 109 | 109 | $entities[] = $this->mapRowToEntity($row); |
| 110 | 110 | } |
| 111 | 111 | $cursor->closeCursor(); |
@@ -99,16 +99,16 @@ |
||
| 99 | 99 | $data = []; |
| 100 | 100 | foreach ($boards as $board) { |
| 101 | 101 | $fullBoard = $this->boardMapper->find($board->getId(), true, true); |
| 102 | - $data[$board->getId()] = (array)$fullBoard->jsonSerialize(); |
|
| 102 | + $data[$board->getId()] = (array) $fullBoard->jsonSerialize(); |
|
| 103 | 103 | $stacks = $this->stackMapper->findAll($board->getId()); |
| 104 | 104 | foreach ($stacks as $stack) { |
| 105 | - $data[$board->getId()]['stacks'][] = (array)$stack->jsonSerialize(); |
|
| 105 | + $data[$board->getId()]['stacks'][] = (array) $stack->jsonSerialize(); |
|
| 106 | 106 | $cards = $this->cardMapper->findAllByStack($stack->getId()); |
| 107 | 107 | foreach ($cards as $card) { |
| 108 | 108 | $fullCard = $this->cardMapper->find($card->getId()); |
| 109 | 109 | $assignedUsers = $this->assignedUsersMapper->find($card->getId()); |
| 110 | 110 | $fullCard->setAssignedUsers($assignedUsers); |
| 111 | - $data[$board->getId()]['stacks'][$stack->getId()]['cards'][] = (array)$fullCard->jsonSerialize(); |
|
| 111 | + $data[$board->getId()]['stacks'][$stack->getId()]['cards'][] = (array) $fullCard->jsonSerialize(); |
|
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * @throws NotPermittedException |
| 86 | 86 | */ |
| 87 | 87 | private function getFolder(Attachment $attachment) { |
| 88 | - $folderName = 'file-card-' . (int)$attachment->getCardId(); |
|
| 88 | + $folderName = 'file-card-' . (int) $attachment->getCardId(); |
|
| 89 | 89 | try { |
| 90 | 90 | $folder = $this->appData->getFolder($folderName); |
| 91 | 91 | } catch (NotFoundException $e) { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * @return array |
| 117 | 117 | * @throws StatusException |
| 118 | 118 | */ |
| 119 | - private function getUploadedFile () { |
|
| 119 | + private function getUploadedFile() { |
|
| 120 | 120 | $file = $this->request->getUploadedFile('file'); |
| 121 | 121 | $error = null; |
| 122 | 122 | $phpFileUploadErrors = [ |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | * @throws \Exception |
| 191 | 191 | */ |
| 192 | 192 | private function getFileFromRootFolder(Attachment $attachment) { |
| 193 | - $folderName = 'file-card-' . (int)$attachment->getCardId(); |
|
| 193 | + $folderName = 'file-card-' . (int) $attachment->getCardId(); |
|
| 194 | 194 | $instanceId = $this->config->getSystemValue('instanceid', null); |
| 195 | 195 | if ($instanceId === null) { |
| 196 | 196 | throw new \Exception('no instance id!'); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | public function index() { |
| 60 | 60 | $params = [ |
| 61 | 61 | 'user' => $this->userId, |
| 62 | - 'maxUploadSize' => (int)\OCP\Util::uploadLimit(), |
|
| 62 | + 'maxUploadSize' => (int) \OCP\Util::uploadLimit(), |
|
| 63 | 63 | ]; |
| 64 | 64 | |
| 65 | 65 | if ($this->defaultBoardService->checkFirstRun($this->userId, $this->appName)) { |