Passed
Push — master ( 32a609...1d1a5a )
by Alexander
23:59 queued 21:37
created

SwaggerUiAsset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

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