Completed
Push — master ( 693c1c...5eec01 )
by Igor
03:36 queued 02:01
created
views/item/update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
views/item/create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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');
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
@@ -17,7 +17,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
views/item/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
models/BizRuleModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
models/search/AuthItemSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.