| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | protected function getColumns() |
||
| 29 | { |
||
| 30 | $link = config('cortex.foundation.route.locale_prefix') |
||
| 31 | ? '"<a href=\""+routes.route(\'tenantarea.contacts.edit\', {contact: full.id, locale: \''.$this->request->segment(1).'\'})+"\">"+data+"</a>"' |
||
| 32 | : '"<a href=\""+routes.route(\'tenantarea.contacts.edit\', {contact: full.id})+"\">"+data+"</a>"'; |
||
| 33 | |||
| 34 | return [ |
||
| 35 | 'first_name' => ['title' => trans('cortex/contacts::common.first_name'), 'render' => $link, 'responsivePriority' => 0], |
||
| 36 | 'middle_name' => ['title' => trans('cortex/contacts::common.middle_name')], |
||
| 37 | 'last_name' => ['title' => trans('cortex/contacts::common.last_name')], |
||
| 38 | 'email' => ['title' => trans('cortex/contacts::common.email')], |
||
| 39 | 'phone' => ['title' => trans('cortex/contacts::common.phone')], |
||
| 40 | 'country_code' => ['title' => trans('cortex/contacts::common.country')], |
||
| 41 | 'language_code' => ['title' => trans('cortex/contacts::common.language')], |
||
| 42 | 'source' => ['title' => trans('cortex/contacts::common.source')], |
||
| 43 | 'method' => ['title' => trans('cortex/contacts::common.method')], |
||
| 44 | 'created_at' => ['title' => trans('cortex/contacts::common.created_at'), 'render' => "moment(data).format('MMM Do, YYYY')"], |
||
| 45 | 'updated_at' => ['title' => trans('cortex/contacts::common.updated_at'), 'render' => "moment(data).format('MMM Do, YYYY')"], |
||
| 46 | ]; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |
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.