@@ -30,10 +30,10 @@ |
||
| 30 | 30 | ], 'config'); |
| 31 | 31 | |
| 32 | 32 | // Publish migrations |
| 33 | - $this->publishes([ |
|
| 34 | - __DIR__ . '/../../database/migrations/2017_06_17_163005_create_invoices_tables.php' |
|
| 35 | - => database_path('migrations/2017_06_17_163005_create_invoices_tables.php'), |
|
| 36 | - ], 'migrations'); |
|
| 33 | + $this->publishes([ |
|
| 34 | + __DIR__ . '/../../database/migrations/2017_06_17_163005_create_invoices_tables.php' |
|
| 35 | + => database_path('migrations/2017_06_17_163005_create_invoices_tables.php'), |
|
| 36 | + ], 'migrations'); |
|
| 37 | 37 | |
| 38 | 38 | $this->app->bind(InvoiceServiceInterface::class, function ($app) { |
| 39 | 39 | return new InvoiceService(); |
@@ -64,11 +64,11 @@ |
||
| 64 | 64 | return (string) $this->currency; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - /** |
|
| 68 | - * Sets the current currency |
|
| 69 | - * @param $currency The currency (i.e. 'EUR') |
|
| 70 | - * @return Void |
|
| 71 | - */ |
|
| 67 | + /** |
|
| 68 | + * Sets the current currency |
|
| 69 | + * @param $currency The currency (i.e. 'EUR') |
|
| 70 | + * @return Void |
|
| 71 | + */ |
|
| 72 | 72 | public function setCurrency(string $currency) |
| 73 | 73 | { |
| 74 | 74 | $this->currency = $currency; |
@@ -176,9 +176,9 @@ |
||
| 176 | 176 | $free = $lines->where('is_free', true)->toBase(); |
| 177 | 177 | $complimentary = $lines->where('is_complimentary', true)->toBase(); |
| 178 | 178 | $other = $lines |
| 179 | - ->where('is_free', false) |
|
| 180 | - ->where('is_complimentary', false) |
|
| 181 | - ->toBase(); |
|
| 179 | + ->where('is_free', false) |
|
| 180 | + ->where('is_complimentary', false) |
|
| 181 | + ->toBase(); |
|
| 182 | 182 | |
| 183 | 183 | $this->bill->total = $other->sum('amount'); |
| 184 | 184 | $this->bill->tax = $other->sum('tax'); |
@@ -174,8 +174,8 @@ |
||
| 174 | 174 | $free = $lines->where('is_free', true)->toBase(); |
| 175 | 175 | $complimentary = $lines->where('is_complimentary', true)->toBase(); |
| 176 | 176 | $other = $lines->where('is_free', false) |
| 177 | - ->where('is_complimentary', false) |
|
| 178 | - ->toBase(); |
|
| 177 | + ->where('is_complimentary', false) |
|
| 178 | + ->toBase(); |
|
| 179 | 179 | |
| 180 | 180 | $this->invoice->total = $other->sum('amount'); |
| 181 | 181 | $this->invoice->tax = $other->sum('tax'); |