Passed
Push — master ( 219bcf...e162bd )
by Alexander
03:03 queued 14s
created

SwaggerUiAsset::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Swagger\Asset;
6
7
use Yiisoft\Assets\AssetBundle;
8
9
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 1
    }
27
}
28