We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | { |
| 11 | 11 | public mixed $fileNamer = null; |
| 12 | 12 | |
| 13 | - public function getFileName(string|UploadedFile|File $file): string |
|
| 13 | + public function getFileName(string | UploadedFile | File $file): string |
|
| 14 | 14 | { |
| 15 | 15 | return is_callable($this->fileNamer) ? ($this->fileNamer)($file, $this) : $this->fileNamer->getName($file); |
| 16 | 16 | } |
@@ -19,11 +19,11 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | $fileGeneratorClass = $fileNameGenerator ?? config('backpack.crud.file_name_generator'); |
| 21 | 21 | |
| 22 | - if (! class_exists($fileGeneratorClass)) { |
|
| 22 | + if (!class_exists($fileGeneratorClass)) { |
|
| 23 | 23 | throw new \Exception("The file name generator class [{$fileGeneratorClass}] does not exist."); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - if (! in_array(FileNameGeneratorInterface::class, class_implements($fileGeneratorClass, false))) { |
|
| 26 | + if (!in_array(FileNameGeneratorInterface::class, class_implements($fileGeneratorClass, false))) { |
|
| 27 | 27 | throw new \Exception("The file name generator class [{$fileGeneratorClass}] must implement the [".FileNameGeneratorInterface::class.'] interface.'); |
| 28 | 28 | } |
| 29 | 29 | |