These are the first commits that make FF require php 7.

This commit is contained in:
James Cole
2016-02-05 08:03:26 +01:00
parent baecc256f6
commit 554640c345
10 changed files with 20 additions and 20 deletions

View File

@@ -122,7 +122,7 @@ class BalanceLine
*/
public function leftOfRepetition()
{
$start = isset($this->budget->amount) ? $this->budget->amount : 0;
$start = $this->budget->amount ?? 0;
/** @var BalanceEntry $balanceEntry */
foreach ($this->getBalanceEntries() as $balanceEntry) {
$start += $balanceEntry->getSpent();

View File

@@ -228,7 +228,7 @@ class Importer
$data = $this->getFiller(); // These fields are necessary to create a new transaction journal. Some are optional
foreach ($row as $index => $value) {
$role = isset($this->roles[$index]) ? $this->roles[$index] : '_ignore';
$role = $this->roles[$index] ?? '_ignore';
$class = Config::get('csv.roles.' . $role . '.converter');
$field = Config::get('csv.roles.' . $role . '.field');

View File

@@ -48,7 +48,7 @@ class BudgetReportHelper implements BudgetReportHelperInterface
return $rep->budget_id == $budget->id;
}
);
$totalSpent = isset($allTotalSpent[$budget->id]) ? $allTotalSpent[$budget->id] : [];
$totalSpent = $allTotalSpent[$budget->id] ?? [];
// no repetition(s) for this budget:
if ($repetitions->count() == 0) {