Passed
Push — master ( 5b0966...10e526 )
by Misbahul D
02:41
created
models/AuthItem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         return [
67 67
             [['ruleName'], 'checkRule'],
68 68
             [['name', 'type'], 'required'],
69
-            [['name'], 'checkUnique', 'when' => function () {
69
+            [['name'], 'checkUnique', 'when' => function() {
70 70
                     return $this->isNewRecord || ($this->_item->name != $this->name);
71 71
                 }],
72 72
             [['type'], 'integer'],
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
                     ->where([$idField => $provider->getModels()])
306 306
                     ->asArray()->all();
307 307
 
308
-            $route = '/' . $ctrl->uniqueId . '/view';
308
+            $route = '/'.$ctrl->uniqueId.'/view';
309 309
             foreach ($users as &$row) {
310 310
                 $row['link'] = Url::to([$route, 'id' => $row['id']]);
311 311
             }
Please login to merge, or discard this patch.
views/item/view.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,14 +83,14 @@
 block discarded – undo
83 83
         <div class="col-sm-1">
84 84
             <br><br>
85 85
             <?=
86
-            Html::a('&gt;&gt;' . $animateIcon, ['assign', 'id' => $model->name], [
86
+            Html::a('&gt;&gt;'.$animateIcon, ['assign', 'id' => $model->name], [
87 87
                 'class' => 'btn btn-success btn-assign',
88 88
                 'data-target' => 'available',
89 89
                 'title' => Yii::t('rbac-admin', 'Assign'),
90 90
             ]);
91 91
             ?><br><br>
92 92
             <?=
93
-            Html::a('&lt;&lt;' . $animateIcon, ['remove', 'id' => $model->name], [
93
+            Html::a('&lt;&lt;'.$animateIcon, ['remove', 'id' => $model->name], [
94 94
                 'class' => 'btn btn-danger btn-assign',
95 95
                 'data-target' => 'assigned',
96 96
                 'title' => Yii::t('rbac-admin', 'Remove'),
Please login to merge, or discard this patch.