@@ -8,7 +8,7 @@ |
||
8 | 8 | * |
9 | 9 | * @version 1.0 |
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, |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $transaction = Transaction::findOrFail($transactionId); |
88 | 88 | |
89 | 89 | // get attachment of transaction |
90 | - $media = $transaction->getMedia('attachments')->first(function ($item) use ($fileName) { |
|
90 | + $media = $transaction->getMedia('attachments')->first(function($item) use ($fileName) { |
|
91 | 91 | return $item->file_name == $fileName; |
92 | 92 | }); |
93 | 93 |
@@ -27,10 +27,10 @@ |
||
27 | 27 | 'Payee' => $item->payee_name, |
28 | 28 | 'Category' => $item->category_name, |
29 | 29 | 'SubCategory' => $item->sub_category_name, |
30 | - 'Amount' => (string) floatval($item->amount), |
|
30 | + 'Amount' => (string)floatval($item->amount), |
|
31 | 31 | 'Notes' => $item->notes, |
32 | 32 | 'Attachments' => $item->getMedia('attachments') |
33 | - ->map(function (Media $mediaItem) { |
|
33 | + ->map(function(Media $mediaItem) { |
|
34 | 34 | return $mediaItem->file_name; |
35 | 35 | })->implode(';'), ]; |
36 | 36 | } |
@@ -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'); |
@@ -159,7 +159,7 @@ |
||
159 | 159 | 'Payee' => $transaction->payee_name, |
160 | 160 | 'Category' => $transaction->category_name, |
161 | 161 | 'SubCategory' => $transaction->sub_category_name, |
162 | - 'Amount' => (string) $transaction->amount, |
|
162 | + 'Amount' => (string)$transaction->amount, |
|
163 | 163 | 'Notes' => $transaction->notes, |
164 | 164 | 'Attachments' => 'Transaction_'.$transaction->id.'_test-receipt.png;Transaction_'.$transaction->id |
165 | 165 | .'_test-receipt-2.png;Transaction_'.$transaction->id.'_test-receipt-3.png', |
@@ -39,7 +39,7 @@ |
||
39 | 39 | $billsServices = factory(Category::class)->create(['name' => 'Services', 'parent_id' => $bills->id]); |
40 | 40 | |
41 | 41 | $data = ['MMEX_Post' => '{ "Payees" : [ { "PayeeName" : "Mc Donalds", "DefCateg" : "'.$food->name.'", "DefSubCateg" : "'.$foodPurchases->name.'" },'. |
42 | - '{ "PayeeName" : "Spotify", "DefCateg" : "'.$bills->name.'", "DefSubCateg" : "'.$billsServices->name.'" } ] }',]; |
|
42 | + '{ "PayeeName" : "Spotify", "DefCateg" : "'.$bills->name.'", "DefSubCateg" : "'.$billsServices->name.'" } ] }', ]; |
|
43 | 43 | |
44 | 44 | $url = $this->buildUrl('', ['import_payee' => 'true']); |
45 | 45 |