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 — analysis-XV6R23 ( 31977a )
by butschster
08:22
created

Date::getModifierValue()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 3
eloc 5
c 1
b 1
f 0
nc 3
nop 0
dl 0
loc 11
rs 10
1
<?php
2
3
namespace SleepingOwl\Admin\Display\Column\Editable;
4
5
use SleepingOwl\Admin\Contracts\Display\ColumnEditableInterface;
6
7
class Date extends DateTime implements ColumnEditableInterface
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $format = 'Y-m-d';
13
14
    /**
15
     * @var string
16
     */
17
    protected $view = 'column.editable.date';
18
19
    /**
20
     * Text constructor.
21
     *
22
     * @param             $name
23
     * @param             $label
24
     */
25
    public function __construct($name, $label = null)
26
    {
27
        parent::__construct($name, $label);
28
29
        $this->setFormat(config('sleeping_owl.dateFormat'));
30
        $this->setCombodateValue(['maxYear' => now()->addYears(100)->format('Y')]);
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getPickerFormat()
37
    {
38
        return $this->pickerFormat ?: config('sleeping_owl.dateFormat');
39
    }
40
}
41