Passed
Push — master ( 355e93...4b5b0c )
by Fernando
02:15
created
404.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 		<main id="main" class="site-main" role="main">
12 12
 			<section class="error-404 not-found">
13 13
 				<header class="page-header">
14
-					<h1 class="page-title"><?php esc_html_e( 'Whoops!', 'lsx' ); ?></h1>
14
+					<h1 class="page-title"><?php esc_html_e('Whoops!', 'lsx'); ?></h1>
15 15
 				</header><!-- .page-header -->
16 16
 
17 17
 				<div class="page-content">
18
-					<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'lsx' ); ?></p>
18
+					<p><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'lsx'); ?></p>
19 19
 					<?php get_search_form(); ?>
20 20
 				</div><!-- .page-content -->
21 21
 			</section><!-- .error-404 -->
Please login to merge, or discard this patch.
page-templates/template-no-sidebar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27
-				<?php get_template_part( 'partials/content', 'page' ); ?>
27
+				<?php get_template_part('partials/content', 'page'); ?>
28 28
 
29 29
 			<?php endwhile; ?>
30 30
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 		<?php lsx_content_bottom(); ?>
34 34
 
35 35
 		<?php
36
-			if ( comments_open() ) {
36
+			if (comments_open()) {
37 37
 				comments_template();
38 38
 			}
39 39
 		?>
Please login to merge, or discard this patch.
page-templates/template-full-width-no-margins.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25
-			<?php while ( have_posts() ) : the_post(); ?>
25
+			<?php while (have_posts()) : the_post(); ?>
26 26
 
27
-				<?php get_template_part( 'partials/content', 'page' ); ?>
27
+				<?php get_template_part('partials/content', 'page'); ?>
28 28
 
29 29
 			<?php endwhile; ?>
30 30
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 		<?php lsx_content_bottom(); ?>
34 34
 
35 35
 		<?php
36
-			if ( comments_open() ) {
36
+			if (comments_open()) {
37 37
 				comments_template();
38 38
 			}
39 39
 		?>
Please login to merge, or discard this patch.
partials/content-custom.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,16 +16,16 @@
 block discarded – undo
16 16
 		<?php
17 17
 			the_content();
18 18
 
19
-			wp_link_pages( array(
19
+			wp_link_pages(array(
20 20
 				'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
21 21
 				'after'       => '</div></div>',
22 22
 				'link_before' => '<span>',
23 23
 				'link_after'  => '</span>',
24
-			) );
24
+			));
25 25
 		?>
26 26
 	</div><!-- .entry-content -->
27 27
 
28
-	<?php edit_post_link( esc_html__( 'Edit', 'lsx' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
28
+	<?php edit_post_link(esc_html__('Edit', 'lsx'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
29 29
 
30 30
 	<?php lsx_entry_bottom(); ?>
31 31
 
Please login to merge, or discard this patch.
includes/woocommerce.php 1 patch
Spacing   +88 added lines, -88 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage layout
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! function_exists( 'lsx_wc_support' ) ) :
13
+if ( ! function_exists('lsx_wc_support')) :
14 14
 
15 15
 	/**
16 16
 	 * WooCommerce support.
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
 	 * @subpackage woocommerce
20 20
 	 */
21 21
 	function lsx_wc_support() {
22
-		add_theme_support( 'woocommerce' );
22
+		add_theme_support('woocommerce');
23 23
 	}
24 24
 
25
-	add_action( 'after_setup_theme', 'lsx_wc_support' );
25
+	add_action('after_setup_theme', 'lsx_wc_support');
26 26
 
27 27
 endif;
28 28
 
29
-if ( ! function_exists( 'lsx_wc_scripts_add_styles' ) ) :
29
+if ( ! function_exists('lsx_wc_scripts_add_styles')) :
30 30
 
31 31
 	/**
32 32
 	 * WooCommerce enqueue styles.
@@ -35,23 +35,23 @@  discard block
 block discarded – undo
35 35
 	 * @subpackage woocommerce
36 36
 	 */
37 37
 	function lsx_wc_scripts_add_styles() {
38
-		wp_enqueue_style( 'woocommerce-lsx', get_template_directory_uri() . '/assets/css/woocommerce.css', array( 'lsx_main' ), LSX_VERSION );
39
-		wp_style_add_data( 'woocommerce-lsx', 'rtl', 'replace' );
38
+		wp_enqueue_style('woocommerce-lsx', get_template_directory_uri() . '/assets/css/woocommerce.css', array('lsx_main'), LSX_VERSION);
39
+		wp_style_add_data('woocommerce-lsx', 'rtl', 'replace');
40 40
 
41 41
 		// Remove select2 added by WooCommerce
42 42
 
43
-		wp_dequeue_style( 'select2' );
44
-		wp_deregister_style( 'select2' );
43
+		wp_dequeue_style('select2');
44
+		wp_deregister_style('select2');
45 45
 
46
-		wp_dequeue_script( 'select2' );
47
-		wp_deregister_script( 'select2' );
46
+		wp_dequeue_script('select2');
47
+		wp_deregister_script('select2');
48 48
 	}
49 49
 
50
-	add_action( 'wp_enqueue_scripts', 'lsx_wc_scripts_add_styles' );
50
+	add_action('wp_enqueue_scripts', 'lsx_wc_scripts_add_styles');
51 51
 
52 52
 endif;
53 53
 
54
-if ( ! function_exists( 'lsx_wc_form_field_args' ) ) :
54
+if ( ! function_exists('lsx_wc_form_field_args')) :
55 55
 
56 56
 	/**
57 57
 	 * WooCommerce form fields.
@@ -59,17 +59,17 @@  discard block
 block discarded – undo
59 59
 	 * @package    lsx
60 60
 	 * @subpackage woocommerce
61 61
 	 */
62
-	function lsx_wc_form_field_args( $args, $key, $value ) {
62
+	function lsx_wc_form_field_args($args, $key, $value) {
63 63
 		$args['input_class'][] = 'form-control';
64 64
 
65 65
 		return $args;
66 66
 	}
67 67
 
68
-	add_action( 'woocommerce_form_field_args', 'lsx_wc_form_field_args', 10, 3 );
68
+	add_action('woocommerce_form_field_args', 'lsx_wc_form_field_args', 10, 3);
69 69
 
70 70
 endif;
71 71
 
72
-if ( ! function_exists( 'lsx_wc_theme_wrapper_start' ) ) :
72
+if ( ! function_exists('lsx_wc_theme_wrapper_start')) :
73 73
 
74 74
 	/**
75 75
 	 * WooCommerce wrapper start.
@@ -85,12 +85,12 @@  discard block
 block discarded – undo
85 85
 		lsx_content_top();
86 86
 	}
87 87
 
88
-	remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
89
-	add_action( 'woocommerce_before_main_content', 'lsx_wc_theme_wrapper_start' );
88
+	remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
89
+	add_action('woocommerce_before_main_content', 'lsx_wc_theme_wrapper_start');
90 90
 
91 91
 endif;
92 92
 
93
-if ( ! function_exists( 'lsx_wc_theme_wrapper_end' ) ) :
93
+if ( ! function_exists('lsx_wc_theme_wrapper_end')) :
94 94
 
95 95
 	/**
96 96
 	 * WooCommerce wrapper end.
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
 		lsx_content_wrap_after();
107 107
 	}
108 108
 
109
-	remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 );
110
-	add_action( 'woocommerce_after_main_content', 'lsx_wc_theme_wrapper_end' );
109
+	remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
110
+	add_action('woocommerce_after_main_content', 'lsx_wc_theme_wrapper_end');
111 111
 
112 112
 endif;
113 113
 
114
-if ( ! function_exists( 'lsx_wc_disable_lsx_banner_plugin' ) ) :
114
+if ( ! function_exists('lsx_wc_disable_lsx_banner_plugin')) :
115 115
 
116 116
 	/**
117 117
 	 * Disable LSX Banners plugin in some WC pages.
@@ -119,19 +119,19 @@  discard block
 block discarded – undo
119 119
 	 * @package    lsx
120 120
 	 * @subpackage woocommerce
121 121
 	 */
122
-	function lsx_wc_disable_lsx_banner_plugin( $disabled ) {
123
-		if ( is_cart() || is_checkout() || is_account_page() ) {
122
+	function lsx_wc_disable_lsx_banner_plugin($disabled) {
123
+		if (is_cart() || is_checkout() || is_account_page()) {
124 124
 			$disabled = true;
125 125
 		}
126 126
 
127 127
 		return $disabled;
128 128
 	}
129 129
 
130
-	add_filter( 'lsx_banner_plugin_disable', 'lsx_wc_disable_lsx_banner_plugin' );
130
+	add_filter('lsx_banner_plugin_disable', 'lsx_wc_disable_lsx_banner_plugin');
131 131
 
132 132
 endif;
133 133
 
134
-if ( ! function_exists( 'lsx_wc_disable_lsx_banner' ) ) :
134
+if ( ! function_exists('lsx_wc_disable_lsx_banner')) :
135 135
 
136 136
 	/**
137 137
 	 * Disable LSX Banners banner in some WC pages.
@@ -139,19 +139,19 @@  discard block
 block discarded – undo
139 139
 	 * @package    lsx
140 140
 	 * @subpackage woocommerce
141 141
 	 */
142
-	function lsx_wc_disable_lsx_banner( $disabled ) {
143
-		if ( is_shop() || is_product_category() || is_product_tag() || is_product() ) {
142
+	function lsx_wc_disable_lsx_banner($disabled) {
143
+		if (is_shop() || is_product_category() || is_product_tag() || is_product()) {
144 144
 			$disabled = true;
145 145
 		}
146 146
 
147 147
 		return $disabled;
148 148
 	}
149 149
 
150
-	add_filter( 'lsx_banner_disable', 'lsx_wc_disable_lsx_banner' );
150
+	add_filter('lsx_banner_disable', 'lsx_wc_disable_lsx_banner');
151 151
 
152 152
 endif;
153 153
 
154
-if ( ! function_exists( 'lsx_wc_add_cart' ) ) :
154
+if ( ! function_exists('lsx_wc_add_cart')) :
155 155
 
156 156
 	/**
157 157
 	 * Adds WC cart to the header.
@@ -159,25 +159,25 @@  discard block
 block discarded – undo
159 159
 	 * @package    lsx
160 160
 	 * @subpackage template-tags
161 161
 	 */
162
-	function lsx_wc_add_cart( $items, $args ) {
163
-		if ( 'primary' === $args->theme_location ) {
164
-			$customizer_option  = get_theme_mod( 'lsx_header_wc_cart', false );
162
+	function lsx_wc_add_cart($items, $args) {
163
+		if ('primary' === $args->theme_location) {
164
+			$customizer_option = get_theme_mod('lsx_header_wc_cart', false);
165 165
 
166
-			if ( ! empty( $customizer_option ) ) {
166
+			if ( ! empty($customizer_option)) {
167 167
 				ob_start();
168
-				the_widget( 'WC_Widget_Cart', 'title=' );
168
+				the_widget('WC_Widget_Cart', 'title=');
169 169
 				$widget = ob_get_clean();
170 170
 
171
-				if ( is_cart() ) {
171
+				if (is_cart()) {
172 172
 					$class = 'current-menu-item';
173 173
 				} else {
174 174
 					$class = '';
175 175
 				}
176 176
 
177 177
 				$item = '<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown lsx-wc-cart-menu-item ' . $class . '">' .
178
-							'<a title="' . esc_attr__( 'View your shopping cart', 'lsx' ) . '" href="' . esc_url( wc_get_cart_url() ) . '" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true">' .
178
+							'<a title="' . esc_attr__('View your shopping cart', 'lsx') . '" href="' . esc_url(wc_get_cart_url()) . '" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true">' .
179 179
 								/* Translators: %s: items quantity */
180
-								'<span class="lsx-wc-cart-amount">' . wp_kses_data( WC()->cart->get_cart_subtotal() ) . '</span> <span class="lsx-wc-cart-count">' . wp_kses_data( sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), 'lsx' ), WC()->cart->get_cart_contents_count() ) ) . '</span>' .
180
+								'<span class="lsx-wc-cart-amount">' . wp_kses_data(WC()->cart->get_cart_subtotal()) . '</span> <span class="lsx-wc-cart-count">' . wp_kses_data(sprintf(_n('%d item', '%d items', WC()->cart->get_cart_contents_count(), 'lsx'), WC()->cart->get_cart_contents_count())) . '</span>' .
181 181
 							'</a>' .
182 182
 							'<ul role="menu" class=" dropdown-menu lsx-wc-cart-sub-menu">' .
183 183
 								'<li>' .
@@ -193,11 +193,11 @@  discard block
 block discarded – undo
193 193
 		return $items;
194 194
 	}
195 195
 
196
-	add_filter( 'wp_nav_menu_items', 'lsx_wc_add_cart', 10, 2 );
196
+	add_filter('wp_nav_menu_items', 'lsx_wc_add_cart', 10, 2);
197 197
 
198 198
 endif;
199 199
 
200
-if ( ! function_exists( 'lsx_wc_products_widget_wrapper_before' ) ) :
200
+if ( ! function_exists('lsx_wc_products_widget_wrapper_before')) :
201 201
 
202 202
 	/**
203 203
 	 * Change WC products widget wrapper (before).
@@ -205,16 +205,16 @@  discard block
 block discarded – undo
205 205
 	 * @package    lsx
206 206
 	 * @subpackage woocommerce
207 207
 	 */
208
-	function lsx_wc_products_widget_wrapper_before( $html ) {
208
+	function lsx_wc_products_widget_wrapper_before($html) {
209 209
 		$html = '<div class="lsx-woocommerce-slider lsx-woocommerce-shortcode">';
210 210
 		return $html;
211 211
 	}
212 212
 
213
-	add_filter( 'woocommerce_before_widget_product_list', 'lsx_wc_products_widget_wrapper_before', 15 );
213
+	add_filter('woocommerce_before_widget_product_list', 'lsx_wc_products_widget_wrapper_before', 15);
214 214
 
215 215
 endif;
216 216
 
217
-if ( ! function_exists( 'lsx_wc_products_widget_wrapper_after' ) ) :
217
+if ( ! function_exists('lsx_wc_products_widget_wrapper_after')) :
218 218
 
219 219
 	/**
220 220
 	 * Change WC products widget wrapper (after).
@@ -222,16 +222,16 @@  discard block
 block discarded – undo
222 222
 	 * @package    lsx
223 223
 	 * @subpackage woocommerce
224 224
 	 */
225
-	function lsx_wc_products_widget_wrapper_after( $html ) {
225
+	function lsx_wc_products_widget_wrapper_after($html) {
226 226
 		$html = '</div>';
227 227
 		return $html;
228 228
 	}
229 229
 
230
-	add_filter( 'woocommerce_after_widget_product_list', 'lsx_wc_products_widget_wrapper_after', 15 );
230
+	add_filter('woocommerce_after_widget_product_list', 'lsx_wc_products_widget_wrapper_after', 15);
231 231
 
232 232
 endif;
233 233
 
234
-if ( ! function_exists( 'lsx_wc_reviews_widget_override' ) ) :
234
+if ( ! function_exists('lsx_wc_reviews_widget_override')) :
235 235
 
236 236
 	/**
237 237
 	 * Override WC ewviews widget.
@@ -240,18 +240,18 @@  discard block
 block discarded – undo
240 240
 	 * @subpackage woocommerce
241 241
 	 */
242 242
 	function lsx_wc_reviews_widget_override() {
243
-		if ( class_exists( 'WC_Widget_Recent_Reviews' ) ) {
244
-			unregister_widget( 'WC_Widget_Recent_Reviews' );
243
+		if (class_exists('WC_Widget_Recent_Reviews')) {
244
+			unregister_widget('WC_Widget_Recent_Reviews');
245 245
 			require get_template_directory() . '/includes/classes/class-lsx-wc-widget-recent-reviews.php';
246
-			register_widget( 'LSX_WC_Widget_Recent_Reviews' );
246
+			register_widget('LSX_WC_Widget_Recent_Reviews');
247 247
 		}
248 248
 	}
249 249
 
250
-	add_action( 'widgets_init', 'lsx_wc_reviews_widget_override', 15 );
250
+	add_action('widgets_init', 'lsx_wc_reviews_widget_override', 15);
251 251
 
252 252
 endif;
253 253
 
254
-if ( ! function_exists( 'lsx_wc_change_price_html' ) ) :
254
+if ( ! function_exists('lsx_wc_change_price_html')) :
255 255
 
256 256
 	/**
257 257
 	 * Change WC ZERO price to "free".
@@ -259,28 +259,28 @@  discard block
 block discarded – undo
259 259
 	 * @package    lsx
260 260
 	 * @subpackage woocommerce
261 261
 	 */
262
-	function lsx_wc_change_price_html( $price, $product ) {
263
-		if ( empty( $product->get_price() ) ) {
264
-			if ( $product->is_on_sale() && $product->get_regular_price() ) {
265
-				$regular_price = wc_get_price_to_display( $product, array(
262
+	function lsx_wc_change_price_html($price, $product) {
263
+		if (empty($product->get_price())) {
264
+			if ($product->is_on_sale() && $product->get_regular_price()) {
265
+				$regular_price = wc_get_price_to_display($product, array(
266 266
 					'qty' => 1,
267 267
 					'price' => $product->get_regular_price(),
268
-				) );
268
+				));
269 269
 
270
-				$price = wc_format_price_range( $regular_price, esc_html__( 'Free!', 'lsx' ) );
270
+				$price = wc_format_price_range($regular_price, esc_html__('Free!', 'lsx'));
271 271
 			} else {
272
-				$price = '<span class="amount">' . esc_html__( 'Free!', 'lsx' ) . '</span>';
272
+				$price = '<span class="amount">' . esc_html__('Free!', 'lsx') . '</span>';
273 273
 			}
274 274
 		}
275 275
 
276 276
 		return $price;
277 277
 	}
278 278
 
279
-	add_filter( 'woocommerce_get_price_html', 'lsx_wc_change_price_html', 15, 2 );
279
+	add_filter('woocommerce_get_price_html', 'lsx_wc_change_price_html', 15, 2);
280 280
 
281 281
 endif;
282 282
 
283
-if ( ! function_exists( 'lsx_wc_cart_link_fragment' ) ) :
283
+if ( ! function_exists('lsx_wc_cart_link_fragment')) :
284 284
 
285 285
 	/**
286 286
 	 * Cart Fragments.
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 	 * @package    lsx
290 290
 	 * @subpackage woocommerce
291 291
 	 */
292
-	function lsx_wc_cart_link_fragment( $fragments ) {
292
+	function lsx_wc_cart_link_fragment($fragments) {
293 293
 		global $woocommerce;
294 294
 
295 295
 		ob_start();
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 
302 302
 endif;
303 303
 
304
-if ( ! function_exists( 'lsx_wc_cart_link' ) ) :
304
+if ( ! function_exists('lsx_wc_cart_link')) :
305 305
 
306 306
 	/**
307 307
 	 * Cart Link.
@@ -312,16 +312,16 @@  discard block
 block discarded – undo
312 312
 	 */
313 313
 	function lsx_wc_cart_link() {
314 314
 		?>
315
-			<a title="<?php esc_attr_e( 'View your shopping cart', 'lsx' ); ?>" href="<?php echo esc_url( wc_get_cart_url() ); ?>" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true">
315
+			<a title="<?php esc_attr_e('View your shopping cart', 'lsx'); ?>" href="<?php echo esc_url(wc_get_cart_url()); ?>" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true">
316 316
 				<?php /* Translators: %s: items quantity */ ?>
317
-				<span class="lsx-wc-cart-amount"><?php echo wp_kses_data( WC()->cart->get_cart_subtotal() ); ?></span> <span class="lsx-wc-cart-count"><?php echo wp_kses_data( sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), 'lsx' ), WC()->cart->get_cart_contents_count() ) );?></span>
317
+				<span class="lsx-wc-cart-amount"><?php echo wp_kses_data(WC()->cart->get_cart_subtotal()); ?></span> <span class="lsx-wc-cart-count"><?php echo wp_kses_data(sprintf(_n('%d item', '%d items', WC()->cart->get_cart_contents_count(), 'lsx'), WC()->cart->get_cart_contents_count())); ?></span>
318 318
 			</a>
319 319
 		<?php
320 320
 	}
321 321
 
322 322
 endif;
323 323
 
324
-if ( ! function_exists( 'lsx_wc_loop_shop_per_page' ) ) :
324
+if ( ! function_exists('lsx_wc_loop_shop_per_page')) :
325 325
 
326 326
 	/**
327 327
 	 * Changes the number of products to display on shop.
@@ -329,39 +329,39 @@  discard block
 block discarded – undo
329 329
 	 * @package    lsx
330 330
 	 * @subpackage woocommerce
331 331
 	 */
332
-	function lsx_wc_loop_shop_per_page( $items ) {
332
+	function lsx_wc_loop_shop_per_page($items) {
333 333
 		$items = 20;
334 334
 		return $items;
335 335
 	}
336 336
 
337
-	add_filter( 'loop_shop_per_page', 'lsx_wc_loop_shop_per_page', 20 );
337
+	add_filter('loop_shop_per_page', 'lsx_wc_loop_shop_per_page', 20);
338 338
 
339 339
 endif;
340 340
 
341
-if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.3', '>=' ) ) {
342
-	add_filter( 'woocommerce_add_to_cart_fragments', 'lsx_wc_cart_link_fragment' );
341
+if (defined('WC_VERSION') && version_compare(WC_VERSION, '2.3', '>=')) {
342
+	add_filter('woocommerce_add_to_cart_fragments', 'lsx_wc_cart_link_fragment');
343 343
 } else {
344
-	add_filter( 'add_to_cart_fragments', 'lsx_wc_cart_link_fragment' );
344
+	add_filter('add_to_cart_fragments', 'lsx_wc_cart_link_fragment');
345 345
 }
346 346
 
347
-remove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );
347
+remove_action('woocommerce_after_shop_loop', 'woocommerce_pagination', 10);
348 348
 
349
-add_action( 'woocommerce_after_shop_loop', 'lsx_wc_sorting_wrapper', 9 );
350
-add_action( 'woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10 );
351
-add_action( 'woocommerce_after_shop_loop', 'woocommerce_result_count', 20 );
352
-add_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 30 );
353
-add_action( 'woocommerce_after_shop_loop', 'lsx_wc_sorting_wrapper_close', 31 );
349
+add_action('woocommerce_after_shop_loop', 'lsx_wc_sorting_wrapper', 9);
350
+add_action('woocommerce_after_shop_loop', 'woocommerce_catalog_ordering', 10);
351
+add_action('woocommerce_after_shop_loop', 'woocommerce_result_count', 20);
352
+add_action('woocommerce_after_shop_loop', 'woocommerce_pagination', 30);
353
+add_action('woocommerce_after_shop_loop', 'lsx_wc_sorting_wrapper_close', 31);
354 354
 
355
-remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
356
-remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
355
+remove_action('woocommerce_before_shop_loop', 'woocommerce_result_count', 20);
356
+remove_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30);
357 357
 
358
-add_action( 'woocommerce_before_shop_loop', 'lsx_wc_sorting_wrapper', 9 );
359
-add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10 );
360
-add_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
361
-add_action( 'woocommerce_before_shop_loop', 'lsx_wc_woocommerce_pagination', 30 );
362
-add_action( 'woocommerce_before_shop_loop', 'lsx_wc_sorting_wrapper_close', 31 );
358
+add_action('woocommerce_before_shop_loop', 'lsx_wc_sorting_wrapper', 9);
359
+add_action('woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 10);
360
+add_action('woocommerce_before_shop_loop', 'woocommerce_result_count', 20);
361
+add_action('woocommerce_before_shop_loop', 'lsx_wc_woocommerce_pagination', 30);
362
+add_action('woocommerce_before_shop_loop', 'lsx_wc_sorting_wrapper_close', 31);
363 363
 
364
-if ( ! function_exists( 'lsx_wc_sorting_wrapper' ) ) :
364
+if ( ! function_exists('lsx_wc_sorting_wrapper')) :
365 365
 
366 366
 	/**
367 367
 	 * Sorting wrapper.
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 
376 376
 endif;
377 377
 
378
-if ( ! function_exists( 'lsx_wc_sorting_wrapper_close' ) ) :
378
+if ( ! function_exists('lsx_wc_sorting_wrapper_close')) :
379 379
 
380 380
 	/**
381 381
 	 * Sorting wrapper close.
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
 
390 390
 endif;
391 391
 
392
-if ( ! function_exists( 'lsx_wc_product_columns_wrapper_close' ) ) :
392
+if ( ! function_exists('lsx_wc_product_columns_wrapper_close')) :
393 393
 
394 394
 	/**
395 395
 	 * Product columns wrapper close.
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 
404 404
 endif;
405 405
 
406
-if ( ! function_exists( 'lsx_wc_woocommerce_pagination' ) ) :
406
+if ( ! function_exists('lsx_wc_woocommerce_pagination')) :
407 407
 
408 408
 	/**
409 409
 	 * LSX WooCommerce Pagination
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 	 * @subpackage woocommerce
416 416
 	 */
417 417
 	function lsx_wc_woocommerce_pagination() {
418
-		if ( woocommerce_products_will_display() ) {
418
+		if (woocommerce_products_will_display()) {
419 419
 			woocommerce_pagination();
420 420
 		}
421 421
 	}
Please login to merge, or discard this patch.