Completed
Pull Request — master (#10)
by
unknown
01:16
created
includes/wc-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 3 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
 	function discontinued_template_loop_price( $price, $product ) {
121 121
 		$product_id = $product->get_id();
122 122
 		if ( dp_is_discontinued( $product_id ) ) {
123
-			if(is_admin()){
123
+			if(is_admin()) {
124 124
 				return 'Discontinued';
125 125
 			}
126 126
 			$prod_text_option = get_post_meta( $product_id, '_discontinued_product_text', true );
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 	/**
136 136
 	 * Discontinued_template_price_class - Add "discontinued" to the price class.
137 137
 	 *
138
-	 * @return null
138
+	 * @return string
139 139
 	 */
140 140
 	function discontinued_template_price_class( $val, $class ) {
141 141
 		$class = $val . ' discontinued';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 	function discontinued_template_loop_price( $price, $product ) {
130 130
 		$product_id = $product->get_id();
131 131
 		if ( dp_is_discontinued( $product_id ) ) {
132
-			if(is_admin()){
132
+			if ( is_admin() ) {
133 133
 				return 'Discontinued';
134 134
 			}
135 135
 			$prod_text_option = get_post_meta( $product_id, '_discontinued_product_text', true );
Please login to merge, or discard this patch.
includes/wc-class-dp-discontinued-product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -307,7 +307,7 @@
 block discarded – undo
307 307
 							'compare' => 'NOT EXISTS'
308 308
 						)
309 309
 					));
310
-				$query->set('meta_query', $args);
310
+				$query->set( 'meta_query', $args );
311 311
 			}
312 312
 			return $query;
313 313
 		}
Please login to merge, or discard this patch.
woocommerce-discontinued-products.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,8 @@
 block discarded – undo
8 8
  * Version: 1.1.7
9 9
  * Text Domain: woocommerce-discontinued-products
10 10
  * Domain Path: /languages
11
-
12 11
  * License: GNU General Public License v3.0
13 12
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
14
-
15 13
  * @package woocommerce
16 14
  */
17 15
 
Please login to merge, or discard this patch.