Completed
Pull Request — master (#10259)
by Mike
09:41
created
includes/abstracts/abstract-wc-order.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      * should be used. It is possible, but the aforementioned are preferred and are the only.
100 100
      * methods that will be maintained going forward.
101 101
      *
102
-     * @param  int|object|WC_Order $order Order to init.
102
+     * @param  integer $order Order to init.
103 103
      */
104 104
     public function __construct( $order = 0 ) {
105 105
 		if ( is_numeric( $order ) ) {
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
 
655 655
     /**
656 656
      * Order tax is the sum of all taxes.
657
-     * @return string
657
+     * @return double
658 658
      */
659 659
     public function get_order_tax() {
660 660
         return wc_round_tax_total( $this->_data['order_tax'] );
@@ -804,7 +804,6 @@  discard block
 block discarded – undo
804 804
      * @since 2.6.0
805 805
      * @param string $new_status Status to change the order to. No internal wc- prefix is required.
806 806
      * @param string $note (default: '') Optional note to add.
807
-     * @param bool $manual is this a manual order status change?
808 807
      */
809 808
     public function set_status( $new_status, $note = '', $manual_update = false ) {
810 809
         // Remove prefixes and standardize
@@ -2072,7 +2071,7 @@  discard block
 block discarded – undo
2072 2071
      * Note this does not update order totals.
2073 2072
      *
2074 2073
      * @since 2.6
2075
-     * @param object|int $item
2074
+     * @param WC_Order_Item_Tax $item
2076 2075
      * @param array $args
2077 2076
      * @return int updated order item ID
2078 2077
      */
Please login to merge, or discard this patch.
includes/class-wc-order-factory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 	/**
61 61
 	 * Get order item.
62 62
 	 * @param int
63
-	 * @return WC_Order_Item|bool
63
+	 * @return WC_Order_Item
64 64
 	 */
65 65
 	public static function get_order_item( $item_id = 0 ) {
66 66
 		global $wpdb;
Please login to merge, or discard this patch.
includes/class-wc-order-item-product.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
 
118 118
     /**
119 119
      * Get the associated product.
120
-     * @return WC_Product|bool
120
+     * @return WC_Product
121 121
      */
122 122
     public function get_product() {
123 123
         if ( $this->get_variation_id() ) {
Please login to merge, or discard this patch.
includes/class-wc-order-item.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,6 @@  discard block
 block discarded – undo
79 79
 
80 80
     /**
81 81
 	 * Constructor.
82
-	 * @param int|object $order_item ID to load from the DB (optional) or already queried data.
83 82
 	 */
84 83
     public function __construct( $item = 0 ) {
85 84
 		if ( $item instanceof WC_Order_Item ) {
@@ -111,7 +110,7 @@  discard block
 block discarded – undo
111 110
 
112 111
     /**
113 112
      * Type checking
114
-     * @param  string  $Type
113
+     * @param  string  $type
115 114
      * @return boolean
116 115
      */
117 116
     public function is_type( $type ) {
@@ -240,7 +239,8 @@  discard block
 block discarded – undo
240 239
 
241 240
     /**
242 241
      * Set meta data.
243
-     * @param array $data Key/Value pairs
242
+     * @param string $key
243
+     * @param string $value
244 244
      */
245 245
     public function add_meta_data( $key, $value, $unique = false ) {
246 246
         if ( $unique ) {
Please login to merge, or discard this patch.
includes/class-wc-order-refund.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
     /**
40 40
      * Get the refund if ID is passed, otherwise the refund is new and empty.
41
-     * @param  int|object|WC_Order_Refund $refund Refund to init.
41
+     * @param  integer $refund Refund to init.
42 42
      */
43 43
     public function __construct( $refund = 0 ) {
44 44
 		if ( is_numeric( $refund ) ) {
Please login to merge, or discard this patch.