File tree Expand file tree Collapse file tree 16 files changed +26
-26
lines changed Expand file tree Collapse file tree 16 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class Item extends Model implements Product
6262 return true;
6363 }
6464
65- public function getAmountProduct(Customer $customer): int
65+ public function getAmountProduct(Customer $customer)
6666 {
6767 return 100;
6868 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Item extends Model implements Product
3636 return true;
3737 }
3838
39- public function getAmountProduct(Customer $customer): int
39+ public function getAmountProduct(Customer $customer)
4040 {
4141 return round($this->price * 100);
4242 }
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class MyRateService extends \Bavix\Wallet\Simple\Rate
4242 ],
4343 ];
4444
45- protected function rate(Wallet $wallet): float
45+ protected function rate(Wallet $wallet)
4646 {
4747 $from = app(WalletService::class)->getWallet($this->withCurrency);
4848 $to = app(WalletService::class)->getWallet($wallet);
@@ -54,7 +54,7 @@ class MyRateService extends \Bavix\Wallet\Simple\Rate
5454 );
5555 }
5656
57- public function convertTo(Wallet $wallet): float
57+ public function convertTo(Wallet $wallet)
5858 {
5959 return parent::convertTo($wallet) * $this->rate($wallet);
6060 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Item extends Model implements Product
3636 return true;
3737 }
3838
39- public function getAmountProduct(Customer $customer): int
39+ public function getAmountProduct(Customer $customer)
4040 {
4141 return 100;
4242 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Item extends Model implements Product
3636 return true;
3737 }
3838
39- public function getAmountProduct(Customer $customer): int
39+ public function getAmountProduct(Customer $customer)
4040 {
4141 return 100;
4242 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Item extends Model implements Product
3636 return true;
3737 }
3838
39- public function getAmountProduct(Customer $customer): int
39+ public function getAmountProduct(Customer $customer)
4040 {
4141 return 100;
4242 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Item extends Model implements Product
3636 return true;
3737 }
3838
39- public function getAmountProduct(Customer $customer): int
39+ public function getAmountProduct(Customer $customer)
4040 {
4141 return 100;
4242 }
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class Item extends Model implements Product
6565 return true;
6666 }
6767
68- public function getAmountProduct(Customer $customer): int
68+ public function getAmountProduct(Customer $customer)
6969 {
7070 return 100;
7171 }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Item extends Model implements Product
3636 return true;
3737 }
3838
39- public function getAmountProduct(Customer $customer): int
39+ public function getAmountProduct(Customer $customer)
4040 {
4141 return round($this->price * 100);
4242 }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class MyRateService extends \Bavix\Wallet\Simple\Rate
4141 ],
4242 ];
4343
44- protected function rate(Wallet $wallet): float
44+ protected function rate(Wallet $wallet)
4545 {
4646 $from = app(WalletService::class)->getWallet($this->withCurrency);
4747 $to = app(WalletService::class)->getWallet($wallet);
@@ -53,7 +53,7 @@ class MyRateService extends \Bavix\Wallet\Simple\Rate
5353 );
5454 }
5555
56- public function convertTo(Wallet $wallet): float
56+ public function convertTo(Wallet $wallet)
5757 {
5858 return parent::convertTo($wallet) * $this->rate($wallet);
5959 }
You can’t perform that action at this time.
0 commit comments