LessQuery::one()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace app\modules\prototype\models\query;
4
5
/**
6
 * This is the ActiveQuery class for [[\app\modules\prototype\models\Less]].
7
 *
8
 * @see \app\modules\prototype\models\Less
9
 */
10
class LessQuery extends \yii\db\ActiveQuery
11
{
12
    /*public function active()
0 ignored issues
show
Unused Code Comprehensibility introduced by
63% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
13
    {
14
        $this->andWhere('[[status]]=1');
15
        return $this;
16
    }*/
17
18
    /**
19
     * @inheritdoc
20
     * @return \app\modules\prototype\models\Less[]|array
21
     */
22
    public function all($db = null)
23
    {
24
        return parent::all($db);
25
    }
26
27
    /**
28
     * @inheritdoc
29
     * @return \app\modules\prototype\models\Less|array|null
30
     */
31
    public function one($db = null)
32
    {
33
        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 33 which is incompatible with the return type declared by the interface yii\db\QueryInterface::one of type array|boolean.
Loading history...
34
    }
35
}
36