Skip to content

Commit 9a2d1d6

Browse files
committed
chore: cs fixer
1 parent 263d990 commit 9a2d1d6

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/Jobs/DataTableExportJob.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Illuminate\Contracts\Queue\ShouldBeUnique;
1010
use Illuminate\Contracts\Queue\ShouldQueue;
1111
use Illuminate\Contracts\Support\Arrayable;
12-
use Illuminate\Database\Eloquent\Model;
1312
use Illuminate\Foundation\Bus\Dispatchable;
1413
use Illuminate\Http\File;
1514
use Illuminate\Queue\InteractsWithQueue;
@@ -181,7 +180,7 @@ public function handle()
181180

182181
$writer->close();
183182

184-
if($this->getS3Disk()) {
183+
if ($this->getS3Disk()) {
185184
Storage::disk($this->getS3Disk())->putFileAs('', (new File($path)), $filename);
186185
}
187186
}

src/Livewire/ExportButtonComponent.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function updateExportProgress(): ?StreamedResponse
6262

6363
if ($this->exportFinished) {
6464
$this->exporting = false;
65-
if ($this->autoDownload and ! $this->downloaded){
65+
if ($this->autoDownload and ! $this->downloaded) {
6666
$this->downloaded = true;
6767

6868
return $this->downloadExport();
@@ -74,9 +74,11 @@ public function updateExportProgress(): ?StreamedResponse
7474

7575
public function downloadExport(): StreamedResponse
7676
{
77-
if($this->getS3Disk()) {
78-
return Storage::disk($this->getS3Disk())->download($this->batchJobId.'.'.$this->getType(), $this->getFilename());
77+
if ($this->getS3Disk()) {
78+
return Storage::disk($this->getS3Disk())
79+
->download($this->batchJobId.'.'.$this->getType(), $this->getFilename());
7980
}
81+
8082
return Storage::disk($this->getDisk())->download($this->batchJobId.'.'.$this->getType(), $this->getFilename());
8183
}
8284

src/WithExportQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function exportQueue(): string
5757
*
5858
* @return string
5959
*/
60-
protected function sheetName() : string
60+
protected function sheetName(): string
6161
{
6262
return request('sheetName', 'Sheet1');
6363
}

src/resources/views/export-button.blade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
x-ref="exportBtn"
1717
:disabled="$wire.exporting"
1818
class="{{ $class }}"
19-
>Export</button>
19+
>Export
20+
</button>
2021
</form>
2122

2223
@if($exporting && !$exportFinished)
@@ -34,4 +35,4 @@ class="{{ $class }}"
3435
@if($exportFailed)
3536
<span>Export failed, please try again later.</span>
3637
@endif
37-
</div>
38+
</div>

0 commit comments

Comments
 (0)