@@ -66,7 +66,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -83,14 +83,14 @@ |
||
| 83 | 83 | <div class="col-sm-1"> |
| 84 | 84 | <br><br> |
| 85 | 85 | <?= |
| 86 | - Html::a('>>' . $animateIcon, ['assign', 'id' => $model->name], [ |
|
| 86 | + Html::a('>>'.$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('<<' . $animateIcon, ['remove', 'id' => $model->name], [ |
|
| 93 | + Html::a('<<'.$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'), |