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.
components/AccessControl.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
             $loginUrl = null;
106 106
             if(is_array($user->loginUrl) && isset($user->loginUrl[0])){
107 107
                 $loginUrl = $user->loginUrl[0];
108
-                }else if(is_string($user->loginUrl)){
108
+                } else if(is_string($user->loginUrl)){
109 109
                     $loginUrl = $user->loginUrl;
110 110
                 }
111 111
                 if(!is_null($loginUrl) && trim($loginUrl,'/') === $uniqueId)
Please login to merge, or discard this patch.
models/searchs/AuthItem.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
               $isPermission = $this->type == Item::TYPE_PERMISSION;
68 68
               if ($advanced) {
69 69
                 return $isPermission xor (strncmp($item->name, '/', 1) === 0 or strncmp($item->name, '@', 1) === 0);
70
-              }
71
-              else {
70
+              } else {
72 71
                 return $isPermission xor strncmp($item->name, '/', 1) === 0;
73 72
               }
74 73
             });
Please login to merge, or discard this patch.