Passed
Pull Request — 2.x (#1360)
by Harings
14:11
created

TimePicker   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 6 2
1
<?php
2
3
namespace A17\Twill\View\Components;
4
5
class TimePicker extends DatePicker
6
{
7
    public function render()
8
    {
9
        $this->timeOnly = true;
10
        $this->withTime = true;
11
        $this->altFormat = $this->altFormat ?? (($this->time24Hr ?? false) ? 'H:i' : 'h:i K');
12
        return view('twill::partials.form._date_picker');
13
    }
14
}
15