Passed
Branch master (7b2628)
by Paweł
06:40
created

AccountProfileBox::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created for IG Monitoring.
4
 * User: jakim <[email protected]>
5
 * Date: 2019-03-21
6
 */
7
8
namespace app\modules\admin\widgets;
9
10
11
use app\models\UserAccount;
0 ignored issues
show
Bug introduced by
The type app\models\UserAccount was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
use yii\base\Widget;
13
14
class AccountProfileBox extends Widget
15
{
16
    /**
17
     * @var \app\models\Account
18
     */
19
    public $model;
20
21
    public function run()
22
    {
23
        return $this->render('account-profile-box', [
24
            'model' => $this->model,
25
        ]);
26
    }
27
}