Completed
Push — master ( 84cd3f...1a4147 )
by Leon
01:15
created
includes/class-dp-csv-import-export.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 		 *
150 150
 		 * @param mixed      $value   (default: '').
151 151
 		 * @param WC_Product $product Product object.
152
-		 * @return mixed     $value   Should be in a format that can be output into a text file (string, numeric, etc).
152
+		 * @return string     $value   Should be in a format that can be output into a text file (string, numeric, etc).
153 153
 		 */
154 154
 		public function add_export_data_alt_products( $value, $product ) {
155 155
 			$value = $product->get_meta( '_alt_products', true, 'edit' );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
 				'_hide_from_shop',
208 208
 				'_hide_from_search',
209 209
 			);
210
-			$meta_keys    = array_unique( array_merge( $meta_keys, $dp_meta_keys ) );
210
+			$meta_keys = array_unique( array_merge( $meta_keys, $dp_meta_keys ) );
211 211
 			return $meta_keys;
212 212
 		}
213 213
 	}
Please login to merge, or discard this patch.
woocommerce-template.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
 	 * Discontinued_template_price_class - Add "discontinued" to the price class.
160 160
 	 *
161 161
 	 * @param int $class Product price css class.
162
-	 * @return null
162
+	 * @return string
163 163
 	 */
164 164
 	function discontinued_template_price_class( $class ) {
165 165
 		$class = $class . ' discontinued';
Please login to merge, or discard this patch.
includes/class-dp-shortcode-discontinued.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 	 * @param array $query_args Query args.
23 23
 	 */
24 24
 	protected function set_discontinued_products_query_args( &$query_args ) {
25
-		$dp_discontinued_term    = (int) get_option( 'dp_discontinued_term' );
25
+		$dp_discontinued_term = (int) get_option( 'dp_discontinued_term' );
26 26
 		$query_args['tax_query'][] = array(
27 27
 			'taxonomy' => 'product_discontinued',
28 28
 			'field'    => 'id',
Please login to merge, or discard this patch.
includes/class-dp-discontinued-product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@
 block discarded – undo
264 264
 						'operator' => 'IN',
265 265
 					);
266 266
 				}
267
-				if (  ( is_shop() || is_product_category() ) && $this->current_page_id !== $dc_shop_page_id && ! $q->is_search() ) {
267
+				if ( ( is_shop() || is_product_category() ) && $this->current_page_id !== $dc_shop_page_id && ! $q->is_search() ) {
268 268
 					$tax_query[] = array(
269 269
 						'relation' => 'OR',
270 270
 						array(
Please login to merge, or discard this patch.