Completed
Push — master ( 964196...26794c )
by
unknown
18:32 queued 13s
created
includes/abstracts/abstract-wc-data.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	/**
102 102
 	 * Default constructor.
103 103
 	 *
104
-	 * @param int|object|array $read ID to load from the DB (optional) or already queried data.
104
+	 * @param integer $read ID to load from the DB (optional) or already queried data.
105 105
 	 */
106 106
 	public function __construct( $read = 0 ) {
107 107
 		$this->data         = array_merge( $this->data, $this->extra_data );
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	/**
112 112
 	 * Only store the object ID to avoid serializing the data object instance.
113 113
 	 *
114
-	 * @return array
114
+	 * @return string[]
115 115
 	 */
116 116
 	public function __sleep() {
117 117
 		return array( 'id' );
Please login to merge, or discard this patch.
includes/admin/meta-boxes/class-wc-meta-box-product-data.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
 	 * @param int $a First item.
134 134
 	 * @param int $b Second item.
135 135
 	 *
136
-	 * @return bool
136
+	 * @return integer
137 137
 	 */
138 138
 	private static function product_data_tabs_sort( $a, $b ) {
139 139
 		if ( ! isset( $a['priority'], $b['priority'] ) ) {
Please login to merge, or discard this patch.
includes/class-wc-shipping.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
 	 *
162 162
 	 * @param object|string $method Either the name of the method's class, or an instance of the method's class.
163 163
 	 *
164
-	 * @return bool|void
164
+	 * @return false|null
165 165
 	 */
166 166
 	public function register_shipping_method( $method ) {
167 167
 		if ( ! is_object( $method ) ) {
Please login to merge, or discard this patch.
includes/log-handlers/class-wc-log-handler-file.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -336,7 +336,7 @@
 block discarded – undo
336 336
 	 * Get a log file path.
337 337
 	 *
338 338
 	 * @param string $handle Log name.
339
-	 * @return bool|string The log file path or false if path cannot be determined.
339
+	 * @return string|false The log file path or false if path cannot be determined.
340 340
 	 */
341 341
 	public static function get_log_file_path( $handle ) {
342 342
 		if ( function_exists( 'wp_hash' ) ) {
Please login to merge, or discard this patch.
includes/wc-coupon-functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
  * Coupon types that apply to individual products. Controls which validation rules will apply.
43 43
  *
44 44
  * @since  2.5.0
45
- * @return array
45
+ * @return string
46 46
  */
47 47
 function wc_get_product_coupon_types() {
48 48
 	return (array) apply_filters( 'woocommerce_product_coupon_types', array( 'fixed_product', 'percent' ) );
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
  * Coupon types that apply to the cart as a whole. Controls which validation rules will apply.
53 53
  *
54 54
  * @since  2.5.0
55
- * @return array
55
+ * @return string
56 56
  */
57 57
 function wc_get_cart_coupon_types() {
58 58
 	return (array) apply_filters( 'woocommerce_cart_coupon_types', array( 'fixed_cart' ) );
Please login to merge, or discard this patch.
includes/class-wc-webhook.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
 	/**
50 50
 	 * Load webhook data based on how WC_Webhook is called.
51 51
 	 *
52
-	 * @param WC_Webhook|int $data Webhook ID or data.
52
+	 * @param integer $data Webhook ID or data.
53 53
 	 * @throws Exception If webhook cannot be read/found and $data is set.
54 54
 	 */
55 55
 	public function __construct( $data = 0 ) {
Please login to merge, or discard this patch.
includes/shortcodes/class-wc-shortcode-products.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 	 * Get shortcode type.
79 79
 	 *
80 80
 	 * @since  3.2.0
81
-	 * @return array
81
+	 * @return string
82 82
 	 */
83 83
 	public function get_type() {
84 84
 		return $this->type;
Please login to merge, or discard this patch.
includes/emails/class-wc-email.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
250 250
 	/**
251 251
 	 * Format email string.
252 252
 	 *
253
-	 * @param mixed $string Text to replace placeholders in.
253
+	 * @param string $string Text to replace placeholders in.
254 254
 	 * @return string
255 255
 	 */
256 256
 	public function format_string( $string ) {
Please login to merge, or discard this patch.
includes/class-wc-discounts.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
 	 * Get items which the coupon should be applied to.
288 288
 	 *
289 289
 	 * @since  3.2.0
290
-	 * @param  object $coupon Coupon object.
290
+	 * @param  WC_Coupon $coupon Coupon object.
291 291
 	 * @return array
292 292
 	 */
293 293
 	protected function get_items_to_apply_coupon( $coupon ) {
Please login to merge, or discard this patch.