@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public static function fileUpload(): bool|FileUploadModel|EloquentCollection |
| 21 | 21 | { |
| 22 | - if(self::$request->file()) { |
|
| 22 | + if (self::$request->file()) { |
|
| 23 | 23 | self::storeFiles(); |
| 24 | 24 | |
| 25 | 25 | if (is_array(self::$request->file(self::$input))) { |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | - Schema::table('file_uploads', function (Blueprint $table) { |
|
| 14 | + Schema::table('file_uploads', function(Blueprint $table) { |
|
| 15 | 15 | $table->string('file_name', 510)->change(); |
| 16 | 16 | $table->string('url', 765)->change(); |
| 17 | 17 | }); |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function down(): void |
| 24 | 24 | { |
| 25 | - Schema::table('file_uploads', function (Blueprint $table) { |
|
| 25 | + Schema::table('file_uploads', function(Blueprint $table) { |
|
| 26 | 26 | $table->string('file_name', '255')->change(); |
| 27 | 27 | $table->string('url', '255')->change(); |
| 28 | 28 | }); |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | protected function defineDatabaseMigrations() |
| 16 | 16 | { |
| 17 | 17 | $this->loadLaravelMigrations(); |
| 18 | - $this->loadMigrationsFrom(__DIR__.'/../src/migrations'); |
|
| 18 | + $this->loadMigrationsFrom(__DIR__ . '/../src/migrations'); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | protected function getPackageProviders($app): array |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | Storage::fake(config('clamavfileupload.disk')); |
| 24 | 24 | |
| 25 | 25 | $file = __DIR__ . '/file/lorem-ipsum.pdf'; |
| 26 | - if (! is_dir($tmpDir = __DIR__ . '/tmp')) { |
|
| 26 | + if (!is_dir($tmpDir = __DIR__ . '/tmp')) { |
|
| 27 | 27 | mkdir($tmpDir, 0755, true); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | Storage::fake(config('clamavfileupload.disk')); |
| 54 | 54 | |
| 55 | 55 | $file = __DIR__ . '/file/lorem-ipsum.pdf'; |
| 56 | - if (! is_dir($tmpDir = __DIR__ . '/tmp')) { |
|
| 56 | + if (!is_dir($tmpDir = __DIR__ . '/tmp')) { |
|
| 57 | 57 | mkdir($tmpDir, 0755, true); |
| 58 | 58 | } |
| 59 | 59 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | Storage::fake(config('clamavfileupload.disk')); |
| 91 | 91 | |
| 92 | 92 | $file = __DIR__ . '/file/lorem-ipsum.pdf'; |
| 93 | - if (! is_dir($tmpDir = __DIR__ . '/tmp')) { |
|
| 93 | + if (!is_dir($tmpDir = __DIR__ . '/tmp')) { |
|
| 94 | 94 | mkdir($tmpDir, 0755, true); |
| 95 | 95 | } |
| 96 | 96 | |