We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | public function setupTranslatorInstance() |
||
| 9 | { |
||
| 10 | if(! method_exists($this->crud->model, 'translationEnabledForModel') || ! class_exists('Spatie\Translatable\Translatable')) { |
||
| 11 | return; |
||
| 12 | } |
||
| 13 | |||
| 14 | if(app('crud')->getOperationSetting('useFallbackLocale')) { |
||
| 15 | app(\Spatie\Translatable\Translatable::class)->fallback( |
||
| 16 | fallbackAny: true, |
||
| 17 | ); |
||
| 18 | return; |
||
| 19 | } |
||
| 26 | } |