| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public static function create() |
||
| 10 | { |
||
| 11 | $pathGeneratorClass = BasePathGenerator::class; |
||
| 12 | |||
| 13 | $customPathClass = config('medialibrary.path_generator'); |
||
| 14 | |||
| 15 | if ($customPathClass) { |
||
| 16 | $pathGeneratorClass = $customPathClass; |
||
| 17 | } |
||
| 18 | |||
| 19 | static::guardAgainstInvalidPathGenerator($pathGeneratorClass); |
||
| 20 | |||
| 21 | return app($pathGeneratorClass); |
||
| 22 | } |
||
| 23 | |||
| 35 |