Completed
Push — master ( 6a522b...05c5b0 )
by
unknown
18:04
created
modules/wps_cart/templates/frontend/resume-cart/resume-cart-content.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <!-- <h3 class="wps-h3"><?php _e( 'Cart summary', 'wpshop' ); ?></h3> -->
4 6
 <ul class="wps-cart-resume-list">
@@ -12,8 +14,9 @@  discard block
 block discarded – undo
12 14
 			if ( count($product_attribute_order_detail) > 0  && is_array($product_attribute_order_detail) ) {
13 15
 				foreach ( $product_attribute_order_detail as $product_attr_group_id => $product_attr_group_detail) {
14 16
 					foreach ( $product_attr_group_detail['attribut'] as $position => $attribute_def) {
15
-						if ( !empty($attribute_def->code) )
16
-							$output_order[$attribute_def->code] = $position;
17
+						if ( !empty($attribute_def->code) ) {
18
+													$output_order[$attribute_def->code] = $position;
19
+						}
17 20
 					}
18 21
 				}
19 22
 			}
Please login to merge, or discard this patch.
includes/modules/wps_shipping/controller/wps_shipping_mode_ctr.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 class wps_shipping_mode_ctr {
3 5
 
4 6
 	/**
@@ -70,8 +72,9 @@  discard block
 block discarded – undo
70 72
 	 */
71 73
 	function add_scripts_in_admin( $hook ) {
72 74
 		global $current_screen;
73
-		if ( ! in_array( $current_screen->post_type, array( WPSHOP_NEWTYPE_IDENTIFIER_ORDER ), true ) && $hook !== 'settings_page_wpshop_option' )
74
-			return;
75
+		if ( ! in_array( $current_screen->post_type, array( WPSHOP_NEWTYPE_IDENTIFIER_ORDER ), true ) && $hook !== 'settings_page_wpshop_option' ) {
76
+					return;
77
+		}
75 78
 
76 79
 		add_thickbox();
77 80
 		wp_enqueue_script('jquery');
Please login to merge, or discard this patch.