@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | // translations: |
58 | 58 | $this->middleware( |
59 | - function ($request, $next) { |
|
59 | + function($request, $next) { |
|
60 | 60 | app('view')->share('mainTitleIcon', 'fa-paint-brush'); |
61 | 61 | app('view')->share('title', (string)trans('firefly.recurrences')); |
62 | 62 | |
@@ -98,8 +98,8 @@ discard block |
||
98 | 98 | $today = new Carbon; |
99 | 99 | $year = new Carbon; |
100 | 100 | $year->addYear(); |
101 | - if($recurrence->first_date > $today) { |
|
102 | - $today =clone $recurrence->first_date; |
|
101 | + if ($recurrence->first_date > $today) { |
|
102 | + $today = clone $recurrence->first_date; |
|
103 | 103 | $year = clone $today; |
104 | 104 | $year->addYear(); |
105 | 105 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $array['first_date'] = new Carbon($array['first_date']); |
108 | 108 | $array['repeat_until'] = null === $array['repeat_until'] ? null : new Carbon($array['repeat_until']); |
109 | 109 | $array['latest_date'] = null === $array['latest_date'] ? null : new Carbon($array['latest_date']); |
110 | - $array['occurrences'] = array_slice($this->recurring->getOccurrencesInRange($recurrence->recurrenceRepetitions->first(), $today, $year),0,1); |
|
110 | + $array['occurrences'] = array_slice($this->recurring->getOccurrencesInRange($recurrence->recurrenceRepetitions->first(), $today, $year), 0, 1); |
|
111 | 111 | $recurring[] = $array; |
112 | 112 | } |
113 | 113 | $paginator = new LengthAwarePaginator($recurring, $total, $pageSize, $page); |
@@ -159,8 +159,8 @@ |
||
159 | 159 | { |
160 | 160 | /** @var AccountMeta $metaValue */ |
161 | 161 | $metaValue = $this->accountMeta() |
162 | - ->where('name', 'account_number') |
|
163 | - ->first(); |
|
162 | + ->where('name', 'account_number') |
|
163 | + ->first(); |
|
164 | 164 | |
165 | 165 | return $metaValue ? $metaValue->data : ''; |
166 | 166 | } |
@@ -73,7 +73,7 @@ |
||
73 | 73 | { |
74 | 74 | /** @var JournalRepositoryInterface $repository */ |
75 | 75 | $repository = app(JournalRepositoryInterface::class); |
76 | - $dest = $repository->getDestinationAccount($journal); |
|
76 | + $dest = $repository->getDestinationAccount($journal); |
|
77 | 77 | $search = strtolower($this->triggerValue); |
78 | 78 | $searchLength = strlen($search); |
79 | 79 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | { |
74 | 74 | /** @var JournalRepositoryInterface $repository */ |
75 | 75 | $repository = app(JournalRepositoryInterface::class); |
76 | - $dest = $repository->getDestinationAccount($journal); |
|
76 | + $dest = $repository->getDestinationAccount($journal); |
|
77 | 77 | $nameLength = strlen($dest->name); |
78 | 78 | $search = $this->triggerValue; |
79 | 79 | $searchLength = strlen($search); |
@@ -78,13 +78,13 @@ |
||
78 | 78 | |
79 | 79 | if (strtolower($source->name) === $search) { |
80 | 80 | Log::debug(sprintf('RuleTrigger %s for journal #%d: "%s" is "%s", return true.', |
81 | - get_class($this), $journal->id, $source->name, $search)); |
|
81 | + get_class($this), $journal->id, $source->name, $search)); |
|
82 | 82 | |
83 | 83 | return true; |
84 | 84 | } |
85 | 85 | |
86 | 86 | Log::debug(sprintf('RuleTrigger %s for journal #%d: "%s" is NOT "%s", return false.', |
87 | - get_class($this), $journal->id, $source->name, $search)); |
|
87 | + get_class($this), $journal->id, $source->name, $search)); |
|
88 | 88 | |
89 | 89 | return false; |
90 | 90 | } |
@@ -79,13 +79,13 @@ |
||
79 | 79 | |
80 | 80 | if (strtolower($dest->name) === $search) { |
81 | 81 | Log::debug(sprintf('RuleTrigger %s for journal #%d: "%s" is "%s", return true.', |
82 | - get_class($this), $journal->id, $dest->name, $search)); |
|
82 | + get_class($this), $journal->id, $dest->name, $search)); |
|
83 | 83 | |
84 | 84 | return true; |
85 | 85 | } |
86 | 86 | |
87 | 87 | Log::debug(sprintf('RuleTrigger %s for journal #%d: "%s" is NOT "%s", return false.', |
88 | - get_class($this), $journal->id, $dest->name, $search)); |
|
88 | + get_class($this), $journal->id, $dest->name, $search)); |
|
89 | 89 | |
90 | 90 | return false; |
91 | 91 | } |
@@ -74,7 +74,7 @@ |
||
74 | 74 | { |
75 | 75 | /** @var JournalRepositoryInterface $repository */ |
76 | 76 | $repository = app(JournalRepositoryInterface::class); |
77 | - $dest = $repository->getDestinationAccount($journal); |
|
77 | + $dest = $repository->getDestinationAccount($journal); |
|
78 | 78 | $search = strtolower($this->triggerValue); |
79 | 79 | |
80 | 80 | if (strtolower($dest->name) === $search) { |
@@ -73,7 +73,7 @@ |
||
73 | 73 | { |
74 | 74 | /** @var JournalRepositoryInterface $repository */ |
75 | 75 | $repository = app(JournalRepositoryInterface::class); |
76 | - $dest = $repository->getDestinationAccount($journal); |
|
76 | + $dest = $repository->getDestinationAccount($journal); |
|
77 | 77 | $search = strtolower($this->triggerValue); |
78 | 78 | $part1 = strtolower(substr((string)$dest->iban, 0, strlen($search))); |
79 | 79 | $part2 = strtolower(substr($dest->account_number, 0, strlen($search))); |
@@ -73,7 +73,7 @@ |
||
73 | 73 | { |
74 | 74 | /** @var JournalRepositoryInterface $repository */ |
75 | 75 | $repository = app(JournalRepositoryInterface::class); |
76 | - $dest = $repository->getDestinationAccount($journal); |
|
76 | + $dest = $repository->getDestinationAccount($journal); |
|
77 | 77 | $strpos1 = stripos((string)$dest->iban, $this->triggerValue); |
78 | 78 | $strpos2 = stripos($dest->account_number, $this->triggerValue); |
79 | 79 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | { |
74 | 74 | /** @var JournalRepositoryInterface $repository */ |
75 | 75 | $repository = app(JournalRepositoryInterface::class); |
76 | - $dest = $repository->getDestinationAccount($journal); |
|
76 | + $dest = $repository->getDestinationAccount($journal); |
|
77 | 77 | $search = strtolower($this->triggerValue); |
78 | 78 | |
79 | 79 | if (strtolower((string)$dest->iban) === $search || strtolower($dest->account_number) === $search) { |