Passed
Pull Request — master (#814)
by
unknown
02:28
created
lib/Service/LabelService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 		//$this->checkDuplicateTitle($boardId, $title);
96 96
 		$boardLabels = array();
97 97
 		$boardLabels = $this->labelMapper->findAll($boardId);
98
-		foreach($boardLabels as $boardLabel) {
98
+		foreach ($boardLabels as $boardLabel) {
99 99
 			if ($boardLabel->getTitle() === $title) {
100 100
 				throw new BadRequestException('title must be unique');
101 101
 				break;
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 		
170 170
 		$boardLabels = array();
171 171
 		$boardLabels = $this->labelMapper->findAll($label->getBoardId());
172
-		foreach($boardLabels as $boardLabel) {
172
+		foreach ($boardLabels as $boardLabel) {
173 173
 			if ($boardLabel->getId() === $label->getId()) {
174 174
 				continue;
175 175
 			}
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 	 */
197 197
 	private function checkDuplicateTitle($boardId, $title) {
198 198
 		$boardLabels = $this->labelMapper->findAll($boardId);
199
-		foreach($boardLabels as $boardLabel) {
199
+		foreach ($boardLabels as $boardLabel) {
200 200
 			if ($boardLabel->getTitle() === $title) {
201 201
 				throw new BadRequestException('title must be unique');
202 202
 				break;
Please login to merge, or discard this patch.