From e0bf453eb20ea908535bb843e150e6dfb8150282 Mon Sep 17 00:00:00 2001 From: Andrew Minion Date: Thu, 3 Mar 2022 21:34:02 -0600 Subject: [PATCH 1/3] fix missing semicolon --- src/Contracts/Buyable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Contracts/Buyable.php b/src/Contracts/Buyable.php index d086d22..006adfe 100644 --- a/src/Contracts/Buyable.php +++ b/src/Contracts/Buyable.php @@ -32,5 +32,5 @@ interface Buyable /** * Get the taxRate of the Buyable item. */ - public function getBuyableTaxRate(CartItemOptions $options): float + public function getBuyableTaxRate(CartItemOptions $options): float; } From 56a87ae8862afec4f6fac8d9f0a398685e73f348 Mon Sep 17 00:00:00 2001 From: Andrew Minion Date: Thu, 3 Mar 2022 21:34:47 -0600 Subject: [PATCH 2/3] fix for styleci --- src/Contracts/Buyable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Contracts/Buyable.php b/src/Contracts/Buyable.php index 006adfe..3ebdb24 100644 --- a/src/Contracts/Buyable.php +++ b/src/Contracts/Buyable.php @@ -28,7 +28,7 @@ interface Buyable * Get the weight of the Buyable item. */ public function getBuyableWeight(CartItemOptions $options): int; - + /** * Get the taxRate of the Buyable item. */ From f5b9900949b5ec6fee0440471324153a3b009173 Mon Sep 17 00:00:00 2001 From: Andrew Minion Date: Thu, 3 Mar 2022 21:41:01 -0600 Subject: [PATCH 3/3] add missing text fixture method Followup to 3f246caf1a40bd111bf7d33f6e209787d0134710 --- tests/Fixtures/BuyableProduct.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Fixtures/BuyableProduct.php b/tests/Fixtures/BuyableProduct.php index 9265aab..18de007 100644 --- a/tests/Fixtures/BuyableProduct.php +++ b/tests/Fixtures/BuyableProduct.php @@ -68,4 +68,9 @@ class BuyableProduct extends Model implements Buyable { return $this->weight; } + + public function getBuyableTaxRate(CartItemOptions $options): float + { + return $this->tax_rate; + } }