Completed
Pull Request — master (#10259)
by Mike
08:13
created
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.