Passed
Push — master ( 61bfd8...248487 )
by Nic
10:52
created
src/ORM/FoxyStripeOptionInventoryManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ORM/FoxyStripeInventoryManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Model/ProductCartReservation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Extension/PurchaseFormExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.