@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * @package YOUREOACKAGE |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -$factory->define(App\Models\TransactionStatus::class, function (Faker\Generator $faker) { |
|
| 11 | +$factory->define(App\Models\TransactionStatus::class, function(Faker\Generator $faker) { |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * $StatusArrayDesc = array ("None", "Reconciled", "Void", "Follow Up", "Duplicate"); |
@@ -7,12 +7,12 @@ |
||
| 7 | 7 | * @version 1.0 |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -$factory->define(App\Models\Transaction::class, function (Faker\Generator $faker) { |
|
| 10 | +$factory->define(App\Models\Transaction::class, function(Faker\Generator $faker) { |
|
| 11 | 11 | return [ |
| 12 | - 'status_id' => function () { |
|
| 12 | + 'status_id' => function() { |
|
| 13 | 13 | return factory(App\Models\TransactionStatus::class)->create()->id; |
| 14 | 14 | }, |
| 15 | - 'type_id' => function () { |
|
| 15 | + 'type_id' => function() { |
|
| 16 | 16 | return factory(App\Models\TransactionType::class)->create()->id; |
| 17 | 17 | }, |
| 18 | 18 | 'account_name' => $faker->word, |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | * @package YOUREOACKAGE |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -$factory->define(App\Models\TransactionType::class, function (Faker\Generator $faker) { |
|
| 11 | +$factory->define(App\Models\TransactionType::class, function(Faker\Generator $faker) { |
|
| 12 | 12 | // $TypeArrayDesc = array ("Withdrawal", "Deposit", "Transfer"); |
| 13 | 13 | return [ |
| 14 | 14 | 'name' => $faker->word, |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up() |
| 13 | 13 | { |
| 14 | - Schema::create('media', function (Blueprint $table) { |
|
| 14 | + Schema::create('media', function(Blueprint $table) { |
|
| 15 | 15 | $table->increments('id'); |
| 16 | 16 | $table->morphs('model'); |
| 17 | 17 | $table->string('collection_name'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('transaction_status', function (Blueprint $table) { |
|
| 16 | + Schema::create('transaction_status', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('slug')->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('transaction_types', function (Blueprint $table) { |
|
| 16 | + Schema::create('transaction_types', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('slug')->unique(); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | "Amount" => floatval($item->amount), |
| 28 | 28 | "Notes" => $item->notes, |
| 29 | 29 | "Attachments" => $item->getMedia('attachments') |
| 30 | - ->map(function ($mediaItem) { |
|
| 30 | + ->map(function($mediaItem) { |
|
| 31 | 31 | return $mediaItem->file_name; |
| 32 | 32 | })->implode(',')]; |
| 33 | 33 | } |