Skip to content

Commit d1fe106

Browse files
committed
FIX: Code Syntax
1 parent a99ef09 commit d1fe106

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

Controller/ColorManagerController.php

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class ColorManagerController extends \Kanboard\Controller\ConfigController
2626
public function show()
2727
{
2828
$this->response->html($this->helper->layout->config('colorManager:config/colors', array(
29-
'title' => t('Settings') .' ⥂ '.t('Color Manager'),
29+
'title' => t('Settings') . ' ⥂ ' . t('Color Manager'),
3030
)));
3131
}
32-
32+
3333
public function add()
3434
{
3535
$errors = [];
@@ -38,10 +38,10 @@ public function add()
3838
$this->response->html($this->helper->layout->config('colorManager:config/add_custom_color', [
3939
'errors' => $errors,
4040
'values' => $values,
41-
'title' => t('Custom Colors').' > '.t('Add Color'),
41+
'title' => t('Custom Colors') . ' > ' . t('Add Color'),
4242
]));
4343
}
44-
44+
4545
public function remove()
4646
{
4747
$key = $this->request->getStringParam('key');
@@ -61,13 +61,12 @@ public function remove()
6161
$this->configModel->save(['kbcolour_ids' => $custom_colors_string]);
6262

6363
$this->configModel->remove('kbcolour_name_'.$key);
64-
$this->configModel->remove('kbcolour_backgroundcolor_'.$key);
65-
$this->configModel->remove('kbcolour_bordercolor_'.$key);
64+
$this->configModel->remove('kbcolour_backgroundcolor_' . $key);
65+
$this->configModel->remove('kbcolour_bordercolor_' . $key);
6666

6767
$this->response->redirect($this->helper->url->to('ColorManagerController', 'show', ['plugin' => 'ColorManager', 'url' => t('color-manager')]));
68-
6968
}
70-
69+
7170
public function save()
7271
{
7372
$errors = [];
@@ -88,12 +87,11 @@ public function save()
8887
if (is_array($custom_colors_array)) { $custom_colors_string = implode(',', $custom_colors_array); } else { $custom_colors_string = $color_id; }
8988
$this->configModel->save(['kbcolour_ids' => $custom_colors_string]);
9089
$this->configModel->save(['kbcolour_name_'.$color_id => $values['color_name']]);
91-
$this->configModel->save(['kbcolour_backgroundcolor_'.$color_id => $values['background_color']]);
92-
$this->configModel->save(['kbcolour_bordercolor_'.$color_id => $values['border_color']]);
90+
$this->configModel->save(['kbcolour_backgroundcolor_' . $color_id => $values['background_color']]);
91+
$this->configModel->save(['kbcolour_bordercolor_' . $color_id => $values['border_color']]);
9392
}
9493
}
95-
94+
9695
$this->response->redirect($this->helper->url->to('ColorManagerController', 'show', ['plugin' => 'ColorManager', 'url' => t('color-manager')]));
97-
9896
}
9997
}

Helper/CustomColorHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ class CustomColorHelper extends Base
2121
*/
2222
public function colorCssExt()
2323
{
24-
return '<style>'.$this->colorModelExt->getCssExt().'</style>';
24+
return '<style>' . $this->colorModelExt->getCssExt() . '</style>';
2525
}
2626
}

Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function initialize()
6161

6262
public function onStartup()
6363
{
64-
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
64+
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__ . '/Locale');
6565
}
6666

6767
public function getClasses()

0 commit comments

Comments
 (0)