@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | //$this->checkDuplicateTitle($boardId, $title); |
| 96 | 96 | $boardLabels = $this->labelMapper->findAll($boardId); |
| 97 | - foreach($boardLabels as $boardLabel) { |
|
| 97 | + foreach ($boardLabels as $boardLabel) { |
|
| 98 | 98 | if ($boardLabel->getTitle() === $title) { |
| 99 | 99 | throw new BadRequestException('title must be unique'); |
| 100 | 100 | break; |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | //$this->checkDuplicateTitle($label->getBoardId(), $title); |
| 168 | 168 | |
| 169 | 169 | $boardLabels = $this->labelMapper->findAll($label->getBoardId()); |
| 170 | - foreach($boardLabels as $boardLabel) { |
|
| 170 | + foreach ($boardLabels as $boardLabel) { |
|
| 171 | 171 | if ($boardLabel->getId() === $label->getId()) { |
| 172 | 172 | continue; |
| 173 | 173 | } |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | */ |
| 195 | 195 | private function checkDuplicateTitle($boardId, $title) { |
| 196 | 196 | $boardLabels = $this->labelMapper->findAll($boardId); |
| 197 | - foreach($boardLabels as $boardLabel) { |
|
| 197 | + foreach ($boardLabels as $boardLabel) { |
|
| 198 | 198 | if ($boardLabel->getTitle() === $title) { |
| 199 | 199 | throw new BadRequestException('title must be unique'); |
| 200 | 200 | break; |