Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Merge branch 'release/3.9.0'
James Colef8eb1fa44a0a
diff --cc app/Helpers/Csv/Converter/BillName.phpindex fc462a952a,ace5a1e069..a1328ef6c1--- a/app/Helpers/Csv/Converter/BillName.php+++ b/app/Helpers/Csv/Converter/BillName.php@@@ -19,19 -27,17 +27,18 @@@ class BillName extends BasicConverter ipublic function convert(): Bill{/** @var BillRepositoryInterface $repository */- $repository = app('FireflyIII\Repositories\Bill\BillRepositoryInterface');+ $repository = app(BillRepositoryInterface::class);- $bill = new Bill;+ // is mapped? Then it's easy!if (isset($this->mapped[$this->index][$this->value])) {- $bill = $repository->find($this->mapped[$this->index][$this->value]);- } else {- $bills = $repository->getBills();- /** @var Bill $bill */- foreach ($bills as $bill) {- if ($bill->name == $this->value) {- return $bill;- }+ return $repository->find($this->mapped[$this->index][$this->value]);+ }+ $bills = $repository->getBills();++ /** @var Bill $bill */+ foreach ($bills as $bill) {+ if ($bill->name == $this->value) {+ return $bill;}}