From 10a93df6539749679122cc37354b571eb749a547 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 18 Jan 2015 09:48:58 +0100 Subject: [PATCH] Clean up test data seeder --- app/database/seeds/TestDataSeeder.php | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/app/database/seeds/TestDataSeeder.php b/app/database/seeds/TestDataSeeder.php index bfa8e63de1..13028277d4 100644 --- a/app/database/seeds/TestDataSeeder.php +++ b/app/database/seeds/TestDataSeeder.php @@ -3,6 +3,10 @@ use Carbon\Carbon; /** * @SuppressWarnings("CamelCase") // I'm fine with this. + * @SuppressWarnings("TooManyMethods") // I'm fine with this + * @SuppressWarnings("CouplingBetweenObjects") // I'm fine with this + * @SuppressWarnings("MethodLength") // I'm fine with this + * * Class TestDataSeeder */ @@ -410,16 +414,8 @@ class TestDataSeeder extends Seeder { // bill Bill::create( - [ - 'user_id' => $user->id, 'name' => 'Rent', 'match' => 'rent,landlord', - 'amount_min' => 700, - 'amount_max' => 900, - 'date' => $this->som, - 'active' => 1, - 'automatch' => 1, - 'repeat_freq' => 'monthly', - 'skip' => 0, - ] + ['user_id' => $user->id, 'name' => 'Rent', 'match' => 'rent,landlord', 'amount_min' => 700, 'amount_max' => 900, 'date' => $this->som, + 'active' => 1, 'automatch' => 1, 'repeat_freq' => 'monthly', 'skip' => 0,] ); // bill @@ -428,13 +424,10 @@ class TestDataSeeder extends Seeder 'user_id' => $user->id, 'name' => 'Gas licht', 'match' => 'no,match', - 'amount_min' => 500, - 'amount_max' => 700, + 'amount_min' => 500, 'amount_max' => 700, 'date' => $this->som, - 'active' => 1, - 'automatch' => 1, - 'repeat_freq' => 'monthly', - 'skip' => 0, + 'active' => 1, 'automatch' => 1, + 'repeat_freq' => 'monthly', 'skip' => 0, ] );