From f399b8a4134e746da51e1cb0b021c2275d0f0ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Sun, 7 Feb 2021 01:12:57 +0300 Subject: [PATCH] more styling --- database/factories/Transaction.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/database/factories/Transaction.php b/database/factories/Transaction.php index aab752572..d5e9b3933 100644 --- a/database/factories/Transaction.php +++ b/database/factories/Transaction.php @@ -8,7 +8,7 @@ use App\Traits\Transactions; class Transaction extends Factory { - use Transactions; + use Transactions; /** * The name of the factory's corresponding model. @@ -29,19 +29,19 @@ class Transaction extends Factory $category_type = in_array($type, $this->getIncomeTypes()) ? 'income' : 'expense'; - return [ - 'company_id' => $this->company->id, - 'type' => $type, - 'account_id' => setting('default.account'), - 'paid_at' => $this->faker->dateTimeBetween(now()->startOfYear(), now()->endOfYear())->format('Y-m-d H:i:s'), - 'amount' => $this->faker->randomFloat(2, 1, 1000), - 'currency_code' => setting('default.currency'), - 'currency_rate' => '1.0', - 'description' => $this->faker->text(5), - 'category_id' => $this->company->categories()->$category_type()->get()->random(1)->pluck('id')->first(), - 'reference' => $this->faker->text(5), - 'payment_method' => setting('default.payment_method'), - ]; + return [ + 'company_id' => $this->company->id, + 'type' => $type, + 'account_id' => setting('default.account'), + 'paid_at' => $this->faker->dateTimeBetween(now()->startOfYear(), now()->endOfYear())->format('Y-m-d H:i:s'), + 'amount' => $this->faker->randomFloat(2, 1, 1000), + 'currency_code' => setting('default.currency'), + 'currency_rate' => '1.0', + 'description' => $this->faker->text(5), + 'category_id' => $this->company->categories()->$category_type()->get()->random(1)->pluck('id')->first(), + 'reference' => $this->faker->text(5), + 'payment_method' => setting('default.payment_method'), + ]; } /**