Passed
Pull Request — master (#449)
by
unknown
02:48
created
views/layouts/main.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         echo Nav::widget([
39 39
             'options' => ['class' => 'nav navbar-nav navbar-right'],
40 40
             'items' => $this->context->module->navbar,
41
-         ]);
41
+            ]);
42 42
         NavBar::end();
43 43
         ?>
44 44
 
Please login to merge, or discard this patch.
models/searchs/AuthItem.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,13 +64,13 @@
 block discarded – undo
64 64
             $items = $authManager->getRoles();
65 65
         } else {
66 66
             $items = array_filter($authManager->getPermissions(), function($item) use ($advanced){
67
-              $isPermission = $this->type == Item::TYPE_PERMISSION;
68
-              if ($advanced) {
67
+                $isPermission = $this->type == Item::TYPE_PERMISSION;
68
+                if ($advanced) {
69 69
                 return $isPermission xor (strncmp($item->name, '/', 1) === 0 or strncmp($item->name, '@', 1) === 0);
70
-              }
71
-              else {
70
+                }
71
+                else {
72 72
                 return $isPermission xor strncmp($item->name, '/', 1) === 0;
73
-              }
73
+                }
74 74
             });
75 75
         }
76 76
         $this->load($params);
Please login to merge, or discard this patch.