Completed
Push — master ( 380ff9...5f3a64 )
by Nicolaas
03:59
created
code/model/Order.php 1 patch
Doc Comments   +16 added lines, -11 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      * @param bool (optional) $b
197 197
      * @param int (optional)  $orderID
198 198
      *
199
-     * @return bool
199
+     * @return boolean|null
200 200
      */
201 201
     public static function set_needs_recalculating($b = true, $orderID = 0)
202 202
     {
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     /**
269 269
      * This function returns the OrderSteps.
270 270
      *
271
-     * @return ArrayList (OrderSteps)
271
+     * @return DataList (OrderSteps)
272 272
      **/
273 273
     public static function get_order_status_options()
274 274
     {
@@ -467,6 +467,7 @@  discard block
 block discarded – undo
467 467
      * link to edit the record.
468 468
      *
469 469
      * @param string | Null $action - e.g. edit
470
+     * @param string $action
470 471
      *
471 472
      * @return string
472 473
      */
@@ -1680,7 +1681,7 @@  discard block
 block discarded – undo
1680 1681
      * Stores the preferred currency of the order.
1681 1682
      * IMPORTANTLY we store the exchange rate for future reference...
1682 1683
      *
1683
-     * @param EcommerceCurrency $currency
1684
+     * @param EcommerceCurrency $newCurrency
1684 1685
      */
1685 1686
     public function UpdateCurrency($newCurrency)
1686 1687
     {
@@ -2141,7 +2142,7 @@  discard block
 block discarded – undo
2141 2142
      * @param string|array $excluded               - Class(es) of modifier(s) to ignore in the calculation.
2142 2143
      * @param bool         $stopAtExcludedModifier - when this flag is TRUE, we stop adding the modifiers when we reach an excluded modifier.
2143 2144
      *
2144
-     * @return float
2145
+     * @return integer
2145 2146
      */
2146 2147
     public function ModifiersSubTotal($excluded = null, $stopAtExcludedModifier = false)
2147 2148
     {
@@ -2339,7 +2340,7 @@  discard block
 block discarded – undo
2339 2340
      *
2340 2341
      * @param Member (optional) $member
2341 2342
      *
2342
-     * @return bool
2343
+     * @return boolean|null
2343 2344
      **/
2344 2345
     public function canViewAdminStuff($member = null)
2345 2346
     {
@@ -2392,7 +2393,7 @@  discard block
 block discarded – undo
2392 2393
      * If any of them need immediate attention then this is done
2393 2394
      * first after which it will go through to the checkout page.
2394 2395
      *
2395
-     * @param Member (optional) $member
2396
+     * @param Member Member $member
2396 2397
      *
2397 2398
      * @return bool
2398 2399
      **/
@@ -2759,6 +2760,10 @@  discard block
 block discarded – undo
2759 2760
     {
2760 2761
         return $this->getTitle($dateFormat, $includeName);
2761 2762
     }
2763
+
2764
+    /**
2765
+     * @param string $dateFormat
2766
+     */
2762 2767
     public function getTitle($dateFormat = null, $includeName = false)
2763 2768
     {
2764 2769
         if ($this->exists()) {
@@ -2822,7 +2827,7 @@  discard block
 block discarded – undo
2822 2827
     /**
2823 2828
      * Returns the subtotal of the items for this order.
2824 2829
      *
2825
-     * @return float
2830
+     * @return integer
2826 2831
      */
2827 2832
     public function SubTotal()
2828 2833
     {
@@ -2888,7 +2893,7 @@  discard block
 block discarded – undo
2888 2893
     /**
2889 2894
      * Returns the total cost of an order including the additional charges or deductions of its modifiers.
2890 2895
      *
2891
-     * @return float
2896
+     * @return integer
2892 2897
      */
2893 2898
     public function Total()
2894 2899
     {
@@ -3353,7 +3358,7 @@  discard block
 block discarded – undo
3353 3358
     /**
3354 3359
      * Submission Log for this Order (if any).
3355 3360
      *
3356
-     * @return DateTime
3361
+     * @return DBField
3357 3362
      **/
3358 3363
     public function OrderDate()
3359 3364
     {
@@ -3538,7 +3543,7 @@  discard block
 block discarded – undo
3538 3543
     /**
3539 3544
      * Converts the Order into HTML, based on the Order Template.
3540 3545
      *
3541
-     * @return HTML Object
3546
+     * @return DBField Object
3542 3547
      **/
3543 3548
     public function ConvertToHTML()
3544 3549
     {
@@ -3602,7 +3607,7 @@  discard block
 block discarded – undo
3602 3607
      * In templates, it is used like this:
3603 3608
      * $EcommerceConfigAjax.TableID.
3604 3609
      *
3605
-     * @return EcommerceConfigAjax
3610
+     * @return EcommerceConfigAjaxDefinitions
3606 3611
      **/
3607 3612
     public function AJAXDefinitions()
3608 3613
     {
Please login to merge, or discard this patch.
code/model/OrderItem.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      * standard SS method.
301 301
      *
302 302
      * @param BuyableModel $buyable
303
-     * @param float        $quantity
303
+     * @param integer        $quantity
304 304
      *
305 305
      * @return FieldList
306 306
      **/
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
     }
581 581
 
582 582
     /**
583
-     * @return Field (EcomQuantityField)
583
+     * @return EcomQuantityField (EcomQuantityField)
584 584
      **/
585 585
     public function QuantityField()
586 586
     {
Please login to merge, or discard this patch.
code/model/process/OrderStep.php 1 patch
Doc Comments   +11 added lines, -5 removed lines patch added patch discarded remove patch
@@ -651,7 +651,7 @@  discard block
 block discarded – undo
651 651
      *
652 652
      * @see Order::doNextStatus
653 653
      *
654
-     * @param Order object
654
+     * @param Order Order
655 655
      *
656 656
      * @return bool - true if the current step is ready to be run...
657 657
      **/
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
      *
671 671
      * @see Order::doNextStatus
672 672
      *
673
-     * @param Order object
673
+     * @param Order Order
674 674
      *
675 675
      * @return bool - true if run correctly.
676 676
      **/
@@ -714,6 +714,7 @@  discard block
 block discarded – undo
714 714
      *
715 715
      * @param string $code:       the name of the step to check
716 716
      * @param bool   $orIsEqualTo if set to true, this method will return TRUE if the step being checked is the current one
717
+     * @param string $code
717 718
      *
718 719
      * @return bool
719 720
      **/
@@ -966,6 +967,11 @@  discard block
 block discarded – undo
966 967
         return $this->hasCustomerMessage() ?  _t('OrderStep.YES', 'Yes') :  _t('OrderStep.NO', 'No');
967 968
     }
968 969
 
970
+    /**
971
+     * @param Order $order
972
+     *
973
+     * @return boolean|string
974
+     */
969 975
     public function CalculatedEmailSubject($order = null)
970 976
     {
971 977
         return $this->EmailSubject;
@@ -979,7 +985,7 @@  discard block
 block discarded – undo
979 985
     /**
980 986
      * Formatted answer for "hasCustomerMessage".
981 987
      *
982
-     * @return string
988
+     * @return DBField
983 989
      */
984 990
     public function ShowAsSummary()
985 991
     {
@@ -989,7 +995,7 @@  discard block
 block discarded – undo
989 995
     /**
990 996
      *
991 997
      *
992
-     * @return string
998
+     * @return DBField
993 999
      */
994 1000
     public function getShowAsSummary()
995 1001
     {
@@ -1049,7 +1055,7 @@  discard block
 block discarded – undo
1049 1055
     /**
1050 1056
      * Formatted answer for "hasCustomerMessage".
1051 1057
      *
1052
-     * @return string
1058
+     * @return DBField
1053 1059
      */
1054 1060
     public function NameAndDescription()
1055 1061
     {
Please login to merge, or discard this patch.
code/model/process/OrderSteps/OrderStep_Sent.php 1 patch
Doc Comments   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @see Order::doNextStatus
74 74
      *
75
-     * @param Order object
75
+     * @param Order Order
76 76
      *
77 77
      * @return bool - true if the current step is ready to be run...
78 78
      **/
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
      *
90 90
      * @see Order::doNextStatus
91 91
      *
92
-     * @param Order object
92
+     * @param Order Order
93 93
      *
94
-     * @return bool - true if run correctly.
94
+     * @return boolean|null - true if run correctly.
95 95
      **/
96 96
     public function doStep(Order $order)
97 97
     {
@@ -163,6 +163,9 @@  discard block
 block discarded – undo
163 163
         return _t('OrderStep.SENT_DESCRIPTION', 'During this step we record the delivery details for the order such as the courrier ticket number and whatever else is relevant.');
164 164
     }
165 165
 
166
+    /**
167
+     * @param Order $order
168
+     */
166 169
     public function CalculatedEmailSubject($order = null)
167 170
     {
168 171
         $v = null;
@@ -176,6 +179,9 @@  discard block
 block discarded – undo
176 179
         return $v;
177 180
     }
178 181
 
182
+    /**
183
+     * @param Order $order
184
+     */
179 185
     public function CalculatedCustomerMessage($order = null)
180 186
     {
181 187
         $v = null;
Please login to merge, or discard this patch.
code/forms/OrderForm_Feedback.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * @param array        $data The form request data submitted
46 46
      * @param Form         $form The {@link Form} this was submitted on
47
-     * @param HTTPRequest  $request The {@link Form} this was submitted on
47
+     * @param SS_HTTPRequest  $request The {@link Form} this was submitted on
48 48
      */
49 49
     public function dofeedback(array $data, Form $form, SS_HTTPRequest $request)
50 50
     {
@@ -75,7 +75,6 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * saves the form into session.
77 77
      *
78
-     * @param array $data - data from form.
79 78
      */
80 79
     public function saveDataToSession()
81 80
     {
@@ -83,6 +82,11 @@  discard block
 block discarded – undo
83 82
         Session::set("FormInfo.{$this->FormName()}.data", $data);
84 83
     }
85 84
 
85
+    /**
86
+     * @param string $value
87
+     *
88
+     * @return string
89
+     */
86 90
     protected function getValueFromOrderConfirmationPage($value)
87 91
     {
88 92
         if ($page = $this->getOrderConfirmationPage()) {
Please login to merge, or discard this patch.
code/model/process/OrderSteps/OrderStep_SentInvoice.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * NOTE: must have a payment (even if it is a fake payment).
42 42
      * The reason for this is if people pay straight away then they want to see the payment shown on their invoice.
43 43
      *
44
-     * @param Order object
44
+     * @param Order Order
45 45
      *
46 46
      * @return bool - true if the current step is ready to be run...
47 47
      **/
Please login to merge, or discard this patch.
code/model/process/OrderSteps/OrderStep_Submitted.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      *
56 56
      * @see Order::doNextStatus
57 57
      *
58
-     * @param Order object
58
+     * @param Order Order
59 59
      *
60 60
      * @return bool - true if the current step is ready to be run...
61 61
      **/
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * Add a member to the order - in case he / she is not a shop admin.
69 69
      *
70
-     * @param Order object
70
+     * @param Order Order
71 71
      *
72 72
      * @return bool - true if run correctly.
73 73
      **/
Please login to merge, or discard this patch.
code/forms/ProductSearchForm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -555,8 +555,8 @@
 block discarded – undo
555 555
      * can be executed one after the other, each
556 556
      * being less specific than the last...
557 557
      *
558
-     * @param array $words  - words being search
559 558
      * @param array $fields - fields being searched
559
+     * @param string $keywordPhrase
560 560
      *
561 561
      * @return array
562 562
      */
Please login to merge, or discard this patch.
code/model/extensions/EcommerceRole.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,6 +147,7 @@  discard block
 block discarded – undo
147 147
      * tells us if the current member is in the Shop Administrators Group.
148 148
      *
149 149
      * @param Member | Null $member
150
+     * @param DataObject $member
150 151
      *
151 152
      * @return bool
152 153
      */
@@ -166,6 +167,7 @@  discard block
 block discarded – undo
166 167
      * tells us if the current member is in the Shop Administrators Group.
167 168
      *
168 169
      * @param Member | Null $member
170
+     * @param DataObject $member
169 171
      *
170 172
      * @return bool
171 173
      */
@@ -185,6 +187,7 @@  discard block
 block discarded – undo
185 187
      * tells us if the current member can process the orders
186 188
      *
187 189
      * @param Member | Null $member
190
+     * @param DataObject $member
188 191
      *
189 192
      * @return bool
190 193
      */
@@ -442,7 +445,6 @@  discard block
 block discarded – undo
442 445
     }
443 446
 
444 447
     /**
445
-     * @param bool $additionalFields: add extra fields.
446 448
      *
447 449
      * @return FieldList
448 450
      */
Please login to merge, or discard this patch.