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.
Completed
Push — master ( 414922...a9bc98 )
by butschster
12:35
created

resources/assets/js/admin/form/daterange.js   A

Complexity

Total Complexity 4
Complexity/F 2

Size

Lines of Code 21
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
nc 1
dl 0
loc 21
rs 10
c 1
b 0
f 0
wmc 4
mnd 1
bc 4
fnc 2
bpm 2
cpm 2
noi 2
1
Admin.Modules.add('form.elements.daterange', () => {
0 ignored issues
show
Bug introduced by
The variable Admin seems to be never declared. If this is a global, consider adding a /** global: Admin */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
2
    $('.input-daterange').each((i, item) => {
3
        let $self = $(item);
4
5
        let picker = $self.daterangepicker({
0 ignored issues
show
Unused Code introduced by
The variable picker seems to be never used. Consider removing it.
Loading history...
6
            showDropdowns: true,
7
            locale: {
8
                format: $self.data('format'),
9
                separator: '::'
10
            }
11
        })
12
13
        if ($self.data('startdate')) {
14
            $self.data('daterangepicker').setStartDate($self.data('startdate'));
15
        }
16
17
        if ($self.data('enddate')) {
18
            $self.data('daterangepicker').setEndDate($self.data('enddate'));
19
        }
20
    })
21
})