Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab authored and github-actions[bot] committed Oct 31, 2023
1 parent 00bd3a8 commit 60154a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/PdfInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(

public function generateFilename(): string
{
return Str::slug("{$this->name}_{$this->serial_number}", separator: '_') . ".pdf";
return Str::slug("{$this->name}_{$this->serial_number}", separator: '_').'.pdf';
}

public function getFilename(): string
Expand All @@ -54,7 +54,7 @@ public function getLogo(): string
$type = pathinfo($this->logo, PATHINFO_EXTENSION);
$data = file_get_contents($this->logo);

return 'data:image/' . $type . ';base64,' . base64_encode($data);
return 'data:image/'.$type.';base64,'.base64_encode($data);
}

/**
Expand Down Expand Up @@ -96,7 +96,7 @@ public function totalTaxAmount(): Money

public function totalDiscountAmount(): Money
{
if (!$this->discounts) {
if (! $this->discounts) {
return Money::of(0, $this->subTotalAmount()->getCurrency());
}

Expand Down

0 comments on commit 60154a3

Please sign in to comment.