SwaggerUiAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 9
c 2
b 0
f 0
dl 0
loc 17
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Swagger\Asset;
6
7
use Yiisoft\Assets\AssetBundle;
8
9
final class SwaggerUiAsset extends AssetBundle
10
{
11
    public ?string $basePath = '@assets';
12
13
    public ?string $baseUrl = '@assetsUrl';
14
15
    public array $css = [
16
        'swagger-ui.css',
17
    ];
18
    public array $js = [
19
        'swagger-ui-bundle.js',
20
        'swagger-ui-standalone-preset.js',
21
    ];
22
23 1
    public function __construct()
24
    {
25 1
        $this->sourcePath = '@vendor/swagger-api/swagger-ui/dist';
26
    }
27
}
28