Passed
Push — master ( a9cf05...a95418 )
by Aleksandr
02:23
created
src/CrudController.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
          * @var ActiveRecord $class
67 67
          */
68 68
         $class = $class ?? $this->modelClass;
69
-        $query = $this->getModelQuery($class)->andWhere(['id' => (int)$id]);
69
+        $query = $this->getModelQuery($class)->andWhere([ 'id' => (int)$id ]);
70 70
         $this->findModelCondition($query);
71 71
         if (($model = $query->one()) !== null) {
72 72
             return $model;
@@ -92,17 +92,17 @@  discard block
 block discarded – undo
92 92
                 ]
93 93
             ],
94 94
         ];
95
-        return new ActiveDataProvider(array_merge(['query' => $query], $options));
95
+        return new ActiveDataProvider(array_merge([ 'query' => $query ], $options));
96 96
     }
97 97
 
98
-    public function render($view, $params = [])
98
+    public function render($view, $params = [ ])
99 99
     {
100 100
         if (\Yii::$app->request->isAjax) {
101 101
             return parent::renderAjax($view, $params);
102 102
         }
103 103
         if ($this->breadcrumbsAppdend) {
104 104
             Breadcrumbs::$crumbsNamespace = $this->breadcrumbsNamespace;
105
-            \Yii::$app->view->params[$this->breadcrumbsParam] = Breadcrumbs::formCrumbs($this->action, $params);
105
+            \Yii::$app->view->params[ $this->breadcrumbsParam ] = Breadcrumbs::formCrumbs($this->action, $params);
106 106
         }
107 107
         return parent::render($view, $params);
108 108
     }
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
             'verbs' => [
117 117
                 'class' => VerbFilter::class,
118 118
                 'actions' => [
119
-                    'delete' => ['POST'],
120
-                    'delete-batch' => ['POST']
119
+                    'delete' => [ 'POST' ],
120
+                    'delete-batch' => [ 'POST' ]
121 121
                 ],
122 122
             ],
123 123
         ]);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     public function createRedirect($model)
182 182
     {
183
-        return ['index'];
183
+        return [ 'index' ];
184 184
     }
185 185
 
186 186
     /**
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function updateRedirect($model)
191 191
     {
192
-        return ['index'];
192
+        return [ 'index' ];
193 193
     }
194 194
 
195 195
     /**
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      */
199 199
     public function deleteRedirect($model)
200 200
     {
201
-        return ['index'];
201
+        return [ 'index' ];
202 202
     }
203 203
 
204 204
     /**
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      */
208 208
     public function deleteBatchRedirect()
209 209
     {
210
-        return ['index'];
210
+        return [ 'index' ];
211 211
     }
212 212
 
213 213
     /**
Please login to merge, or discard this patch.