| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | protected function getColumns() |
||
| 44 | { |
||
| 45 | return [ |
||
| 46 | 'name' => ['title' => trans('cortex/fort::common.name'), 'render' => '"<a href=\""+routes.route(\'backend.abilities.edit\', {ability: full.id})+"\">"+data+"</a>"', 'responsivePriority' => 0], |
||
| 47 | 'slug' => ['title' => trans('cortex/fort::common.slug')], |
||
| 48 | 'policy' => ['title' => trans('cortex/fort::common.policy')], |
||
| 49 | 'created_at' => ['title' => trans('cortex/fort::common.created_at'), 'width' => '15%', 'render' => "moment(data).format('MMM Do, YYYY')"], |
||
| 50 | 'updated_at' => ['title' => trans('cortex/fort::common.updated_at'), 'width' => '15%', 'render' => "moment(data).format('MMM Do, YYYY')"], |
||
| 51 | ]; |
||
| 52 | } |
||
| 53 | } |
||
| 54 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.