Fix code styling issue

This commit is contained in:
Yonas Habteab 2022-04-13 19:47:06 +02:00
parent 372ffa15c0
commit 1429d4aa65
2 changed files with 14 additions and 10 deletions

View File

@ -20,7 +20,7 @@ abstract class BaseSetupDashboard extends BaseDashboardForm
*
* @var array
*/
static protected $moduleDashlets = [];
protected static $moduleDashlets = [];
protected $duplicateCustomDashlet = false;
@ -64,7 +64,10 @@ abstract class BaseSetupDashboard extends BaseDashboardForm
}
if (isset($choosenDashlets[$module]) && ! $this->duplicateCustomDashlet) {
$this->duplicateCustomDashlet = array_key_exists($this->getPopulatedValue('dashlet'), $choosenDashlets[$module]);
$this->duplicateCustomDashlet = array_key_exists(
$this->getPopulatedValue('dashlet'),
$choosenDashlets[$module]
);
}
}
@ -125,7 +128,8 @@ abstract class BaseSetupDashboard extends BaseDashboardForm
foreach ($dashlets as $dashlet) {
$multi = new DashletListMultiSelect($dashlet);
$multi->setCheckBox($this->createElement(
'checkbox', $module . '|' . $dashlet->getName(),
'checkbox',
$module . '|' . $dashlet->getName(),
['class' => 'sr-only']
));
@ -146,7 +150,7 @@ abstract class BaseSetupDashboard extends BaseDashboardForm
$this->addElement('text', 'pane', [
'required' => true,
'label' => t('Dashboard Title'),
'description' => t('Enter a title for the new dashboard you want to add the dashlets to'),
'description' => t('Enter a title for the new dashboard you want to add the dashlets to')
]);
}