mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-21 19:47:48 +00:00
Cleaning up.
This commit is contained in:
@@ -526,6 +526,9 @@ class TestContentSeeder extends Seeder
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $date
|
||||||
|
*/
|
||||||
public function createBigExpense($date)
|
public function createBigExpense($date)
|
||||||
{
|
{
|
||||||
$date->addDays(12);
|
$date->addDays(12);
|
||||||
|
@@ -361,6 +361,7 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface
|
|||||||
$model->save();
|
$model->save();
|
||||||
|
|
||||||
if (isset($data['openingbalance']) && isset($data['openingbalancedate']) && strlen($data['openingbalancedate']) > 0) {
|
if (isset($data['openingbalance']) && isset($data['openingbalancedate']) && strlen($data['openingbalancedate']) > 0) {
|
||||||
|
/** @noinspection PhpParamsInspection */
|
||||||
$openingBalance = $this->openingBalanceTransaction($model);
|
$openingBalance = $this->openingBalanceTransaction($model);
|
||||||
// TODO this needs cleaning up and thinking over.
|
// TODO this needs cleaning up and thinking over.
|
||||||
if (is_null($openingBalance)) {
|
if (is_null($openingBalance)) {
|
||||||
|
@@ -106,6 +106,7 @@ class TransactionJournal implements TransactionJournalInterface, CUD, CommonData
|
|||||||
|
|
||||||
list($fromAccount, $toAccount) = $this->storeAccounts($data);
|
list($fromAccount, $toAccount) = $this->storeAccounts($data);
|
||||||
|
|
||||||
|
/** @noinspection PhpParamsInspection */
|
||||||
$this->storeBudget($data, $model);
|
$this->storeBudget($data, $model);
|
||||||
$this->storeCategory($data, $model);
|
$this->storeCategory($data, $model);
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@ class User
|
|||||||
/**
|
/**
|
||||||
* @param $mail
|
* @param $mail
|
||||||
*
|
*
|
||||||
* @return null|User
|
* @return null|\User
|
||||||
*/
|
*/
|
||||||
public function findByEmail($mail)
|
public function findByEmail($mail)
|
||||||
{
|
{
|
||||||
|
@@ -118,6 +118,7 @@ class Report implements ReportInterface
|
|||||||
/** @var \Account $account */
|
/** @var \Account $account */
|
||||||
foreach ($list as $account) {
|
foreach ($list as $account) {
|
||||||
$id = intval($account->id);
|
$id = intval($account->id);
|
||||||
|
/** @noinspection PhpParamsInspection */
|
||||||
$accounts[$id] = [
|
$accounts[$id] = [
|
||||||
'name' => $account->name,
|
'name' => $account->name,
|
||||||
'startBalance' => \Steam::balance($account, $start),
|
'startBalance' => \Steam::balance($account, $start),
|
||||||
|
@@ -139,6 +139,7 @@ class ReportQuery implements ReportQueryInterface
|
|||||||
->get(['accounts.*']);
|
->get(['accounts.*']);
|
||||||
$set->each(
|
$set->each(
|
||||||
function (\Account $account) use ($start, $end) {
|
function (\Account $account) use ($start, $end) {
|
||||||
|
/** @noinspection PhpParamsInspection */
|
||||||
$account->startBalance = \Steam::balance($account, $start);
|
$account->startBalance = \Steam::balance($account, $start);
|
||||||
$account->endBalance = \Steam::balance($account, $end);
|
$account->endBalance = \Steam::balance($account, $end);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user