GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 37b02e...ebbbe1 )
by James
08:59
created
app/Http/Controllers/Transaction/LinkController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * You should have received a copy of the GNU General Public License
19 19
  * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
20 20
  */
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace FireflyIII\Http\Controllers\Transaction;
24 24
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         parent::__construct();
47 47
         // some useful repositories:
48 48
         $this->middleware(
49
-            function ($request, $next) {
49
+            function($request, $next) {
50 50
                 app('view')->share('title', trans('firefly.transactions'));
51 51
                 app('view')->share('mainTitleIcon', 'fa-repeat');
52 52
 
Please login to merge, or discard this patch.
app/Factory/TransactionJournalFactory.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * TransactionJournalFactory.php
5 5
  * Copyright (c) 2018 [email protected]
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 
92 92
         // store date meta fields (if present):
93 93
         $fields = ['sepa-cc', 'sepa-ct-op', 'sepa-ct-id', 'sepa-db', 'sepa-country', 'sepa-ep', 'sepa-ci', 'interest_date', 'book_date', 'process_date',
94
-                   'due_date', 'payment_date', 'invoice_date', 'internal_reference', 'bunq_payment_id'];
94
+                    'due_date', 'payment_date', 'invoice_date', 'internal_reference', 'bunq_payment_id'];
95 95
 
96 96
         foreach ($fields as $field) {
97 97
             $this->storeMeta($journal, $data, $field);
Please login to merge, or discard this patch.
app/Console/Commands/VerifyDatabase.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
         // get invalid journals
147 147
         $errored  = [];
148 148
         $journals = DB::table('transactions')
149
-                      ->groupBy('transaction_journal_id')
150
-                      ->get(['transaction_journal_id', DB::raw('SUM(amount) AS the_sum')]);
149
+                        ->groupBy('transaction_journal_id')
150
+                        ->get(['transaction_journal_id', DB::raw('SUM(amount) AS the_sum')]);
151 151
         /** @var stdClass $entry */
152 152
         foreach ($journals as $entry) {
153 153
             if (0 !== bccomp((string)$entry->the_sum, '0')) {
@@ -227,12 +227,12 @@  discard block
 block discarded – undo
227 227
     private function reportAccounts()
228 228
     {
229 229
         $set = Account::leftJoin('transactions', 'transactions.account_id', '=', 'accounts.id')
230
-                      ->leftJoin('users', 'accounts.user_id', '=', 'users.id')
231
-                      ->groupBy(['accounts.id', 'accounts.encrypted', 'accounts.name', 'accounts.user_id', 'users.email'])
232
-                      ->whereNull('transactions.account_id')
233
-                      ->get(
234
-                          ['accounts.id', 'accounts.encrypted', 'accounts.name', 'accounts.user_id', 'users.email']
235
-                      );
230
+                        ->leftJoin('users', 'accounts.user_id', '=', 'users.id')
231
+                        ->groupBy(['accounts.id', 'accounts.encrypted', 'accounts.name', 'accounts.user_id', 'users.email'])
232
+                        ->whereNull('transactions.account_id')
233
+                        ->get(
234
+                            ['accounts.id', 'accounts.encrypted', 'accounts.name', 'accounts.user_id', 'users.email']
235
+                        );
236 236
 
237 237
         /** @var stdClass $entry */
238 238
         foreach ($set as $entry) {
@@ -249,10 +249,10 @@  discard block
 block discarded – undo
249 249
     private function reportBudgetLimits()
250 250
     {
251 251
         $set = Budget::leftJoin('budget_limits', 'budget_limits.budget_id', '=', 'budgets.id')
252
-                     ->leftJoin('users', 'budgets.user_id', '=', 'users.id')
253
-                     ->groupBy(['budgets.id', 'budgets.name', 'budgets.encrypted', 'budgets.user_id', 'users.email'])
254
-                     ->whereNull('budget_limits.id')
255
-                     ->get(['budgets.id', 'budgets.name', 'budgets.user_id', 'budgets.encrypted', 'users.email']);
252
+                        ->leftJoin('users', 'budgets.user_id', '=', 'users.id')
253
+                        ->groupBy(['budgets.id', 'budgets.name', 'budgets.encrypted', 'budgets.user_id', 'users.email'])
254
+                        ->whereNull('budget_limits.id')
255
+                        ->get(['budgets.id', 'budgets.name', 'budgets.user_id', 'budgets.encrypted', 'users.email']);
256 256
 
257 257
         /** @var Budget $entry */
258 258
         foreach ($set as $entry) {
@@ -273,20 +273,20 @@  discard block
 block discarded – undo
273 273
     private function reportDeletedAccounts()
274 274
     {
275 275
         $set = Account::leftJoin('transactions', 'transactions.account_id', '=', 'accounts.id')
276
-                      ->leftJoin('transaction_journals', 'transaction_journals.id', '=', 'transactions.transaction_journal_id')
277
-                      ->whereNotNull('accounts.deleted_at')
278
-                      ->whereNotNull('transactions.id')
279
-                      ->where(
280
-                          function (Builder $q) {
281
-                              $q->whereNull('transactions.deleted_at');
282
-                              $q->orWhereNull('transaction_journals.deleted_at');
283
-                          }
284
-                      )
285
-                      ->get(
286
-                          ['accounts.id as account_id', 'accounts.deleted_at as account_deleted_at', 'transactions.id as transaction_id',
287
-                           'transactions.deleted_at as transaction_deleted_at', 'transaction_journals.id as journal_id',
288
-                           'transaction_journals.deleted_at as journal_deleted_at',]
289
-                      );
276
+                        ->leftJoin('transaction_journals', 'transaction_journals.id', '=', 'transactions.transaction_journal_id')
277
+                        ->whereNotNull('accounts.deleted_at')
278
+                        ->whereNotNull('transactions.id')
279
+                        ->where(
280
+                            function (Builder $q) {
281
+                                $q->whereNull('transactions.deleted_at');
282
+                                $q->orWhereNull('transaction_journals.deleted_at');
283
+                            }
284
+                        )
285
+                        ->get(
286
+                            ['accounts.id as account_id', 'accounts.deleted_at as account_deleted_at', 'transactions.id as transaction_id',
287
+                            'transactions.deleted_at as transaction_deleted_at', 'transaction_journals.id as journal_id',
288
+                            'transaction_journals.deleted_at as journal_deleted_at',]
289
+                        );
290 290
         /** @var stdClass $entry */
291 291
         foreach ($set as $entry) {
292 292
             $date = $entry->transaction_deleted_at ?? $entry->journal_deleted_at;
@@ -312,17 +312,17 @@  discard block
 block discarded – undo
312 312
         ];
313 313
         foreach ($configuration as $transactionType => $accountTypes) {
314 314
             $set = TransactionJournal::leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id')
315
-                                     ->leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
316
-                                     ->leftJoin('accounts', 'accounts.id', '=', 'transactions.account_id')
317
-                                     ->leftJoin('account_types', 'account_types.id', 'accounts.account_type_id')
318
-                                     ->leftJoin('users', 'users.id', '=', 'transaction_journals.user_id')
319
-                                     ->where('transaction_types.type', $transactionType)
320
-                                     ->whereIn('account_types.type', $accountTypes)
321
-                                     ->whereNull('transaction_journals.deleted_at')
322
-                                     ->get(
323
-                                         ['transaction_journals.id', 'transaction_journals.user_id', 'users.email', 'account_types.type as a_type',
324
-                                          'transaction_types.type',]
325
-                                     );
315
+                                        ->leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
316
+                                        ->leftJoin('accounts', 'accounts.id', '=', 'transactions.account_id')
317
+                                        ->leftJoin('account_types', 'account_types.id', 'accounts.account_type_id')
318
+                                        ->leftJoin('users', 'users.id', '=', 'transaction_journals.user_id')
319
+                                        ->where('transaction_types.type', $transactionType)
320
+                                        ->whereIn('account_types.type', $accountTypes)
321
+                                        ->whereNull('transaction_journals.deleted_at')
322
+                                        ->get(
323
+                                            ['transaction_journals.id', 'transaction_journals.user_id', 'users.email', 'account_types.type as a_type',
324
+                                            'transaction_types.type',]
325
+                                        );
326 326
             foreach ($set as $entry) {
327 327
                 $this->error(
328 328
                     sprintf(
@@ -346,17 +346,17 @@  discard block
 block discarded – undo
346 346
     {
347 347
         $count = 0;
348 348
         $set   = TransactionJournal::leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
349
-                                   ->whereNotNull('transaction_journals.deleted_at')// USE THIS
350
-                                   ->whereNull('transactions.deleted_at')
351
-                                   ->whereNotNull('transactions.id')
352
-                                   ->get(
353
-                                       [
354
-                                           'transaction_journals.id as journal_id',
355
-                                           'transaction_journals.description',
356
-                                           'transaction_journals.deleted_at as journal_deleted',
357
-                                           'transactions.id as transaction_id',
358
-                                           'transactions.deleted_at as transaction_deleted_at',]
359
-                                   );
349
+                                    ->whereNotNull('transaction_journals.deleted_at')// USE THIS
350
+                                    ->whereNull('transactions.deleted_at')
351
+                                    ->whereNotNull('transactions.id')
352
+                                    ->get(
353
+                                        [
354
+                                            'transaction_journals.id as journal_id',
355
+                                            'transaction_journals.description',
356
+                                            'transaction_journals.deleted_at as journal_deleted',
357
+                                            'transactions.id as transaction_id',
358
+                                            'transactions.deleted_at as transaction_deleted_at',]
359
+                                    );
360 360
         /** @var stdClass $entry */
361 361
         foreach ($set as $entry) {
362 362
             $this->error(
@@ -377,9 +377,9 @@  discard block
 block discarded – undo
377 377
     {
378 378
         $count = 0;
379 379
         $set   = TransactionJournal::leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
380
-                                   ->groupBy('transaction_journals.id')
381
-                                   ->whereNull('transactions.transaction_journal_id')
382
-                                   ->get(['transaction_journals.id']);
380
+                                    ->groupBy('transaction_journals.id')
381
+                                    ->whereNull('transactions.transaction_journal_id')
382
+                                    ->get(['transaction_journals.id']);
383 383
 
384 384
         foreach ($set as $entry) {
385 385
             $this->error(
@@ -455,12 +455,12 @@  discard block
 block discarded – undo
455 455
     private function reportTransactions()
456 456
     {
457 457
         $set = Transaction::leftJoin('transaction_journals', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
458
-                          ->whereNotNull('transactions.deleted_at')
459
-                          ->whereNull('transaction_journals.deleted_at')
460
-                          ->get(
461
-                              ['transactions.id as transaction_id', 'transactions.deleted_at as transaction_deleted', 'transaction_journals.id as journal_id',
462
-                               'transaction_journals.deleted_at',]
463
-                          );
458
+                            ->whereNotNull('transactions.deleted_at')
459
+                            ->whereNull('transaction_journals.deleted_at')
460
+                            ->get(
461
+                                ['transactions.id as transaction_id', 'transactions.deleted_at as transaction_deleted', 'transaction_journals.id as journal_id',
462
+                                'transaction_journals.deleted_at',]
463
+                            );
464 464
         /** @var stdClass $entry */
465 465
         foreach ($set as $entry) {
466 466
             $this->error(
@@ -476,10 +476,10 @@  discard block
 block discarded – undo
476 476
     private function reportTransfersBudgets()
477 477
     {
478 478
         $set = TransactionJournal::distinct()
479
-                                 ->leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id')
480
-                                 ->leftJoin('budget_transaction_journal', 'transaction_journals.id', '=', 'budget_transaction_journal.transaction_journal_id')
481
-                                 ->whereIn('transaction_types.type', [TransactionType::TRANSFER, TransactionType::DEPOSIT])
482
-                                 ->whereNotNull('budget_transaction_journal.budget_id')->get(['transaction_journals.*']);
479
+                                    ->leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id')
480
+                                    ->leftJoin('budget_transaction_journal', 'transaction_journals.id', '=', 'budget_transaction_journal.transaction_journal_id')
481
+                                    ->whereIn('transaction_types.type', [TransactionType::TRANSFER, TransactionType::DEPOSIT])
482
+                                    ->whereNotNull('budget_transaction_journal.budget_id')->get(['transaction_journals.*']);
483 483
 
484 484
         /** @var TransactionJournal $entry */
485 485
         foreach ($set as $entry) {
Please login to merge, or discard this patch.
app/Console/Commands/UpgradeDatabase.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * UpgradeDatabase.php
5 5
  * Copyright (c) 2017 [email protected]
@@ -99,12 +99,12 @@  discard block
 block discarded – undo
99 99
         if (!Schema::hasTable('transaction_journals')) {
100 100
             return;
101 101
         }
102
-        $subQuery   = TransactionJournal::leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
102
+        $subQuery = TransactionJournal::leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
103 103
                                         ->whereNull('transaction_journals.deleted_at')
104 104
                                         ->whereNull('transactions.deleted_at')
105 105
                                         ->groupBy(['transaction_journals.id'])
106 106
                                         ->select(['transaction_journals.id', DB::raw('COUNT(transactions.id) AS t_count')]);
107
-        $result     = DB::table(DB::raw('(' . $subQuery->toSql() . ') AS derived'))
107
+        $result = DB::table(DB::raw('(' . $subQuery->toSql() . ') AS derived'))
108 108
                         ->mergeBindings($subQuery->getQuery())
109 109
                         ->where('t_count', '>', 2)
110 110
                         ->select(['id', 't_count']);
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                            ->whereIn('account_types.type', [AccountType::DEFAULT, AccountType::ASSET])->get(['accounts.*']);
130 130
 
131 131
         $accounts->each(
132
-            function (Account $account) {
132
+            function(Account $account) {
133 133
                 // get users preference, fall back to system pref.
134 134
                 $defaultCurrencyCode = Preferences::getForUser($account->user, 'currencyPreference', config('firefly.default_currency', 'EUR'))->data;
135 135
                 $defaultCurrency     = TransactionCurrency::where('code', $defaultCurrencyCode)->first();
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             ->get(['transaction_journals.*']);
191 191
 
192 192
         $set->each(
193
-            function (TransactionJournal $journal) use ($repository) {
193
+            function(TransactionJournal $journal) use ($repository) {
194 194
                 // get the transaction with the asset account in it:
195 195
                 /** @var Transaction $transaction */
196 196
                 $transaction = $journal->transactions()
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 $currency     = $repository->find((int)$account->getMeta('currency_id'));
206 206
                 $transactions = $journal->transactions()->get();
207 207
                 $transactions->each(
208
-                    function (Transaction $transaction) use ($currency) {
208
+                    function(Transaction $transaction) use ($currency) {
209 209
                         if (null === $transaction->transaction_currency_id) {
210 210
                             $transaction->transaction_currency_id = $currency->id;
211 211
                             $transaction->save();
@@ -247,12 +247,12 @@  discard block
 block discarded – undo
247 247
             ->get(['transaction_journals.*']);
248 248
 
249 249
         $set->each(
250
-            function (TransactionJournal $transfer) {
250
+            function(TransactionJournal $transfer) {
251 251
                 // select all "source" transactions:
252 252
                 /** @var Collection $transactions */
253 253
                 $transactions = $transfer->transactions()->where('amount', '<', 0)->get();
254 254
                 $transactions->each(
255
-                    function (Transaction $transaction) {
255
+                    function(Transaction $transaction) {
256 256
                         $this->updateTransactionCurrency($transaction);
257 257
                         $this->updateJournalCurrency($transaction);
258 258
                     }
Please login to merge, or discard this patch.
app/Export/ExpandedProcessor.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
         $collector = app(JournalCollectorInterface::class);
105 105
         $collector->setUser($this->job->user);
106 106
         $collector->setAccounts($this->accounts)->setRange($this->settings['startDate'], $this->settings['endDate'])
107
-                  ->withOpposingAccount()->withBudgetInformation()->withCategoryInformation()
108
-                  ->removeFilter(InternalTransferFilter::class);
107
+                    ->withOpposingAccount()->withBudgetInformation()->withCategoryInformation()
108
+                    ->removeFilter(InternalTransferFilter::class);
109 109
         $transactions = $collector->getJournals();
110 110
         // get some more meta data for each entry:
111 111
         $ids         = $transactions->pluck('journal_id')->toArray();
@@ -287,10 +287,10 @@  discard block
 block discarded – undo
287 287
         $array  = array_unique($array);
288 288
         $return = [];
289 289
         $set    = AccountMeta::whereIn('account_id', $array)
290
-                             ->leftJoin('accounts', 'accounts.id', 'account_meta.account_id')
291
-                             ->where('accounts.user_id', $this->job->user_id)
292
-                             ->whereIn('account_meta.name', ['accountNumber', 'BIC', 'currency_id'])
293
-                             ->get(['account_meta.id', 'account_meta.account_id', 'account_meta.name', 'account_meta.data']);
290
+                                ->leftJoin('accounts', 'accounts.id', 'account_meta.account_id')
291
+                                ->where('accounts.user_id', $this->job->user_id)
292
+                                ->whereIn('account_meta.name', ['accountNumber', 'BIC', 'currency_id'])
293
+                                ->get(['account_meta.id', 'account_meta.account_id', 'account_meta.name', 'account_meta.data']);
294 294
         /** @var AccountMeta $meta */
295 295
         foreach ($set as $meta) {
296 296
             $id                       = (int)$meta->account_id;
@@ -311,8 +311,8 @@  discard block
 block discarded – undo
311 311
     {
312 312
         $array  = array_unique($array);
313 313
         $notes  = Note::where('notes.noteable_type', 'FireflyIII\\Models\\TransactionJournal')
314
-                      ->whereIn('notes.noteable_id', $array)
315
-                      ->get(['notes.*']);
314
+                        ->whereIn('notes.noteable_id', $array)
315
+                        ->get(['notes.*']);
316 316
         $return = [];
317 317
         /** @var Note $note */
318 318
         foreach ($notes as $note) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * ExpandedProcessor.php
5 5
  * Copyright (c) 2017 [email protected]
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $ibans      = array_merge($this->getIbans($assetIds), $this->getIbans($opposingIds));
118 118
         $currencies = $this->getAccountCurrencies($ibans);
119 119
         $transactions->each(
120
-            function (Transaction $transaction) use ($notes, $tags, $ibans, $currencies) {
120
+            function(Transaction $transaction) use ($notes, $tags, $ibans, $currencies) {
121 121
                 $journalId                            = (int)$transaction->journal_id;
122 122
                 $accountId                            = (int)$transaction->account_id;
123 123
                 $opposingId                           = (int)$transaction->opposing_account_id;
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     public function convertJournals(): bool
161 161
     {
162 162
         $this->journals->each(
163
-            function (Transaction $transaction) {
163
+            function(Transaction $transaction) {
164 164
                 $this->exportEntries->push(Entry::fromTransaction($transaction));
165 165
             }
166 166
         );
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
      */
336 336
     private function getTags(array $array): array
337 337
     {
338
-        $set    = DB::table('tag_transaction_journal')
338
+        $set = DB::table('tag_transaction_journal')
339 339
                     ->whereIn('tag_transaction_journal.transaction_journal_id', $array)
340 340
                     ->leftJoin('tags', 'tag_transaction_journal.tag_id', '=', 'tags.id')
341 341
                     ->leftJoin('transaction_journals', 'transaction_journals.id', '=', 'tag_transaction_journal.transaction_journal_id')
Please login to merge, or discard this patch.
app/Generator/Report/Standard/YearReportGenerator.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,6 @@
 block discarded – undo
41 41
     /**
42 42
      * @return string
43 43
      *
44
-
45 44
      */
46 45
     public function generate(): string
47 46
     {
Please login to merge, or discard this patch.
app/Services/Bunq/Request/BunqRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * You should have received a copy of the GNU General Public License
19 19
  * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
20 20
  */
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace FireflyIII\Services\Bunq\Request;
24 24
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 $toSign .= sprintf("%s: %s\n", $name, $value);
138 138
             }
139 139
         }
140
-        $toSign    .= "\n" . $data;
140
+        $toSign .= "\n" . $data;
141 141
         $signature = '';
142 142
 
143 143
 
Please login to merge, or discard this patch.
app/Services/Github/Request/UpdateRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
20 20
  */
21 21
 
22
-declare(strict_types=1);
22
+declare(strict_types = 1);
23 23
 
24 24
 namespace FireflyIII\Services\Github\Request;
25 25
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         //fetch the products for each category
60 60
         if (isset($releaseXml->entry)) {
61 61
             foreach ($releaseXml->entry as $entry) {
62
-                $array            = [
62
+                $array = [
63 63
                     'id'      => (string)$entry->id,
64 64
                     'updated' => (string)$entry->updated,
65 65
                     'title'   => (string)$entry->title,
Please login to merge, or discard this patch.
app/Api/V1/Requests/BillRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * BillRequest.php
5 5
  * Copyright (c) 2018 [email protected]
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 break;
88 88
             case 'PUT':
89 89
             case 'PATCH':
90
-                $bill           = $this->route()->parameter('bill');
90
+                $bill = $this->route()->parameter('bill');
91 91
                 $rules['name']  .= ',' . $bill->id;
92 92
                 $rules['match'] .= ',' . $bill->id;
93 93
                 break;
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     public function withValidator(Validator $validator): void
107 107
     {
108 108
         $validator->after(
109
-            function (Validator $validator) {
109
+            function(Validator $validator) {
110 110
                 $data = $validator->getData();
111 111
                 $min  = (float)($data['amount_min'] ?? 0);
112 112
                 $max  = (float)($data['amount_max'] ?? 0);
Please login to merge, or discard this patch.