Code style fixes.

This commit is contained in:
Dmitry Khomutov 2018-03-05 19:32:49 +07:00
commit 50b117455e
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
18 changed files with 133 additions and 130 deletions

View file

@ -19,10 +19,11 @@ class HomeController extends Controller
$this->layout->title = Lang::get('dashboard');
$widgets = [
'left' => [],
'left' => [],
'right' => [],
];
$widgets_config = Config::getInstance()->get('php-censor.dashboard_widgets', [
$widgetsConfig = Config::getInstance()->get('php-censor.dashboard_widgets', [
'all_projects' => [
'side' => 'left',
],
@ -30,7 +31,8 @@ class HomeController extends Controller
'side' => 'right',
],
]);
foreach($widgets_config as $name => $params) {
foreach($widgetsConfig as $name => $params) {
$side = (isset($params['side']) && 'right' === $params['side'])
? 'right'
: 'left';