@@ -58,7 +58,7 @@ |
||
58 | 58 | public function getNumberAvailable() |
59 | 59 | { |
60 | 60 | if ($this->getIsOptionAvailable()) { |
61 | - return (int)$this->owner->PurchaseLimit - (int)$this->getNumberPurchased(); |
|
61 | + return (int) $this->owner->PurchaseLimit - (int) $this->getNumberPurchased(); |
|
62 | 62 | } |
63 | 63 | } |
64 | 64 |
@@ -61,7 +61,7 @@ |
||
61 | 61 | public function getNumberAvailable() |
62 | 62 | { |
63 | 63 | if ($this->getIsProductAvailable()) { |
64 | - return (int)$this->owner->PurchaseLimit - (int)$this->getNumberPurchased(); |
|
64 | + return (int) $this->owner->PurchaseLimit - (int) $this->getNumberPurchased(); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | */ |
73 | 73 | public function getCMSFields() |
74 | 74 | { |
75 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
75 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
76 | 76 | $fields->addFieldToTab('Root.Main', ReadonlyField::create('ReservationCode')->setTitle('Reservation Code')); |
77 | 77 | }); |
78 | 78 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * @param \SilverStripe\Forms\FieldList $fields |
22 | 22 | */ |
23 | - public function updatePurchaseFormFields(FieldList &$fields) |
|
23 | + public function updatePurchaseFormFields(FieldList & $fields) |
|
24 | 24 | { |
25 | 25 | if ($this->owner->getProduct()->CartExpiration) { |
26 | 26 | $fields->insertBefore( |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * @param \SilverStripe\Forms\FieldList $actions |
50 | 50 | */ |
51 | - public function updateFoxyStripePurchaseFormActions(FieldList &$actions) |
|
51 | + public function updateFoxyStripePurchaseFormActions(FieldList & $actions) |
|
52 | 52 | { |
53 | 53 | if ($this->isOutOfStock()) { |
54 | 54 | $actions = FieldList::create(); |