mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Always great when using conflicting tools
This commit is contained in:
@@ -13,6 +13,7 @@ parameters:
|
|||||||
- '#is not allowed to extend#'
|
- '#is not allowed to extend#'
|
||||||
- '#switch is forbidden to use#'
|
- '#switch is forbidden to use#'
|
||||||
- '#is neither abstract nor final#'
|
- '#is neither abstract nor final#'
|
||||||
|
- '#on left side of \?\?\= always exists and is not nullable#'
|
||||||
- '#has a nullable return type declaration#' # perhaps throw errors instead?
|
- '#has a nullable return type declaration#' # perhaps throw errors instead?
|
||||||
- '#with a nullable type declaration#' # decide what action should be if param is null.
|
- '#with a nullable type declaration#' # decide what action should be if param is null.
|
||||||
- '#with null as default value#'
|
- '#with null as default value#'
|
||||||
|
@@ -135,7 +135,7 @@ class IndexController extends Controller
|
|||||||
|
|
||||||
// get budgeted for default currency:
|
// get budgeted for default currency:
|
||||||
if (0 === count($availableBudgets)) {
|
if (0 === count($availableBudgets)) {
|
||||||
$budgeted = $this->blRepository->budgeted($start, $end, $defaultCurrency,);
|
$budgeted = $this->blRepository->budgeted($start, $end, $defaultCurrency, );
|
||||||
$spentArr = $this->opsRepository->sumExpenses($start, $end, null, null, $defaultCurrency);
|
$spentArr = $this->opsRepository->sumExpenses($start, $end, null, null, $defaultCurrency);
|
||||||
$spent = $spentArr[$defaultCurrency->id]['sum'] ?? '0';
|
$spent = $spentArr[$defaultCurrency->id]['sum'] ?? '0';
|
||||||
unset($spentArr);
|
unset($spentArr);
|
||||||
@@ -194,7 +194,7 @@ class IndexController extends Controller
|
|||||||
$array['spent'] = $spentArr[$entry->transaction_currency_id]['sum'] ?? '0';
|
$array['spent'] = $spentArr[$entry->transaction_currency_id]['sum'] ?? '0';
|
||||||
|
|
||||||
// budgeted in period:
|
// budgeted in period:
|
||||||
$budgeted = $this->blRepository->budgeted($entry->start_date, $entry->end_date, $entry->transactionCurrency,);
|
$budgeted = $this->blRepository->budgeted($entry->start_date, $entry->end_date, $entry->transactionCurrency, );
|
||||||
$array['budgeted'] = $budgeted;
|
$array['budgeted'] = $budgeted;
|
||||||
$availableBudgets[] = $array;
|
$availableBudgets[] = $array;
|
||||||
unset($spentArr);
|
unset($spentArr);
|
||||||
|
@@ -696,7 +696,7 @@ class User extends Authenticatable
|
|||||||
*/
|
*/
|
||||||
public function userGroup(): BelongsTo
|
public function userGroup(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->belongsTo(UserGroup::class,);
|
return $this->belongsTo(UserGroup::class, );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user