| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 16 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 40 | protected function redirectToResource(IsTranslatable $translatable): string  | 
            ||
| 41 |     { | 
            ||
| 42 | $resource = Nova::resourceForModel($translatable);  | 
            ||
| 43 | |||
| 44 |         if (! is_subclass_of($resource, Resource::class)) { | 
            ||
| 45 |             throw new \BadMethodCallException("{$resource} is not a valid Nova resource"); | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 |         return implode('/', array_filter([ | 
            ||
| 49 | trim(Nova::path()),  | 
            ||
| 50 | 'resources',  | 
            ||
| 51 | $resource::uriKey(),  | 
            ||
| 52 | $translatable->getKey(),  | 
            ||
| 53 | 'edit',  | 
            ||
| 54 | ]));  | 
            ||
| 55 | }  | 
            ||
| 56 | }  | 
            ||
| 57 |