Test Failed
Push — master ( 76ecd9...fba2f0 )
by graychen
01:19
created

AppQuery::all()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace graychen\yii2\basic\auth\models;
4
5
/**
6
 * This is the ActiveQuery class for [[App]].
7
 *
8
 * @see App
9
 */
10
class AppQuery extends \yii\db\ActiveQuery
11
{
12
    /**
13
     * @inheritdoc
14
     * @return App[]|array
15
     */
16
    public function all($db = null)
17
    {
18
        return parent::all($db);
19
    }
20
21
    /**
22
     * @inheritdoc
23
     * @return App|array|null
24
     */
25
    public function one($db = null)
26
    {
27
        return parent::one($db);
0 ignored issues
show
Bug Best Practice introduced by
The expression return parent::one($db) also could return the type yii\db\ActiveRecord which is incompatible with the return type mandated by yii\db\QueryInterface::one() of boolean|array.
Loading history...
28
    }
29
}
30