Skip to content

Commit

Permalink
Fixed code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
idmarinas committed Jun 3, 2023
1 parent af720c2 commit 8e42c9a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Tool/Calculate.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class Calculate
{
private $cache;
private $doctrine;
private $fund_drive_profits;
private $fund_drive_expenses;
private $deduct_fees;
private $fundDriveProfits;
private $fundDriveExpenses;
private $deductFees;

public function __construct(CacheInterface $cache, EntityManagerInterface $doctrine)
{
Expand Down Expand Up @@ -54,7 +54,7 @@ public function progress()
->getSingleResult()
;

$goal = $this->fund_drive_profits + $this->fund_drive_expenses;
$goal = $this->fundDriveProfits + $this->fundDriveExpenses;

$current = $row['gross'];

Expand All @@ -74,36 +74,36 @@ public function progress()

public function setDeductFees(bool $deduct): self
{
$this->deduct_fees = $deduct;
$this->deductFees = $deduct;

return $this;
}

public function isDeductFees(): bool
{
return $this->deduct_fees;
return $this->deductFees;
}

public function getFundDriveProfit(): int
{
return $this->fund_drive_profits;
return $this->fundDriveProfits;
}

public function setFundDriveProfit(int $profit): self
{
$this->fund_drive_profits = $profit;
$this->fundDriveProfits = $profit;

return $this;
}

public function getFundDriveExpenses(): int
{
return $this->fund_drive_expenses;
return $this->fundDriveExpenses;
}

public function setFundDriveExpenses(int $expenses): self
{
$this->fund_drive_expenses = $expenses;
$this->fundDriveExpenses = $expenses;

return $this;
}
Expand Down

0 comments on commit 8e42c9a

Please sign in to comment.