@@ -18,7 +18,7 @@ discard block |
||
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\Import\Storage; |
24 | 24 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | { |
71 | 71 | if ($this->rules->count() > 0) { |
72 | 72 | $this->rules->each( |
73 | - function (Rule $rule) use ($journal) { |
|
73 | + function(Rule $rule) use ($journal) { |
|
74 | 74 | Log::debug(sprintf('Going to apply rule #%d to journal %d.', $rule->id, $journal->id)); |
75 | 75 | $processor = Processor::make($rule); |
76 | 76 | $processor->handleTransactionJournal($journal); |
@@ -93,13 +93,13 @@ discard block |
||
93 | 93 | */ |
94 | 94 | protected function matchBills(TransactionJournal $journal): bool |
95 | 95 | { |
96 | - if(!is_null($journal->bill_id)) { |
|
96 | + if (!is_null($journal->bill_id)) { |
|
97 | 97 | Log::debug('Journal is already linked to a bill, will not scan.'); |
98 | 98 | return true; |
99 | 99 | } |
100 | 100 | if ($this->bills->count() > 0) { |
101 | 101 | $this->bills->each( |
102 | - function (Bill $bill) use ($journal) { |
|
102 | + function(Bill $bill) use ($journal) { |
|
103 | 103 | Log::debug(sprintf('Going to match bill #%d to journal %d.', $bill->id, $journal->id)); |
104 | 104 | $this->billRepository->scan($bill, $journal); |
105 | 105 | } |
@@ -305,16 +305,16 @@ discard block |
||
305 | 305 | */ |
306 | 306 | private function getTransfers(): array |
307 | 307 | { |
308 | - $set = TransactionJournal::leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id') |
|
308 | + $set = TransactionJournal::leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id') |
|
309 | 309 | ->leftJoin( |
310 | 310 | 'transactions AS source', |
311 | - function (JoinClause $join) { |
|
311 | + function(JoinClause $join) { |
|
312 | 312 | $join->on('transaction_journals.id', '=', 'source.transaction_journal_id')->where('source.amount', '<', 0); |
313 | 313 | } |
314 | 314 | ) |
315 | 315 | ->leftJoin( |
316 | 316 | 'transactions AS destination', |
317 | - function (JoinClause $join) { |
|
317 | + function(JoinClause $join) { |
|
318 | 318 | $join->on('transaction_journals.id', '=', 'destination.transaction_journal_id')->where( |
319 | 319 | 'destination.amount', |
320 | 320 | '>', |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | ->get( |
330 | 330 | ['transaction_journals.id', 'transaction_journals.encrypted', 'transaction_journals.description', |
331 | 331 | 'source_accounts.name as source_name', 'destination_accounts.name as destination_name', 'destination.amount', |
332 | - 'transaction_journals.date',] |
|
332 | + 'transaction_journals.date', ] |
|
333 | 333 | ); |
334 | 334 | $array = []; |
335 | 335 | /** @var TransactionJournal $entry */ |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | Log::debug(sprintf('Created journal with ID #%d', $journal->id)); |
437 | 437 | |
438 | 438 | // create transactions: |
439 | - $one = [ |
|
439 | + $one = [ |
|
440 | 440 | 'id' => $journal->id, |
441 | 441 | 'account' => $parameters['asset']->id, |
442 | 442 | 'currency' => $parameters['currency'], |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | if (null === $dbTag->id) { |
492 | 492 | $dbTag = $repository->store( |
493 | 493 | ['tag' => $tag, 'date' => null, 'description' => null, 'latitude' => null, 'longitude' => null, |
494 | - 'zoomLevel' => null, 'tagMode' => 'nothing',] |
|
494 | + 'zoomLevel' => null, 'tagMode' => 'nothing', ] |
|
495 | 495 | ); |
496 | 496 | } |
497 | 497 | $journal->tags()->save($dbTag); |
@@ -18,7 +18,7 @@ discard block |
||
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\Helpers\Report; |
24 | 24 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** @var Bill $bill */ |
80 | 80 | foreach ($bills as $bill) { |
81 | 81 | $expectedDates = $repository->getPayDatesInRange($bill, $start, $end); |
82 | - foreach($expectedDates as $payDate) { |
|
82 | + foreach ($expectedDates as $payDate) { |
|
83 | 83 | $endOfPayPeriod = app('navigation')->endOfX($payDate, $bill->repeat_freq, null); |
84 | 84 | |
85 | 85 | $collector = app(JournalCollectorInterface::class); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | $billLine->setMax(strval($bill->amount_max)); |
95 | 95 | $billLine->setHit(false); |
96 | 96 | $entry = $journals->filter( |
97 | - function (Transaction $transaction) use ($bill) { |
|
97 | + function(Transaction $transaction) use ($bill) { |
|
98 | 98 | return $transaction->bill_id === $bill->id; |
99 | 99 | } |
100 | 100 | ); |
@@ -18,7 +18,7 @@ discard block |
||
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\Models; |
24 | 24 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | 'updated_at' => 'datetime', |
42 | 42 | ]; |
43 | 43 | |
44 | - protected $fillable = ['name','display_name','description']; |
|
44 | + protected $fillable = ['name', 'display_name', 'description']; |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
@@ -18,7 +18,7 @@ discard block |
||
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; |
24 | 24 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | parent::__construct(); |
52 | 52 | |
53 | 53 | $this->middleware( |
54 | - function ($request, $next) { |
|
54 | + function($request, $next) { |
|
55 | 55 | View::share('title', trans('firefly.currencies')); |
56 | 56 | View::share('mainTitleIcon', 'fa-usd'); |
57 | 57 | $this->repository = app(CurrencyRepositoryInterface::class); |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | { |
207 | 207 | $currencies = $this->repository->get(); |
208 | 208 | $currencies = $currencies->sortBy( |
209 | - function (TransactionCurrency $currency) { |
|
209 | + function(TransactionCurrency $currency) { |
|
210 | 210 | return $currency->name; |
211 | 211 | } |
212 | 212 | ); |