TypeAheadAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 1
1
<?php
2
/**
3
 * @link https://github.com/2amigos/yii2-type-ahead-widget
4
 * @copyright Copyright (c) 2013-2015 2amigOS! Consulting Group LLC
5
 * @license http://opensource.org/licenses/BSD-3-Clause
6
 */
7
8
namespace dosamigos\typeahead;
9
10
use yii\web\AssetBundle;
11
12
/**
13
 * TypeAheadAsset
14
 *
15
 * @author Alexander Kochetov <[email protected]>
16
 */
17
class TypeAheadAsset extends AssetBundle
18
{
19
    public $css = [
20
        'css/bootstrap-typeahead.css',
21
    ];
22
23 3
    public function init()
24
    {
25 3
        $this->sourcePath = __DIR__ . '/assets';
26 3
        parent::init();
27 3
    }
28
}
29