Skip to content

Commit 8e42c9a

Browse files
committed
Fixed code smells
1 parent af720c2 commit 8e42c9a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Tool/Calculate.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class Calculate
2020
{
2121
private $cache;
2222
private $doctrine;
23-
private $fund_drive_profits;
24-
private $fund_drive_expenses;
25-
private $deduct_fees;
23+
private $fundDriveProfits;
24+
private $fundDriveExpenses;
25+
private $deductFees;
2626

2727
public function __construct(CacheInterface $cache, EntityManagerInterface $doctrine)
2828
{
@@ -54,7 +54,7 @@ public function progress()
5454
->getSingleResult()
5555
;
5656

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

5959
$current = $row['gross'];
6060

@@ -74,36 +74,36 @@ public function progress()
7474

7575
public function setDeductFees(bool $deduct): self
7676
{
77-
$this->deduct_fees = $deduct;
77+
$this->deductFees = $deduct;
7878

7979
return $this;
8080
}
8181

8282
public function isDeductFees(): bool
8383
{
84-
return $this->deduct_fees;
84+
return $this->deductFees;
8585
}
8686

8787
public function getFundDriveProfit(): int
8888
{
89-
return $this->fund_drive_profits;
89+
return $this->fundDriveProfits;
9090
}
9191

9292
public function setFundDriveProfit(int $profit): self
9393
{
94-
$this->fund_drive_profits = $profit;
94+
$this->fundDriveProfits = $profit;
9595

9696
return $this;
9797
}
9898

9999
public function getFundDriveExpenses(): int
100100
{
101-
return $this->fund_drive_expenses;
101+
return $this->fundDriveExpenses;
102102
}
103103

104104
public function setFundDriveExpenses(int $expenses): self
105105
{
106-
$this->fund_drive_expenses = $expenses;
106+
$this->fundDriveExpenses = $expenses;
107107

108108
return $this;
109109
}

0 commit comments

Comments
 (0)