Completed
Push — master ( 1d3c0c...8bf0fe )
by Song
03:06
created

Show::name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Encore\Admin\Grid\Actions;
4
5
use Encore\Admin\Actions\RowAction;
6
7
class Show extends RowAction
8
{
9
    /**
10
     * @return array|null|string
11
     */
12
    public function name()
13
    {
14
        return __('admin.show');
0 ignored issues
show
Bug Compatibility introduced by
The expression __('admin.show'); of type string|array|null adds the type array to the return on line 14 which is incompatible with the return type of the parent method Encore\Admin\Actions\Action::name of type string.
Loading history...
15
    }
16
17
    /**
18
     * @return string
19
     */
20
    public function href()
21
    {
22
        return "{$this->getResource()}/{$this->getKey()}";
23
    }
24
}