Setup pint & run code style fix

This commit is contained in:
gdarko
2024-01-29 04:46:01 -06:00
parent 8de34efd8c
commit 4ab92473e9
406 changed files with 1616 additions and 2026 deletions

View File

@@ -2,11 +2,11 @@
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use InvoiceShelf\Models\Estimate;
use InvoiceShelf\Models\EstimateItem;
use InvoiceShelf\Models\Item;
use InvoiceShelf\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
class EstimateItemFactory extends Factory
{
@@ -40,7 +40,7 @@ class EstimateItemFactory extends Factory
'company_id' => User::find(1)->companies()->first()->id,
'tax' => $this->faker->randomDigitNotNull,
'total' => function (array $item) {
return ($item['price'] * $item['quantity']);
return $item['price'] * $item['quantity'];
},
'discount_type' => $this->faker->randomElement(['percentage', 'fixed']),
'discount_val' => function (array $estimate) {