GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

InfiniteAjaxScrollAsset::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 5
Bugs 1 Features 1
Metric Value
c 5
b 1
f 1
dl 0
loc 13
rs 9.4285
cc 1
eloc 10
nc 1
nop 0
1
<?php
2
3
namespace kop\y2sp\assets;
4
5
use yii\web\AssetBundle;
6
7
/**
8
 * This is "InfiniteAjaxScrollAsset" class.
9
 *
10
 * This class is an asset bundle for {@link http://infiniteajaxscroll.com/ JQuery Infinite Ajax Scroll plugin}.
11
 *
12
 * @link      http://kop.github.io/yii2-scroll-pager Y2SP project page.
13
 * @license   https://github.com/kop/yii2-scroll-pager/blob/master/LICENSE.md MIT
14
 *
15
 * @author    Ivan Koptiev <[email protected]>
16
 */
17
class InfiniteAjaxScrollAsset extends AssetBundle
18
{
19
    /**
20
     * @var array List of bundle class names that this bundle depends on.
21
     */
22
    public $depends = [
23
        'yii\web\JqueryAsset',
24
    ];
25
26
    /**
27
     * @inheritdoc
28
     */
29
    public function init()
30
    {
31
        $this->sourcePath = '@vendor/webcreate/jquery-ias/src';
32
        $this->js = [
33
            'callbacks.js',
34
            'jquery-ias.js',
35
            'extension/history.js',
36
            'extension/noneleft.js',
37
            'extension/paging.js',
38
            'extension/spinner.js',
39
            'extension/trigger.js'
40
        ];
41
    }
42
}
43