| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Distilleries\Expendable\Http\Datatables; |
||
| 11 | public function addTranslationAction($template = 'expendable::admin.form.components.datatable.translations', $route = '') |
||
| 12 | { |
||
| 13 | $this->add('translation', function ($model) use ($template, $route) { |
||
| 14 | |||
| 15 | $languages = Language::withoutCurrentLanguage()->get(); |
||
|
|
|||
| 16 | $translations = Translation::byElement($model)->pluck('id_element','iso')->toArray(); |
||
| 17 | return view($template, array( |
||
| 18 | 'languages' => $languages, |
||
| 19 | 'translations' => $translations, |
||
| 20 | 'data' => $model->toArray(), |
||
| 21 | 'route' => !empty($route) ? $route . '@' : $this->getControllerNameForAction() . '@' |
||
| 22 | ))->render(); |
||
| 23 | }); |
||
| 24 | |||
| 25 | } |
||
| 26 | |||
| 32 | } |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.