mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
Removed some dead code.
This commit is contained in:
@@ -433,7 +433,6 @@ class AccountRepository implements AccountRepositoryInterface
|
|||||||
$account->virtual_balance = $data['virtualBalance'];
|
$account->virtual_balance = $data['virtualBalance'];
|
||||||
$account->save();
|
$account->save();
|
||||||
|
|
||||||
// update meta data:
|
|
||||||
$this->updateMetadata($account, $data);
|
$this->updateMetadata($account, $data);
|
||||||
$openingBalance = $this->openingBalanceTransaction($account);
|
$openingBalance = $this->openingBalanceTransaction($account);
|
||||||
|
|
||||||
|
@@ -75,8 +75,8 @@ class FireflyValidator extends Validator
|
|||||||
if (isset($this->data['account_type_id'])) {
|
if (isset($this->data['account_type_id'])) {
|
||||||
return $this->validateByAccountTypeId($value, $parameters);
|
return $this->validateByAccountTypeId($value, $parameters);
|
||||||
}
|
}
|
||||||
if(isset($this->data['id'])) {
|
if (isset($this->data['id'])) {
|
||||||
return $this->validateByAccountId($value, $parameters);
|
return $this->validateByAccountId($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ class FireflyValidator extends Validator
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function validateByAccountId($value, $parameters)
|
protected function validateByAccountId($value)
|
||||||
{
|
{
|
||||||
/** @var Account $existingAccount */
|
/** @var Account $existingAccount */
|
||||||
$existingAccount = Account::find($this->data['id']);
|
$existingAccount = Account::find($this->data['id']);
|
||||||
|
Reference in New Issue
Block a user