AppQuery   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A one() 0 3 1
A all() 0 3 1
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