BannerCarousel   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 19
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPluginInit() 0 14 1
1
<?php
2
3
namespace hiqdev\themes\obaju\widgets;
4
5
class BannerCarousel extends OwlCarousel
6
{
7
    public $containerOptions = ['id' => 'main-slider'];
8
9
    public function getPluginInit()
10
    {
11
        return "
12
        $('#main-slider').owlCarousel({
13
            navigation: true, // Show next and prev buttons
14
            slideSpeed: 300,
15
            paginationSpeed: 400,
16
            autoPlay: true,
17
            stopOnHover: true,
18
            singleItem: true,
19
            afterInit: ''
20
        });
21
        ";
22
    }
23
}
24