@@ -7,7 +7,7 @@ |
||
| 7 | 7 | |
| 8 | 8 | $context = $this->context; |
| 9 | 9 | $labels = $this->context->getLabels(); |
| 10 | -$this->title = Yii::t('yii2mod.rbac', 'Update ' . $labels['Item'] . ' : {0}', $model->name); |
|
| 10 | +$this->title = Yii::t('yii2mod.rbac', 'Update '.$labels['Item'].' : {0}', $model->name); |
|
| 11 | 11 | $this->params['breadcrumbs'][] = ['label' => Yii::t('yii2mod.rbac', $labels['Items']), 'url' => ['index']]; |
| 12 | 12 | $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->name]]; |
| 13 | 13 | $this->params['breadcrumbs'][] = Yii::t('yii2mod.rbac', 'Update'); |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | /* @var $model \yii2mod\rbac\models\AuthItemModel */ |
| 7 | 7 | |
| 8 | 8 | $labels = $this->context->getLabels(); |
| 9 | -$this->title = Yii::t('yii2mod.rbac', 'Create ' . $labels['Item']); |
|
| 9 | +$this->title = Yii::t('yii2mod.rbac', 'Create '.$labels['Item']); |
|
| 10 | 10 | $this->params['breadcrumbs'][] = ['label' => Yii::t('yii2mod.rbac', $labels['Items']), 'url' => ['index']]; |
| 11 | 11 | $this->params['breadcrumbs'][] = $this->title; |
| 12 | 12 | $this->render('/layouts/_sidebar'); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | <div class="item-index"> |
| 18 | 18 | <h1><?php echo Html::encode($this->title); ?></h1> |
| 19 | 19 | <p> |
| 20 | - <?php echo Html::a(Yii::t('yii2mod.rbac', 'Create ' . $labels['Item']), ['create'], ['class' => 'btn btn-success']); ?> |
|
| 20 | + <?php echo Html::a(Yii::t('yii2mod.rbac', 'Create '.$labels['Item']), ['create'], ['class' => 'btn btn-success']); ?> |
|
| 21 | 21 | </p> |
| 22 | 22 | <?php Pjax::begin(['timeout' => 5000, 'enablePushState' => false]); ?> |
| 23 | 23 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | /* @var $model \yii2mod\rbac\models\AuthItemModel */ |
| 12 | 12 | |
| 13 | 13 | $labels = $this->context->getLabels(); |
| 14 | -$this->title = Yii::t('yii2mod.rbac', $labels['Item'] . ' : {0}', $model->name); |
|
| 14 | +$this->title = Yii::t('yii2mod.rbac', $labels['Item'].' : {0}', $model->name); |
|
| 15 | 15 | $this->params['breadcrumbs'][] = ['label' => Yii::t('yii2mod.rbac', $labels['Items']), 'url' => ['index']]; |
| 16 | 16 | $this->params['breadcrumbs'][] = $model->name; |
| 17 | 17 | $this->render('/layouts/_sidebar'); |
@@ -169,7 +169,7 @@ |
||
| 169 | 169 | /** |
| 170 | 170 | * @return null|Rule |
| 171 | 171 | */ |
| 172 | - public function getItem(): ?Rule |
|
| 172 | + public function getItem(): ? Rule |
|
| 173 | 173 | { |
| 174 | 174 | return $this->_item; |
| 175 | 175 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | if ($this->type == Item::TYPE_ROLE) { |
| 81 | 81 | $items = $authManager->getRoles(); |
| 82 | 82 | } else { |
| 83 | - $items = array_filter($authManager->getPermissions(), function ($item) { |
|
| 83 | + $items = array_filter($authManager->getPermissions(), function($item) { |
|
| 84 | 84 | return strpos($item->name, '/') !== 0; |
| 85 | 85 | }); |
| 86 | 86 | } |