| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | protected function getColumns(): array |
||
| 23 | { |
||
| 24 | $link = config('cortex.foundation.route.locale_prefix') |
||
| 25 | ? '"<a href=\""+routes.route(\'adminarea.guardians.edit\', {guardian: full.username, locale: \''.$this->request->segment(1).'\'})+"\">"+data+"</a>"' |
||
|
|
|||
| 26 | : '"<a href=\""+routes.route(\'adminarea.guardians.edit\', {guardian: full.username})+"\">"+data+"</a>"'; |
||
| 27 | |||
| 28 | return [ |
||
| 29 | 'username' => ['title' => trans('cortex/auth::common.username'), 'render' => $link.'+(full.is_active ? " <i class=\"text-success fa fa-check\"></i>" : " <i class=\"text-danger fa fa-close\"></i>")', 'responsivePriority' => 0], |
||
| 30 | 'email' => ['title' => trans('cortex/auth::common.email')], |
||
| 31 | 'last_activity' => ['title' => trans('cortex/auth::common.last_activity'), 'render' => "data ? moment(data).format('MMM Do, YYYY') : ''"], |
||
| 32 | 'created_at' => ['title' => trans('cortex/auth::common.created_at'), 'render' => "moment(data).format('MMM Do, YYYY')"], |
||
| 33 | 'updated_at' => ['title' => trans('cortex/auth::common.updated_at'), 'render' => "moment(data).format('MMM Do, YYYY')"], |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 | } |
||
| 37 |
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.