@@ -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 |