mirror of
https://github.com/jupeter/clean-code-php.git
synced 2025-09-26 14:08:59 +02:00
no need for minus before variable
This commit is contained in:
@@ -788,7 +788,7 @@ class BankAccount {
|
|||||||
$bankAccount = new BankAccount();
|
$bankAccount = new BankAccount();
|
||||||
|
|
||||||
// Buy shoes...
|
// Buy shoes...
|
||||||
$bankAccount->withdrawBalance(-$shoesPrice);
|
$bankAccount->withdrawBalance($shoesPrice);
|
||||||
|
|
||||||
// Get balance
|
// Get balance
|
||||||
$balance = $bankAccount->getBalance();
|
$balance = $bankAccount->getBalance();
|
||||||
|
Reference in New Issue
Block a user