@@ -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', |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $categoryName = $payee->DefCateg; |
50 | 50 | $subCategoryName = $payee->DefSubCateg; |
51 | 51 | |
52 | - $category = Category::where('name', $subCategoryName)->whereHas('parentCategory', function ($query) use ($categoryName) { |
|
52 | + $category = Category::where('name', $subCategoryName)->whereHas('parentCategory', function($query) use ($categoryName) { |
|
53 | 53 | $query->where('name', $categoryName); |
54 | 54 | })->first(); |
55 | 55 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('settings', function (Blueprint $table) { |
|
16 | + Schema::create('settings', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('scope'); |
19 | 19 | $table->json('data'); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | parent::setUp(); |
22 | 22 | |
23 | - $this->setUpDatabase(function () { |
|
23 | + $this->setUpDatabase(function() { |
|
24 | 24 | $this->artisan('db:seed', ['--class' => UsersTableSeeder::class]); |
25 | 25 | }); |
26 | 26 |
@@ -19,6 +19,6 @@ |
||
19 | 19 | Route::get('settings', 'SettingController@index'); |
20 | 20 | Route::post('settings', 'SettingController@update'); |
21 | 21 | |
22 | -Route::group(['prefix' => '/admin'], function () { |
|
22 | +Route::group(['prefix' => '/admin'], function() { |
|
23 | 23 | Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index'); |
24 | 24 | }); |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | Route::any('services.php', 'MmexController@handle')->middleware('ensureguid'); |
17 | 17 | |
18 | -Route::group(['prefix' => 'api/v1'], function () { |
|
19 | - Route::get('/user', function (Request $request) { |
|
18 | +Route::group(['prefix' => 'api/v1'], function() { |
|
19 | + Route::get('/user', function(Request $request) { |
|
20 | 20 | return $request->user(); |
21 | 21 | })->middleware('auth:api'); |
22 | 22 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $database->connection($name)->beginTransaction(); |
51 | 51 | } |
52 | 52 | |
53 | - $this->beforeApplicationDestroyed(function () use ($database) { |
|
53 | + $this->beforeApplicationDestroyed(function() use ($database) { |
|
54 | 54 | foreach ($this->connectionsToTransact() as $name) { |
55 | 55 | $database->connection($name)->rollBack(); |
56 | 56 | } |
@@ -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 | } |