AppAsset
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 19
c 0
b 0
f 0
wmc 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Asset;
6
7
use Yiisoft\Assets\AssetBundle;
0 ignored issues
show
Bug introduced by
The type Yiisoft\Assets\AssetBundle 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...
8
use Yiisoft\Yii\Bootstrap5\Assets\BootstrapAsset;
0 ignored issues
show
Bug introduced by
The type Yiisoft\Yii\Bootstrap5\Assets\BootstrapAsset 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...
9
10
final class AppAsset extends AssetBundle
11
{
12
    public ?string $basePath = '@assets';
13
14
    public ?string $baseUrl = '@assetsUrl';
15
16
    public ?string $sourcePath = '@resources/asset';
17
18
    public array $css = [
19
        'css/site.css',
20
    ];
21
22
    public array $js = [
23
        'js/app.js',
24
    ];
25
26
    public array $depends = [
27
        BootstrapAsset::class,
28
        Bootstrap5IconsAsset::class,
29
    ];
30
}
31