1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-26 22:18:59 +02:00

no need for minus before variable

This commit is contained in:
vlassiuk
2017-08-28 16:11:02 +03:00
parent 58ba5d1b00
commit d89d27ad8c

View File

@@ -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();