Completed
Push — master ( e5009d...834394 )
by Igor
02:30
created
widgets/Alert.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,17 +53,17 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
views/layouts/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.