Passed
Pull Request — master (#438)
by
unknown
01:48
created
models/searchs/User.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function rules()
23 23
     {
24 24
         return [
25
-            [['id', 'status',], 'integer'],
25
+            [['id', 'status', ], 'integer'],
26 26
             [['username', 'email'], 'safe'],
27 27
         ];
28 28
     }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function search($params)
38 38
     {
39 39
         /* @var $query \yii\db\ActiveQuery */
40
-        $class = Yii::$app->getUser()->identityClass ? : 'mdm\admin\models\User';
40
+        $class = Yii::$app->getUser()->identityClass ?: 'mdm\admin\models\User';
41 41
         $query = $class::find();
42 42
 
43 43
         $dataProvider = new ActiveDataProvider([
Please login to merge, or discard this patch.