Completed
Push — master ( 65fa37...c7bb09 )
by Song
02:44
created

Datetime::display()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 11
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 11
loc 11
rs 9.9
c 0
b 0
f 0
1
<?php
2
3
namespace Encore\Admin\Grid\Displayers;
4
5
use Encore\Admin\Admin;
6
7 View Code Duplication
class Datetime extends AbstractDisplayer
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
8
{
9
    public function display($format = '')
10
    {
11
        return Admin::component('admin::components.grid-inline-datetime', [
12
            'key'      => $this->getKey(),
13
            'value'    => $this->getValue(),
14
            'format'   => $format,
15
            'name'     => $this->column->getName(),
16
            'resource' => $this->getResource(),
17
            'locale'   => config('app.locale'),
18
        ]);
19
    }
20
}
21