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

DateRange   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 41
rs 10
c 1
b 0
f 0
wmc 4
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 6 1
A getOperator() 0 4 1
A parserValue() 0 10 2
1
<?php
2
3
namespace SleepingOwl\Admin\Display\Column\Filter;
4
5
class DateRange extends Date
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $view = 'daterange';
11
12
    /**
13
     * Initialize column filter.
14
     */
15
    public function initialize()
16
    {
17
        parent::initialize();
18
19
        $this->setHtmlAttribute('data-type', 'daterange');
20
    }
21
22
    /**
23
     * @return string
24
     */
25
    public function getOperator()
26
    {
27
        return 'between';
28
    }
29
30
    /**
31
     * @param string $date
32
     *
33
     * @return string
34
     */
35
    public function parserValue($date)
36
    {
37
        $dates = explode('::', $date);
38
39
        foreach ($dates as $i => $date) {
40
            $dates[$i] = parent::parserValue($date);
0 ignored issues
show
Bug introduced by
The method parserValue() does not exist on SleepingOwl\Admin\Display\Column\Filter\Date. Did you maybe mean parseValue()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
41
        }
42
43
        return $dates;
44
    }
45
}
46