OauthClientsQuery   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A all() 0 4 1
A one() 0 4 1
1
<?php
2
3
namespace zacksleo\yii2\oauth2\common\queries;
4
5
/**
6
 * This is the ActiveQuery class for [[\app\models\OauthClients]].
7
 *
8
 * @see zacksleo\yii2\oauth2\common\models\OauthClients
9
 */
10
class OauthClientsQuery extends \yii\db\ActiveQuery
11
{
12
    /*public function active()
13
    {
14
        return $this->andWhere('[[status]]=1');
15
    }*/
16
17
    /**
18
     * @inheritdoc
19
     * @return \zacksleo\yii2\oauth2\common\models\OauthClients[]|array
20
     */
21 2
    public function all($db = null)
22
    {
23 2
        return parent::all($db);
24
    }
25
26
    /**
27
     * @inheritdoc
28
     * @return \zacksleo\yii2\oauth2\common\models\OauthClients|array|null
29
     */
30 4
    public function one($db = null)
31
    {
32 4
        return parent::one($db);
0 ignored issues
show
Bug Compatibility introduced by
The expression parent::one($db); of type yii\db\ActiveRecord|array|null adds the type yii\db\ActiveRecord to the return on line 32 which is incompatible with the return type declared by the interface yii\db\QueryInterface::one of type array|boolean.
Loading history...
33
    }
34
}
35