@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | - Schema::create('password_reset_tokens', function (Blueprint $table) { |
|
| 14 | + Schema::create('password_reset_tokens', function(Blueprint $table) { |
|
| 15 | 15 | $table->string('email')->primary(); |
| 16 | 16 | $table->string('token'); |
| 17 | 17 | $table->timestamp('created_at')->nullable(); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('temporary_uploads', function (Blueprint $table) { |
|
| 11 | + Schema::create('temporary_uploads', function(Blueprint $table) { |
|
| 12 | 12 | $table->id(); |
| 13 | 13 | $table->string('session_id'); |
| 14 | 14 | $table->timestamps(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('messages', function (Blueprint $table) { |
|
| 16 | + Schema::create('messages', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('email')->nullable(); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | - Schema::create('software', function (Blueprint $table) { |
|
| 14 | + Schema::create('software', function(Blueprint $table) { |
|
| 15 | 15 | $table->id(); |
| 16 | 16 | $table->string('slug'); |
| 17 | 17 | $table->string('name'); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | - Schema::create('categories', function (Blueprint $table) { |
|
| 14 | + Schema::create('categories', function(Blueprint $table) { |
|
| 15 | 15 | $table->id(); |
| 16 | 16 | $table->string('slug'); |
| 17 | 17 | $table->string('name'); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $temporaryUpload = $temporaryUploadModelClass::createForFile( |
| 38 | 38 | $uploadedFile, |
| 39 | 39 | session()->getId(), |
| 40 | - (string)Str::uuid(), |
|
| 40 | + (string) Str::uuid(), |
|
| 41 | 41 | $livewireUpload->getClientOriginalName() |
| 42 | 42 | ); |
| 43 | 43 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $livewireDisk = config('livewire.temporary_file_upload.disk', 's3'); |
| 53 | 53 | |
| 54 | 54 | $livewireDirectory = FileUploadConfiguration::directory(); |
| 55 | - $remotePath = Str::of($livewireDirectory)->start('/')->finish('/') . $livewireUpload->getFilename(); |
|
| 55 | + $remotePath = Str::of($livewireDirectory)->start('/')->finish('/').$livewireUpload->getFilename(); |
|
| 56 | 56 | |
| 57 | 57 | $temporaryUpload = $temporaryUploadModelClass::createForRemoteFile( |
| 58 | 58 | $remotePath, |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | public function registerMediaConversions(Media $media = null): void |
| 36 | 36 | { |
| 37 | - if (! config('media-library.generate_thumbnails_for_temporary_uploads')) { |
|
| 37 | + if (!config('media-library.generate_thumbnails_for_temporary_uploads')) { |
|
| 38 | 38 | return; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | protected function getPreviewManipulation(): Closure |
| 56 | 56 | { |
| 57 | - return static::$manipulatePreview ?? function (Conversion $conversion) { |
|
| 57 | + return static::$manipulatePreview ?? function(Conversion $conversion) { |
|
| 58 | 58 | $conversion->fit(Manipulations::FIT_CROP, 300, 300); |
| 59 | 59 | }; |
| 60 | 60 | } |
@@ -73,13 +73,13 @@ discard block |
||
| 73 | 73 | ->where('uuid', $mediaUuid) |
| 74 | 74 | ->first(); |
| 75 | 75 | |
| 76 | - if (! $media) { |
|
| 76 | + if (!$media) { |
|
| 77 | 77 | return null; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | $temporaryUpload = $media->model; |
| 81 | 81 | |
| 82 | - if (! $temporaryUpload instanceof TemporaryUpload) { |
|
| 82 | + if (!$temporaryUpload instanceof TemporaryUpload) { |
|
| 83 | 83 | return null; |
| 84 | 84 | } |
| 85 | 85 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | |
| 89 | 89 | public static function findByMediaUuidInCurrentSession(?string $mediaUuid): ?TemporaryUpload |
| 90 | 90 | { |
| 91 | - if (! $temporaryUpload = static::findByMediaUuid($mediaUuid)) { |
|
| 91 | + if (!$temporaryUpload = static::findByMediaUuid($mediaUuid)) { |
|
| 92 | 92 | return null; |
| 93 | 93 | } |
| 94 | 94 | |
@@ -21,8 +21,8 @@ |
||
| 21 | 21 | 'name' => '', |
| 22 | 22 | 'custom_properties' => '', |
| 23 | 23 | 'file' => [ |
| 24 | - 'max:' . config('media-library.max_file_size') / 1024, |
|
| 25 | - "mimes:" . $allowedExtensionsString, |
|
| 24 | + 'max:'.config('media-library.max_file_size') / 1024, |
|
| 25 | + "mimes:".$allowedExtensionsString, |
|
| 26 | 26 | new FileExtensionRule($allowedExtensions), |
| 27 | 27 | ], |
| 28 | 28 | ]; |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | return $this->attribute('name', $rules); |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - public function attribute(string $attribute, array|string $rules): self |
|
| 91 | + public function attribute(string $attribute, array | string $rules): self |
|
| 92 | 92 | { |
| 93 | 93 | $this->itemRules[] = new AttributeRule($attribute, $rules); |
| 94 | 94 | |