HtmlQuery   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 26
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A all() 0 4 1
A one() 0 4 1
1
<?php
2
3
namespace app\modules\prototype\models\query;
4
5
/**
6
 * This is the ActiveQuery class for [[\app\modules\prototype\models\Html]].
7
 *
8
 * @see \app\modules\prototype\models\Html
9
 */
10
class HtmlQuery 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\Html[]|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\Html|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