NavBarAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 14
ccs 0
cts 3
cp 0
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Bulma\Asset;
6
7
use Yiisoft\Assets\AssetBundle;
8
use Yiisoft\Files\PathMatcher\PathMatcher;
9
10
final class NavBarAsset extends AssetBundle
11
{
12
    public ?string $basePath = '@assets';
13
    public ?string $baseUrl = '@assetsUrl';
14
    public ?string $sourcePath = '@npm/vizuaalog--bulmajs';
15
16
    public array $js = [
17
        'dist/navbar.js',
18
    ];
19
20
    public function __construct()
21
    {
22
        $this->publishOptions = [
23
            'filter' => (new PathMatcher())->only('dist/navbar.js'),
24
        ];
25
    }
26
}
27