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

AccountProfileBox   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 4 1
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
}