Passed
Push — master ( f93325...f6de65 )
by Alexander
02:25
created

BootstrapIconsAsset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Bootstrap5\Assets;
6
7
use Yiisoft\Assets\AssetBundle;
8
use Yiisoft\Files\PathMatcher\PathMatcher;
9
10
/**
11
 * Asset bundle for the Twitter bootstrap css files.
12
 *
13
 * BootstrapAsset.
14
 *
15
 * @package Bootstrap5
16
 */
17
final class BootstrapIconsAsset extends AssetBundle
18
{
19
    public ?string $basePath = '@assets';
20
21
    public ?string $baseUrl = '@assetsUrl';
22
23
    public ?string $sourcePath = '@npm/bootstrap-icons/font';
24
25
    public array $css = [
26
        'bootstrap-icons.css',
27
    ];
28
29 1
    public function __construct()
30
    {
31 1
        $pathMatcher = new PathMatcher();
32
33 1
        $this->publishOptions = [
34 1
            'filter' => $pathMatcher->only('bootstrap-icons.css', 'fonts/*'),
35
        ];
36 1
    }
37
}
38