Passed
Pull Request — master (#100)
by Dmitriy
03:16
created

AssetBundle

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
eloc 1
c 1
b 0
f 0
dl 0
loc 2
ccs 0
cts 0
cp 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Debug\Api;
6
7
if (!class_exists(\Yiisoft\Assets\AssetBundle::class)) {
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
    class AssetBundle
9
    {
10
    }
11
} else {
12
    class_alias(\Yiisoft\Assets\AssetBundle::class, AssetBundle::class);
13
}
14
15
abstract class ModuleFederationAssetBundle extends AssetBundle
16
{
17
    /**
18
     * The module name is defined into the webpack module federation config file.
19
     * Example: "remote"
20
     */
21
    abstract public static function getModule(): string;
22
23
    /**
24
     * The scope is defined into the webpack module federation config file.
25
     * Scope is usually the name of the exposed component.
26
     * Example: "./MyPanel"
27
     */
28
    abstract public static function getScope(): string;
29
}
30