Skip to content

Commit 7e3d18f

Browse files
committed
Fixing style and variable name
1 parent 5fd7a70 commit 7e3d18f

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/Actions/StoreModelUploadFile.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ public function handle(Authenticatable $user, UploadedFile $uploadedFile, string
3131
'state' => UploadFileState::upload,
3232
]);
3333

34-
ModelRecordImport::new()
35-
->forFile($file)
36-
->withMeta($meta)
37-
->process();
34+
ModelRecordImport::new()->forFile($file)->withMeta($meta)->process();
3835

3936
return $file;
4037
}

src/Models/ModelUploadRecord.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ public function model(): MorphTo
3232

3333
public function getPayloadData(?string $key = null, mixed $default = null): mixed
3434
{
35-
$meta = $this->getAttribute('payload') ?? [];
35+
$payload = $this->getAttribute('payload') ?? [];
3636

3737
if ($key === null) {
38-
return $meta;
38+
return $payload;
3939
}
4040

41-
return $meta[$key] ?? $default;
41+
return $payload[$key] ?? $default;
4242
}
4343

4444
public function getMetaData(?string $key = null, mixed $default = null): mixed

0 commit comments

Comments
 (0)