Completed
Push — master ( 8480fe...51f534 )
by Nicolaas
03:18
created
code/decorators/BuyableStockDecorator.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,6 +73,10 @@  discard block
 block discarded – undo
73 73
     {
74 74
         return $this->getActualQuantity();
75 75
     }
76
+
77
+    /**
78
+     * @return string
79
+     */
76 80
     public function getActualQuantity()
77 81
     {
78 82
         return BuyableStockCalculatedQuantity::get_quantity_by_buyable($this->owner);
@@ -115,7 +119,7 @@  discard block
 block discarded – undo
115 119
      * This is a pivotal method.
116 120
      * Only allow purchase if stock levels allow
117 121
      * TODO: customise this to a certain stock level, on, or off
118
-     * @return null (equals TRUE!), true or false
122
+     * @return null|false (equals TRUE!), true or false
119 123
      */
120 124
     public function canPurchase($member = null)
121 125
     {
Please login to merge, or discard this patch.
code/model/StockControlPing.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     /**
82 82
      * go to next step if order has been submitted.
83 83
      *@param DataObject - $order Order
84
-     *@return DataObject | Null	(next step OrderStep)
84
+     *@return OrderStep|null | Null	(next step OrderStep)
85 85
      **/
86 86
     public function nextStep(Order $order)
87 87
     {
Please login to merge, or discard this patch.