@@ -53,17 +53,17 @@ |
||
53 | 53 | |
54 | 54 | $session = \Yii::$app->getSession(); |
55 | 55 | $flashes = $session->getAllFlashes(); |
56 | - $appendCss = isset($this->options['class']) ? ' ' . $this->options['class'] : ''; |
|
56 | + $appendCss = isset($this->options['class']) ? ' '.$this->options['class'] : ''; |
|
57 | 57 | |
58 | 58 | foreach ($flashes as $type => $data) { |
59 | 59 | if (isset($this->alertTypes[$type])) { |
60 | 60 | $data = (array) $data; |
61 | 61 | foreach ($data as $message) { |
62 | 62 | /* initialize css class for each alert box */ |
63 | - $this->options['class'] = $this->alertTypes[$type] . $appendCss; |
|
63 | + $this->options['class'] = $this->alertTypes[$type].$appendCss; |
|
64 | 64 | |
65 | 65 | /* assign unique id to each alert box */ |
66 | - $this->options['id'] = $this->getId() . '-' . $type; |
|
66 | + $this->options['id'] = $this->getId().'-'.$type; |
|
67 | 67 | |
68 | 68 | echo \yii\bootstrap\Alert::widget([ |
69 | 69 | 'body' => $message, |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $menuItems[] = '<li>' |
53 | 53 | . Html::beginForm(['/site/logout'], 'post') |
54 | 54 | . Html::submitButton( |
55 | - 'Logout (' . Yii::$app->user->identity->username . ')', |
|
55 | + 'Logout ('.Yii::$app->user->identity->username.')', |
|
56 | 56 | ['class' => 'btn btn-link'] |
57 | 57 | ) |
58 | 58 | . Html::endForm() |