Passed
Push — master ( 8c9e20...4d7506 )
by Sergei
04:05 queued 01:40
created

BulmaHelpersAsset::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
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 BulmaHelpersAsset extends AssetBundle
11
{
12
    public ?string $basePath = '@assets';
13
    public ?string $baseUrl = '@assetsUrl';
14
    public ?string $sourcePath = '@npm/bulma-helpers/css';
15
16
    public array $css = [
17
        'bulma-helpers.css',
18
    ];
19
20
    public function __construct()
21
    {
22
        $this->publishOptions = [
23
            'filter' => (new PathMatcher())->only('bulma-helpers.css'),
24
        ];
25
    }
26
}
27