| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| 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(\'managerarea.testimonials.edit\', {testimonial: full.id, locale: \''.$this->request->segment(1).'\'})+"\">"+data+"</a>"' |
||
| 32 | : '"<a href=\""+routes.route(\'managerarea.testimonials.edit\', {testimonial: full.id})+"\">"+data+"</a>"'; |
||
| 33 | |||
| 34 | return [ |
||
| 35 | 'body' => ['title' => trans('cortex/testimonials::common.body'), 'render' => $link.'+(full.is_approved ? " <i class=\"text-success fa fa-check\"></i>" : " <i class=\"text-danger fa fa-close\"></i>")', 'responsivePriority' => 0], |
||
| 36 | 'created_at' => ['title' => trans('cortex/testimonials::common.created_at'), 'render' => "moment(data).format('MMM Do, YYYY')"], |
||
| 37 | 'updated_at' => ['title' => trans('cortex/testimonials::common.updated_at'), 'render' => "moment(data).format('MMM Do, YYYY')"], |
||
| 38 | ]; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
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.