Passed
Push — master ( 479844...e2e2d4 )
by WILMER
02:54
created
views/backend/layouts/_header.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,8 @@  discard block
 block discarded – undo
36 36
                 <!-- User Account: style can be found in dropdown.less -->
37 37
                 <?= $this->render('_menuser') ?>
38 38
             <?= Html::endTag('div') ?>
39
-            <?php else: ?>
39
+            <?php else {
40
+    : ?>
40 41
                 <?= Html::beginTag('div', ['class' => 'navbar-header']) ?>
41 42
                     <!-- Add the class icon to your logo image or logo icon to add the margining -->
42 43
                     <?= Html::beginTag('div', ['class' => 'navbar-brand']) ?>
@@ -48,6 +49,8 @@  discard block
 block discarded – undo
48 49
                 <?= Html::beginTag('div', ['class' => 'collapse navbar-collapse', 'id' => 'navbar-collapse']) ?>
49 50
                     <?= $this->render('_menu') ?>
50 51
                 <?= Html::endTag('div') ?>
51
-        <?php endif; ?>
52
+        <?php endif;
53
+}
54
+?>
52 55
     <?= Html::endTag('nav') ?>
53 56
 <?= Html::endTag('header') ?>
54 57
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             <!-- Sidebar toggle button-->
31 31
             <?= Html::a(Html::tag('span', 'Toggle navigation', ['class' => 'sr-only']) .
32 32
                 Html::tag('span', '', ['class' => 'icon-bar']) . Html::tag('span', '', ['class' => 'icon-bar'])
33
-                ,'#', ['class' => 'sidebar-toggle', 'data-toggle'=>'offcanvas','role'=>'button'])
33
+                ,'#', ['class' => 'sidebar-toggle', 'data-toggle'=>'offcanvas', 'role'=>'button'])
34 34
             ?>
35 35
             <?= Html::beginTag('div', ['class' => 'navbar-custom-menu']) ?>
36 36
                 <!-- User Account: style can be found in dropdown.less -->
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                     <?= Html::beginTag('div', ['class' => 'navbar-brand']) ?>
43 43
                         <?= Html::a(\yii::$app->params['WebName'], \Yii::$app->homeUrl, ['class' => 'panel-title-custom']) ?>
44 44
                     <?= Html::endTag('div') ?>
45
-                    <?= Html::button(html::tag('i', '',['class' => 'fa fa-bars']), ['class' => 'navbar-toggle collapsed', 'type' => 'button',
45
+                    <?= Html::button(html::tag('i', '', ['class' => 'fa fa-bars']), ['class' => 'navbar-toggle collapsed', 'type' => 'button',
46 46
                         'data-toggle' => 'collapse', 'data-target' => '#navbar-collapse']) ?>
47 47
                 <?= Html::endTag('div') ?>
48 48
                 <?= Html::beginTag('div', ['class' => 'collapse navbar-collapse', 'id' => 'navbar-collapse']) ?>
Please login to merge, or discard this patch.
views/backend/layouts/main.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             <?= Html::tag('meta', '', ['charset' => Yii::$app->charset]) ?>
37 37
             <?= Html::tag('meta', '', ['content' => 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no', 'name' => 'viewport']) ?>
38 38
             <?= Html::csrfMetaTags() ?>
39
-            <?= Html::tag('title', Html::encode(Yii::t('adminlte',$this->title))) ?>
39
+            <?= Html::tag('title', Html::encode(Yii::t('adminlte', $this->title))) ?>
40 40
             <?php $this->head() ?>
41 41
             <!-- Theme style -->
42 42
             <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
             <![endif]-->
48 48
         <?= Html::endTag('head') ?>
49 49
         <?php $this->beginBody() ?>
50
-            <?= Html::begintag('body', ['class' => (!Yii::$app->user->isGuest) ? 'hold-transition ' .\yii::$app->params['AdminLTESkinBackend'
51
-                ] . ' sidebar-collapse sidebar-mini' : 'hold-transition layout-top-nav '. \yii::$app->params['AdminLTESkinBackend']]) ?>
50
+            <?= Html::begintag('body', ['class' => (!Yii::$app->user->isGuest) ? 'hold-transition ' . \yii::$app->params['AdminLTESkinBackend'
51
+                ] . ' sidebar-collapse sidebar-mini' : 'hold-transition layout-top-nav ' . \yii::$app->params['AdminLTESkinBackend']]) ?>
52 52
                 <?= Html::beginTag('div', ['class' => 'wrapper']) ?>
53 53
                     <!-- header logo: style can be found in header.less -->
54 54
                     <?= $this->render('_header') ?>
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                             <!-- /.content -->
85 85
                         <?= Html::endTag('div') ?>
86 86
                         <!-- /.right-side -->
87
-                        <?php else: ?>
87
+                        <?php else : ?>
88 88
                             <!-- ./Left side column. -->
89 89
                             <!-- Right side column. Contains the navbar and content of the page -->
90 90
                             <!-- Navigation -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,8 @@  discard block
 block discarded – undo
85 85
                             <!-- /.content -->
86 86
                         <?= Html::endTag('div') ?>
87 87
                         <!-- /.right-side -->
88
-                        <?php else: ?>
88
+                        <?php else {
89
+    : ?>
89 90
                             <!-- ./Left side column. -->
90 91
                             <!-- Right side column. Contains the navbar and content of the page -->
91 92
                             <!-- Navigation -->
@@ -105,7 +106,9 @@  discard block
 block discarded – undo
105 106
                                     <?= Html::endTag('div') ?>
106 107
                                 <?= Html::endTag('section') ?>
107 108
                             <?= Html::endTag('div') ?>
108
-                    <?php endif; ?>
109
+                    <?php endif;
110
+}
111
+?>
109 112
                     <!-- ./Right side column. -->
110 113
                     <?= $this->render('_footer') ?>
111 114
                 <?= Html::endTag('div') ?>
Please login to merge, or discard this patch.
views/backend/layouts/_menu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@
 block discarded – undo
21 21
 $user = \yii::$app->user->identity;
22 22
 
23 23
 $menuItems = [
24
-    ['label' => Html::tag('i', '', ['class' => 'fa fa-home fa-lg']) . ' ' .  Yii::t('adminlte', 'Home'), 'url' => ['/site/index']],
24
+    ['label' => Html::tag('i', '', ['class' => 'fa fa-home fa-lg']) . ' ' . Yii::t('adminlte', 'Home'), 'url' => ['/site/index']],
25 25
 ];
26 26
 
27 27
 if (Yii::$app->user->isGuest) {
28 28
     $menuItems[] = ['label' => Html::tag('i', '', ['class' => 'fa fa-sign-in fa-lg']) . ' ' . Yii::t('adminlte', 'Login'), 'url' => ['/site/login']];
29 29
 } else {
30 30
     $baseimg = Yii::$app->session->get('user.avatar60');
31
-    $menuItems[] = ['label' => $user->username . ' ' .  Html::img($baseimg, $options = ['class'=>'img-rounded'], ['aria-expanded'=>'false']),
31
+    $menuItems[] = ['label' => $user->username . ' ' . Html::img($baseimg, $options = ['class'=>'img-rounded'], ['aria-expanded'=>'false']),
32 32
         'items' => [
33 33
             ['label' => Html::tag('i', '', ['class' => 'fa fa-user fa-lg']) . ' ' . Yii::t('adminlte', 'User Profile'), 'url' => ['/user/settings/profile']],
34
-            ['label' => Html::tag('i', '', ['class' => 'fa fa-sign-out fa-lg']) . ' ' . Yii::t('adminlte', 'Logout'), 'url' => ['/site/logout'],'linkOptions' => ['data-method' => 'post']],
34
+            ['label' => Html::tag('i', '', ['class' => 'fa fa-sign-out fa-lg']) . ' ' . Yii::t('adminlte', 'Logout'), 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']],
35 35
         ],
36 36
     ];
37 37
 }
Please login to merge, or discard this patch.
views/backend/site/login.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             <?= html::tag('h3', Html::encode(Yii::t('adminlte', $this->title)), ['class' => 'panel-title-custom']) ?>
34 34
         <?= Html::endTag('div') ?>
35 35
         <?= Html::beginTag('div', ['class' => 'body']) ?>
36
-            <?= Html::tag('p', Html::encode(Yii::t('adminlte','Please fill out the following fields.')), ['class' => 'login-box-msg']) ?>
36
+            <?= Html::tag('p', Html::encode(Yii::t('adminlte', 'Please fill out the following fields.')), ['class' => 'login-box-msg']) ?>
37 37
 
38 38
             <?php $form = ActiveForm::begin([
39 39
                 'id' => 'form-site-login-backend',
Please login to merge, or discard this patch.
views/frontend/layouts/_header.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             <!-- Sidebar toggle button-->
31 31
             <?= Html::a(Html::tag('span', 'Toggle navigation', ['class' => 'sr-only']) .
32 32
                 Html::tag('span', '', ['class' => 'icon-bar']) . Html::tag('span', '', ['class' => 'icon-bar'])
33
-                ,'#', ['class' => 'sidebar-toggle', 'data-toggle'=>'offcanvas','role'=>'button'])
33
+                ,'#', ['class' => 'sidebar-toggle', 'data-toggle'=>'offcanvas', 'role'=>'button'])
34 34
             ?>
35 35
             <?= Html::beginTag('div', ['class' => 'navbar-custom-menu']) ?>
36 36
                 <!-- User Account: style can be found in dropdown.less -->
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                     <?= Html::beginTag('div', ['class' => 'navbar-brand']) ?>
43 43
                         <?= Html::a(\yii::$app->params['WebName'], \Yii::$app->homeUrl, ['class' => 'panel-title-custom']) ?>
44 44
                     <?= Html::endTag('div') ?>
45
-                    <?= Html::button(html::tag('i', '',['class' => 'fa fa-bars']), ['class' => 'navbar-toggle collapsed', 'type' => 'button',
45
+                    <?= Html::button(html::tag('i', '', ['class' => 'fa fa-bars']), ['class' => 'navbar-toggle collapsed', 'type' => 'button',
46 46
                         'data-toggle' => 'collapse', 'data-target' => '#navbar-collapse']) ?>
47 47
                 <?= Html::endTag('div') ?>
48 48
                 <?= Html::beginTag('div', ['class' => 'collapse navbar-collapse', 'id' => 'navbar-collapse']) ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,8 @@  discard block
 block discarded – undo
36 36
                 <!-- User Account: style can be found in dropdown.less -->
37 37
                 <?= $this->render('_menuser') ?>
38 38
             <?= Html::endTag('div') ?>
39
-            <?php else: ?>
39
+            <?php else {
40
+    : ?>
40 41
                 <?= Html::beginTag('div', ['class' => 'navbar-header']) ?>
41 42
                     <!-- Add the class icon to your logo image or logo icon to add the margining -->
42 43
                     <?= Html::beginTag('div', ['class' => 'navbar-brand']) ?>
@@ -48,6 +49,8 @@  discard block
 block discarded – undo
48 49
                 <?= Html::beginTag('div', ['class' => 'collapse navbar-collapse', 'id' => 'navbar-collapse']) ?>
49 50
                     <?= $this->render('_menu') ?>
50 51
                 <?= Html::endTag('div') ?>
51
-        <?php endif; ?>
52
+        <?php endif;
53
+}
54
+?>
52 55
     <?= Html::endTag('nav') ?>
53 56
 <?= Html::endTag('header') ?>
Please login to merge, or discard this patch.
views/frontend/layouts/main.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             <?= Html::tag('meta', '', ['charset' => Yii::$app->charset]) ?>
38 38
             <?= Html::tag('meta', '', ['content' => 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no', 'name' => 'viewport']) ?>
39 39
             <?= Html::csrfMetaTags() ?>
40
-            <?= Html::tag('title', Html::encode(Yii::t('adminlte',$this->title))) ?>
40
+            <?= Html::tag('title', Html::encode(Yii::t('adminlte', $this->title))) ?>
41 41
             <!-- Theme style -->
42 42
             <?php $this->head() ?>
43 43
             <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
             <![endif]-->
49 49
         <?= Html::endTag('head') ?>
50 50
         <?php $this->beginBody() ?>
51
-            <?= Html::begintag('body', ['class' => (!Yii::$app->user->isGuest) ? 'hold-transition ' .\yii::$app->params['AdminLTESkinFrontend'
52
-                ] . ' sidebar-collapse sidebar-mini' : 'hold-transition layout-top-nav '. \yii::$app->params['AdminLTESkinFrontend']]) ?>
51
+            <?= Html::begintag('body', ['class' => (!Yii::$app->user->isGuest) ? 'hold-transition ' . \yii::$app->params['AdminLTESkinFrontend'
52
+                ] . ' sidebar-collapse sidebar-mini' : 'hold-transition layout-top-nav ' . \yii::$app->params['AdminLTESkinFrontend']]) ?>
53 53
                 <?= Html::beginTag('div', ['class' => 'wrapper']) ?>
54 54
                     <!-- header logo: style can be found in header.less -->
55 55
                     <?= $this->render('_header') ?>
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                             <!-- /.content -->
86 86
                         <?= Html::endTag('div') ?>
87 87
                         <!-- /.right-side -->
88
-                        <?php else: ?>
88
+                        <?php else : ?>
89 89
                             <!-- ./Left side column. -->
90 90
                             <!-- Right side column. Contains the navbar and content of the page -->
91 91
                             <!-- Navigation -->
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,8 @@  discard block
 block discarded – undo
85 85
                             <!-- /.content -->
86 86
                         <?= Html::endTag('div') ?>
87 87
                         <!-- /.right-side -->
88
-                        <?php else: ?>
88
+                        <?php else {
89
+    : ?>
89 90
                             <!-- ./Left side column. -->
90 91
                             <!-- Right side column. Contains the navbar and content of the page -->
91 92
                             <!-- Navigation -->
@@ -105,7 +106,9 @@  discard block
 block discarded – undo
105 106
                                     <?= Html::endTag('div') ?>
106 107
                                 <?= Html::endTag('section') ?>
107 108
                             <?= Html::endTag('div') ?>
108
-                    <?php endif; ?>
109
+                    <?php endif;
110
+}
111
+?>
109 112
                     <!-- ./Right side column. -->
110 113
                     <?= $this->render('_footer') ?>
111 114
                 <?= Html::endTag('div') ?>
Please login to merge, or discard this patch.
views/frontend/layouts/_menu.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
 $user = \yii::$app->user->identity;
22 22
 
23 23
 $menuItems = [
24
-    ['label' => Html::tag('i', '', ['class' => 'fa fa-home fa-lg']) . ' ' .  Yii::t('adminlte', 'Home'), 'url' => ['/site/index']],
25
-    ['label' => Html::tag('i', '', ['class' => 'fa fa-spinner fa-lg fa-spin']) . ' ' .  Yii::t('adminlte', 'About Us'), 'url' => ['/site/about']],
24
+    ['label' => Html::tag('i', '', ['class' => 'fa fa-home fa-lg']) . ' ' . Yii::t('adminlte', 'Home'), 'url' => ['/site/index']],
25
+    ['label' => Html::tag('i', '', ['class' => 'fa fa-spinner fa-lg fa-spin']) . ' ' . Yii::t('adminlte', 'About Us'), 'url' => ['/site/about']],
26 26
     ['label' => Html::tag('i', '', ['class' => 'fa fa-envelope fa-lg']) . ' ' . Yii::t('adminlte', 'Contact'), 'url' => ['/site/contact']],
27 27
 ];
28 28
 
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
     $menuItems[] = ['label' => Html::tag('i', '', ['class' => 'fa fa-sign-in fa-lg']) . ' ' . Yii::t('adminlte', 'Login'), 'url' => ['/site/login']];
32 32
 } else {
33 33
     $baseimg = Yii::$app->session->get('user.avatar60');
34
-    $menuItems[] = ['label' => $user->username . ' ' .  Html::img($baseimg, $options = ['class'=>'img-rounded'], ['aria-expanded'=>'false']),
34
+    $menuItems[] = ['label' => $user->username . ' ' . Html::img($baseimg, $options = ['class'=>'img-rounded'], ['aria-expanded'=>'false']),
35 35
         'items' => [
36 36
             ['label' => Html::tag('i', '', ['class' => 'fa fa-user fa-lg']) . ' ' . Yii::t('adminlte', 'User Profile'), 'url' => ['/user/settings/profile']],
37
-            ['label' => Html::tag('i', '', ['class' => 'fa fa-sign-out fa-lg']) . ' ' . Yii::t('adminlte', 'Logout'), 'url' => ['/site/logout'],'linkOptions' => ['data-method' => 'post']],
37
+            ['label' => Html::tag('i', '', ['class' => 'fa fa-sign-out fa-lg']) . ' ' . Yii::t('adminlte', 'Logout'), 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']],
38 38
         ],
39 39
     ];
40 40
 }
Please login to merge, or discard this patch.
views/frontend/layouts/_menuser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 use yii\helpers\Html;
19 19
 use yii\bootstrap\Nav;
20 20
 
21
-$menuUser[] = ['label' => html::tag('i', '',['class' => 'glyphicon glyphicon-user']) . \yii::$app->user->identity->username,
21
+$menuUser[] = ['label' => html::tag('i', '', ['class' => 'glyphicon glyphicon-user']) . \yii::$app->user->identity->username,
22 22
     'options'=> ['class'=>'dropdown user user-menu'],
23 23
     'items' => [
24 24
         Html::tag('li',
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
             Html::tag('p',
27 27
                 \yii::$app->user->identity->username .
28 28
                 Html::tag('small', '&nbsp' . Yii::t('adminlte', 'Member Since:') . '&nbsp' . Yii::t('adminlte', '{0, date, MMMM dd, YYYY HH:mm}', \yii::$app->user->identity->created_at))
29
-            ),['class' => 'user-header bg-light']),
29
+            ), ['class' => 'user-header bg-light']),
30 30
         Html::tag('li',
31 31
             Html::tag('div',
32
-                Html::a(Yii::t('adminlte', 'Logout'),['/site/logout'], ['class' => 'btn bg-black', 'data-method'=>'post'])
32
+                Html::a(Yii::t('adminlte', 'Logout'), ['/site/logout'], ['class' => 'btn bg-black', 'data-method'=>'post'])
33 33
                 ,['class' => 'pull-right'])
34 34
             ,['class' => 'user-footer'])
35 35
     ],
Please login to merge, or discard this patch.
views/frontend/layouts/_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             <?= Html::endTag('div') ?>
30 30
             <?= AdminLteHelper::powered() ?>
31 31
             <?= Html::beginTag('div', ['class' => 'pull-right-custom']) ?>
32
-                <?= Html::tag('span', Yii::t('adminlte', 'Social Networks:'), ['class' => 'hidden-xs','style' => 'padding-right: 5px']) ?>
32
+                <?= Html::tag('span', Yii::t('adminlte', 'Social Networks:'), ['class' => 'hidden-xs', 'style' => 'padding-right: 5px']) ?>
33 33
                 <?= Html::a('', \yii::$app->params['Facebook_Account'], ['class' => 'iconos ion-social-facebook fa-2x', 'target' => '_blank']) ?>
34 34
                 <?= Html::a('', \yii::$app->params['Twitter_Account'], ['class' => 'iconos ion-social-twitter fa-2x', 'target' => '_blank']) ?>
35 35
                 <?= Html::a('', \yii::$app->params['Google_Account'], ['class' => 'iconos ion-social-googleplus fa-2x', 'target' => '_blank']) ?>
Please login to merge, or discard this patch.