Fix inspection issues

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-10-10 19:31:31 +02:00
committed by Julius Härtl
parent ff2d96a1fb
commit dc917b1e5d
3 changed files with 13 additions and 5 deletions

View File

@@ -157,10 +157,10 @@ class BoardService {
'F1DB50' => $this->l10n->t('Later')
];
$labels = [];
foreach ($default_labels as $color => $title) {
foreach ($default_labels as $labelColor => $labelTitle) {
$label = new Label();
$label->setColor($color);
$label->setTitle($title);
$label->setColor($labelColor);
$label->setTitle($labelTitle);
$label->setBoardId($new_board->getId());
$labels[] = $this->labelMapper->insert($label);
}