| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.3332 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | 10 | public static function routeConfiguration(?\Closure $callback = null): mixed |
|
| 39 | { |
||
| 40 | 10 | if($callback) { |
|
| 41 | static::$routeConfigurationCallback = $callback; |
||
| 42 | |||
| 43 | return new static; |
||
| 44 | } |
||
| 45 | |||
| 46 | 10 | if(is_callable(static::$routeConfigurationCallback)) { |
|
| 47 | return call_user_func(static::$routeConfigurationCallback); |
||
|
|
|||
| 48 | } |
||
| 49 | |||
| 50 | 10 | return [ |
|
| 51 | 10 | 'prefix' => 'downloads/exports', |
|
| 52 | 10 | 'middleware' => config('nova.middleware'), |
|
| 53 | 10 | ]; |
|
| 57 |