Completed
Push — master ( 396bd1...fbf0e7 )
by
unknown
03:26
created
code/interfaces/EcommercePaymentSupportedMethodsProviderInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * assign the right payment gateways for the user
15 15
      * @param string (optional) $gateway
16
+     * @return void
16 17
      */
17 18
     public static function assign_payment_gateway($gateway = "");
18 19
 }
Please login to merge, or discard this patch.
code/model/address/EcommerceRegion.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,6 @@
 block discarded – undo
185 185
     /**
186 186
      * checks if a code is allowed.
187 187
      *
188
-     * @param string $code - e.g. NZ, NSW, or CO
189 188
      *
190 189
      * @return bool
191 190
      */
Please login to merge, or discard this patch.
code/model/address/OrderAddress.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,6 +132,9 @@  discard block
 block discarded – undo
132 132
      */
133 133
     protected $_canView = null;
134 134
 
135
+    /**
136
+     * @param DataObject $member
137
+     */
135 138
     public function canCreate($member = null)
136 139
     {
137 140
         if (! $member) {
@@ -353,6 +356,7 @@  discard block
 block discarded – undo
353 356
      * makes selected fields into read only using the $this->readOnlyFields array.
354 357
      *
355 358
      * @param FieldList | Composite $fields
359
+     * @param CompositeField $fields
356 360
      *
357 361
      * @return FieldList
358 362
      */
@@ -420,7 +424,7 @@  discard block
 block discarded – undo
420 424
      * Casted variable
421 425
      * returns the full strng of the record.
422 426
      *
423
-     * @return string
427
+     * @return HTMLText
424 428
      */
425 429
     public function FullString()
426 430
     {
Please login to merge, or discard this patch.
code/model/extensions/EcommerceRole.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,6 +142,7 @@  discard block
 block discarded – undo
142 142
      * tells us if the current member is in the Shop Administrators Group.
143 143
      *
144 144
      * @param Member | Null $member
145
+     * @param DataObject $member
145 146
      *
146 147
      * @return bool
147 148
      */
@@ -161,6 +162,7 @@  discard block
 block discarded – undo
161 162
      * tells us if the current member is in the Shop Administrators Group.
162 163
      *
163 164
      * @param Member | Null $member
165
+     * @param DataObject $member
164 166
      *
165 167
      * @return bool
166 168
      */
@@ -180,6 +182,7 @@  discard block
 block discarded – undo
180 182
      * tells us if the current member can process the orders
181 183
      *
182 184
      * @param Member | Null $member
185
+     * @param DataObject $member
183 186
      *
184 187
      * @return bool
185 188
      */
@@ -416,7 +419,6 @@  discard block
 block discarded – undo
416 419
     }
417 420
 
418 421
     /**
419
-     * @param bool $additionalFields: add extra fields.
420 422
      *
421 423
      * @return FieldList
422 424
      */
@@ -503,7 +505,7 @@  discard block
 block discarded – undo
503 505
      * Return which member fields should be required on {@link OrderForm}
504 506
      * and {@link ShopAccountForm}.
505 507
      *
506
-     * @return array
508
+     * @return string[]
507 509
      */
508 510
     public function getEcommerceRequiredFields()
509 511
     {
Please login to merge, or discard this patch.
code/model/extensions/EcommerceSiteTreeExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      * In templates, it is used like this:
19 19
      * $AJAXDefinitions.TableID.
20 20
      *
21
-     * @return EcommerceConfigAjax
21
+     * @return EcommerceConfigAjaxDefinitions
22 22
      **/
23 23
     public function AJAXDefinitions()
24 24
     {
Please login to merge, or discard this patch.
code/model/money/EcommercePayment.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * CRUCIAL
82 82
      * makes sure all the relevant payment methods are available ...
83 83
      *
84
-     * @return this | EcommercePayment
84
+     * @return EcommercePayment | EcommercePayment
85 85
      */
86 86
     public function init()
87 87
     {
@@ -399,6 +399,7 @@  discard block
 block discarded – undo
399 399
      * Return the form requirements for all the payment methods.
400 400
      *
401 401
      * @param null | Array
402
+     * @param Order $order
402 403
      *
403 404
      * @return An array suitable for passing to CustomRequiredFields
404 405
      */
@@ -414,6 +415,7 @@  discard block
 block discarded – undo
414 415
      *
415 416
      * @param string       $amount formatted amount (e.g. 12.30) without the currency
416 417
      * @param null | Order $order
418
+     * @param Order $order
417 419
      *
418 420
      * @return FieldList
419 421
      */
Please login to merge, or discard this patch.
code/model/OrderAttribute.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@
 block discarded – undo
330 330
      * In templates, it is used like this:
331 331
      * $EcommerceConfigAjax.TableID.
332 332
      *
333
-     * @return EcommerceConfigAjax
333
+     * @return EcommerceConfigAjaxDefinitions
334 334
      **/
335 335
     public function AJAXDefinitions()
336 336
     {
Please login to merge, or discard this patch.
code/model/OrderItem.php 1 patch
Doc Comments   +10 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
      **/
@@ -492,6 +492,10 @@  discard block
 block discarded – undo
492 492
     {
493 493
         return $this->getUnitPrice($recalculate);
494 494
     }
495
+
496
+    /**
497
+     * @return double
498
+     */
495 499
     public function getUnitPrice($recalculate = false)
496 500
     {
497 501
         if ($this->priceHasBeenFixed($recalculate) && !$recalculate) {
@@ -534,6 +538,10 @@  discard block
 block discarded – undo
534 538
     {
535 539
         return $this->getTotal();
536 540
     }
541
+
542
+    /**
543
+     * @return double
544
+     */
537 545
     public function getTotal($recalculate = false)
538 546
     {
539 547
         if ($this->priceHasBeenFixed()) {
@@ -580,7 +588,7 @@  discard block
 block discarded – undo
580 588
     }
581 589
 
582 590
     /**
583
-     * @return Field (EcomQuantityField)
591
+     * @return EcomQuantityField (EcomQuantityField)
584 592
      **/
585 593
     public function QuantityField()
586 594
     {
Please login to merge, or discard this patch.
code/model/OrderModifier.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
     }
423 423
 
424 424
     /**
425
-     * @return object (HeadingField)
425
+     * @return FormField (HeadingField)
426 426
      */
427 427
     protected function headingField()
428 428
     {
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
     }
436 436
 
437 437
     /**
438
-     * @return object (LiteralField)
438
+     * @return LiteralField (LiteralField)
439 439
      */
440 440
     protected function descriptionField()
441 441
     {
Please login to merge, or discard this patch.