Passed
Branch master (847752)
by Misbahul D
05:16
created
components/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
             }
221 221
             return implode(' ', $result);
222 222
         }
223
-        return preg_replace_callback('/\\{([\w\-\/]+)\\}/', function ($matches) use ($user) {
223
+        return preg_replace_callback('/\\{([\w\-\/]+)\\}/', function($matches) use ($user) {
224 224
             return static::checkRoute($matches[1], [], $user) ? "{{$matches[1]}}" : '';
225 225
         }, $buttons);
226 226
     }
Please login to merge, or discard this patch.
models/Assignment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         foreach ($items as $name) {
46 46
             try {
47 47
                 $item = $manager->getRole($name);
48
-                $item = $item ? : $manager->getPermission($name);
48
+                $item = $item ?: $manager->getPermission($name);
49 49
                 $manager->assign($item, $this->id);
50 50
                 $success++;
51 51
             } catch (\Exception $exc) {
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         foreach ($items as $name) {
69 69
             try {
70 70
                 $item = $manager->getRole($name);
71
-                $item = $item ? : $manager->getPermission($name);
71
+                $item = $item ?: $manager->getPermission($name);
72 72
                 $manager->revoke($item, $this->id);
73 73
                 $success++;
74 74
             } catch (\Exception $exc) {
Please login to merge, or discard this patch.
models/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         }
118 118
         $expire = Yii::$app->params['user.passwordResetTokenExpire'];
119 119
         $parts = explode('_', $token);
120
-        $timestamp = (int) end($parts);
120
+        $timestamp = (int)end($parts);
121 121
         return $timestamp + $expire >= time();
122 122
     }
123 123
 
Please login to merge, or discard this patch.
views/rule/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
                 'attribute' => 'name',
31 31
                 'label' => Yii::t('rbac-admin', 'Name'),
32 32
             ],
33
-            ['class' => 'yii\grid\ActionColumn',],
33
+            ['class' => 'yii\grid\ActionColumn', ],
34 34
         ],
35 35
     ]);
36 36
     ?>
Please login to merge, or discard this patch.
views/item/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
                 'attribute' => 'description',
42 42
                 'label' => Yii::t('rbac-admin', 'Description'),
43 43
             ],
44
-            ['class' => 'yii\grid\ActionColumn',],
44
+            ['class' => 'yii\grid\ActionColumn', ],
45 45
         ],
46 46
     ])
47 47
     ?>
Please login to merge, or discard this patch.
views/layouts/main.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 /* @var $content string */
9 9
 
10 10
 list(,$url) = Yii::$app->assetManager->publish('@mdm/admin/assets');
11
-$this->registerCssFile($url.'/main.css');
11
+$this->registerCssFile($url . '/main.css');
12 12
 ?>
13 13
 <?php $this->beginPage() ?>
14 14
 <!DOCTYPE html>
Please login to merge, or discard this patch.