Completed
Pull Request — master (#11636)
by
unknown
07:55
created
includes/class-wc-download-handler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
 	/**
202 202
 	 * Parse file path and see if its remote or local.
203 203
 	 * @param  string $file_path
204
-	 * @return array
204
+	 * @return string
205 205
 	 */
206 206
 	public static function parse_file_path( $file_path ) {
207 207
 		$wp_uploads     = wp_upload_dir();
Please login to merge, or discard this patch.
includes/class-wc-product-factory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
 	/**
82 82
 	 * Get the product object.
83
-	 * @param  mixed $the_product
83
+	 * @param  boolean $the_product
84 84
 	 * @uses   WP_Post
85 85
 	 * @return WP_Post|bool false on failure
86 86
 	 */
Please login to merge, or discard this patch.
includes/class-wc-payment-gateways.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
 	 * Set the current, active gateway.
161 161
 	 *
162 162
 	 * @access public
163
-	 * @param array $gateway Available payment gateways.
163
+	 * @param array $gateways Available payment gateways.
164 164
 	 */
165 165
 	public function set_current_gateway( $gateways ) {
166 166
 
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-shipping-method.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
 	 *
123 123
 	 * Methods should override this to declare support (or lack of support) for a feature.
124 124
 	 *
125
-	 * @param $feature string The name of a feature to test support for.
125
+	 * @param string $feature string The name of a feature to test support for.
126 126
 	 * @return bool True if the shipping method supports the feature, false otherwise.
127 127
 	 */
128 128
 	public function supports( $feature ) {
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
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
 	/**
110 110
 	 * Init/load the order object. Called from the constructor.
111 111
 	 *
112
-	 * @param  int|object|WC_Order $order Order to init.
112
+	 * @param  integer $order Order to init.
113 113
 	 */
114 114
 	protected function init( $order ) {
115 115
 		if ( is_numeric( $order ) ) {
Please login to merge, or discard this patch.
includes/class-wc-auth.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
 	/**
202 202
 	 * Parse file path and see if its remote or local.
203 203
 	 * @param  string $file_path
204
-	 * @return array
204
+	 * @return string
205 205
 	 */
206 206
 	public static function parse_file_path( $file_path ) {
207 207
 		$wp_uploads     = wp_upload_dir();
Please login to merge, or discard this patch.
includes/api/class-wc-rest-authentication.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
 	 *
185 185
 	 * @param stdClass $user
186 186
 	 * @param array $params The request parameters.
187
-	 * @return null|WP_Error
187
+	 * @return stdClass
188 188
 	 */
189 189
 	private function check_oauth_signature( $user, $params ) {
190 190
 		$http_method  = strtoupper( $_SERVER['REQUEST_METHOD'] );
Please login to merge, or discard this patch.
includes/wc-core-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
  * WC_TEMPLATE_DEBUG_MODE will prevent overrides in themes from taking priority.
146 146
  *
147 147
  * @access public
148
- * @param mixed $slug
148
+ * @param string $slug
149 149
  * @param string $name (default: '')
150 150
  */
151 151
 function wc_get_template_part( $slug, $name = '' ) {
Please login to merge, or discard this patch.
includes/api/class-wc-rest-orders-controller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
 	 * Create order.
461 461
 	 *
462 462
 	 * @param WP_REST_Request $request Full details about the request.
463
-	 * @return int|WP_Error
463
+	 * @return integer
464 464
 	 */
465 465
 	protected function create_order( $request ) {
466 466
 		wc_transaction_query( 'start' );
@@ -945,7 +945,7 @@  discard block
 block discarded – undo
945 945
 	 *
946 946
 	 * @param WP_REST_Request $request Full details about the request.
947 947
 	 * @param WP_Post $post Post data.
948
-	 * @return int|WP_Error
948
+	 * @return integer
949 949
 	 */
950 950
 	protected function update_order( $request, $post ) {
951 951
 		try {
Please login to merge, or discard this patch.