Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | protected function getColumns(): array |
||
35 | { |
||
36 | $link = config('cortex.foundation.route.locale_prefix') |
||
37 | ? '"<a href=\""+routes.route(\'adminarea.roles.edit\', {role: full.id, locale: \''.$this->request->segment(1).'\'})+"\">"+data+"</a>"' |
||
|
|||
38 | : '"<a href=\""+routes.route(\'adminarea.roles.edit\', {role: full.id})+"\">"+data+"</a>"'; |
||
39 | |||
40 | return [ |
||
41 | 'title' => ['title' => trans('cortex/auth::common.title'), 'render' => $link, 'responsivePriority' => 0], |
||
42 | 'name' => ['title' => trans('cortex/auth::common.name')], |
||
43 | 'created_at' => ['title' => trans('cortex/auth::common.created_at'), 'render' => "moment(data).format('MMM Do, YYYY')"], |
||
44 | 'updated_at' => ['title' => trans('cortex/auth::common.updated_at'), 'render' => "moment(data).format('MMM Do, YYYY')"], |
||
45 | ]; |
||
46 | } |
||
47 | } |
||
48 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.