Passed
Pull Request — master (#814)
by Julius
02:21
created
lib/Service/LabelService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.