Completed
Push — master ( 409d21...32c778 )
by
unknown
12:55
created
templates/backend/provider_products/product_provider_attribute.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3 3
 <div class="wps-form-group">
4
-	<label><?php _e( $att['field_definition']['label'], 'wpshop' ); ?></label>
5
-	<div class="wps-form"><?php echo str_replace( 'name="wpshop_product_attribute', 'name="wps_provider_product[' .$post->ID. '][' . WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT . '_attribute]', $att['field_definition']['output'] ); ?></div>
4
+	<label><?php _e($att['field_definition']['label'], 'wpshop'); ?></label>
5
+	<div class="wps-form"><?php echo str_replace('name="wpshop_product_attribute', 'name="wps_provider_product[' . $post->ID . '][' . WPSHOP_NEWTYPE_IDENTIFIER_PRODUCT . '_attribute]', $att['field_definition']['output']); ?></div>
6 6
 </div>
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <div class="wps-form-group">
4 6
 	<label><?php _e( $att['field_definition']['label'], 'wpshop' ); ?></label>
Please login to merge, or discard this patch.
wps_customer/templates/backend/customer_listtable/customer_email.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3 3
 <a href="mailto:<?php echo $current_user_datas->user_email; ?>" ><?php echo $current_user_datas->user_email; ?></a>
4 4
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,5 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <a href="mailto:<?php echo $current_user_datas->user_email; ?>" ><?php echo $current_user_datas->user_email; ?></a>
4 6
\ No newline at end of file
Please login to merge, or discard this patch.
wps_customer/templates/backend/customer_listtable/customer_orders.php 2 patches
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,44 +1,44 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 
3 3
 	/**	Get customer orders list for statistic displaying	*/
4 4
 	$wps_orders_mdl = new wps_orders_mdl();
5
-	$orders = $wps_orders_mdl->get_customer_orders( $current_user_id_in_list );
6
-	$color_label = array( 'awaiting_payment' => 'jaune', 'canceled' => 'rouge', 'partially_paid' => 'orange', 'incorrect_amount' => 'orange', 'denied' => 'rouge', 'shipped' => 'bleu', 'pos' => 'bleu', 'payment_refused' => 'rouge', 'completed' => 'vert', 'refunded' => 'rouge');
5
+	$orders = $wps_orders_mdl->get_customer_orders($current_user_id_in_list);
6
+	$color_label = array('awaiting_payment' => 'jaune', 'canceled' => 'rouge', 'partially_paid' => 'orange', 'incorrect_amount' => 'orange', 'denied' => 'rouge', 'shipped' => 'bleu', 'pos' => 'bleu', 'payment_refused' => 'rouge', 'completed' => 'vert', 'refunded' => 'rouge');
7 7
 
8
-if ( !empty( $orders ) ) :
9
-	$currency = wpshop_tools::wpshop_get_currency( false );
10
-	$orders_status = unserialize( WPSHOP_ORDER_STATUS );
8
+if (!empty($orders)) :
9
+	$currency = wpshop_tools::wpshop_get_currency(false);
10
+	$orders_status = unserialize(WPSHOP_ORDER_STATUS);
11 11
 
12 12
 	$customer_order_total_amount = $customer_order_real_total_amount = 0;
13 13
 	$order_statuses = array();
14 14
 	$ordered_products = array();
15
-	foreach( $orders as $order ) :
16
-		$order_meta = get_post_meta( $order->ID, '_order_postmeta', true );
15
+	foreach ($orders as $order) :
16
+		$order_meta = get_post_meta($order->ID, '_order_postmeta', true);
17 17
 
18
-		if ( empty( $order_statuses[ $order_meta['order_status'] ] ) ) {
19
-			$order_statuses[ $order_meta['order_status'] ] = 1;
18
+		if (empty($order_statuses[$order_meta['order_status']])) {
19
+			$order_statuses[$order_meta['order_status']] = 1;
20 20
 		}
21 21
 		else {
22
-			$order_statuses[ $order_meta['order_status'] ] += 1;
22
+			$order_statuses[$order_meta['order_status']] += 1;
23 23
 		}
24 24
 
25 25
 		$customer_order_total_amount += $order_meta['order_grand_total'];
26
-		if ( 'completed' == $order_meta['order_status'] ) {
26
+		if ('completed' == $order_meta['order_status']) {
27 27
 			$customer_order_real_total_amount += $order_meta['order_grand_total'];
28 28
 		}
29 29
 
30
-		if ( !empty( $order_meta ) && !empty( $order_meta[ 'order_items' ] ) ) {
31
-			foreach ( $order_meta[ 'order_items' ] as $order_item ) :
32
-				$ordered_products[ $order_item[ 'item_id' ] ] = $order_item[ 'item_name' ];
30
+		if (!empty($order_meta) && !empty($order_meta['order_items'])) {
31
+			foreach ($order_meta['order_items'] as $order_item) :
32
+				$ordered_products[$order_item['item_id']] = $order_item['item_name'];
33 33
 			endforeach;
34 34
 		}
35 35
 	endforeach;
36 36
 
37 37
 	$order_list = '  ';
38
-	foreach ( $order_statuses as $order_status => $nb_of_order_with_status ) :
38
+	foreach ($order_statuses as $order_status => $nb_of_order_with_status) :
39 39
 		ob_start();
40 40
 ?>
41
-		<span class="wps-label-<?php echo $color_label[ strtolower($order_status) ]; ?>"><?php printf( __( '%2$s %1$s', 'wpshop' ), __( $orders_status[ strtolower($order_status) ], 'wpshop' ), $nb_of_order_with_status ); ?></span>
41
+		<span class="wps-label-<?php echo $color_label[strtolower($order_status)]; ?>"><?php printf(__('%2$s %1$s', 'wpshop'), __($orders_status[strtolower($order_status)], 'wpshop'), $nb_of_order_with_status); ?></span>
42 42
 <?php
43 43
 		$order_list .= ob_get_contents();
44 44
 		ob_end_clean();
@@ -47,17 +47,17 @@  discard block
 block discarded – undo
47 47
 ?>
48 48
 <ul class="wp-shop-customers-list-orders-stats" >
49 49
 	<li>
50
-		<?php printf( __( 'Orders total number : %d', 'wpshop' ), count( $orders ) ); ?>  <?php echo mb_substr( $order_list, 0, -2, 'UTF-8' ); ?>
50
+		<?php printf(__('Orders total number : %d', 'wpshop'), count($orders)); ?>  <?php echo mb_substr($order_list, 0, -2, 'UTF-8'); ?>
51 51
 	</li>
52 52
 	<li>
53
-		<?php printf( __( 'Orders total amount : %s', 'wpshop' ), wpshop_tools::formate_number( $customer_order_real_total_amount ).' '.$currency ); ?>
54
-		<?php if ( !empty( $customer_order_total_amount ) && ( $customer_order_total_amount != $customer_order_real_total_amount ) ) : ?>( <?php printf( __( 'If all orders were paid : %s', 'wpshop' ), wpshop_tools::formate_number( $customer_order_total_amount ).' '.$currency ); ?> )<?php endif; ?>
53
+		<?php printf(__('Orders total amount : %s', 'wpshop'), wpshop_tools::formate_number($customer_order_real_total_amount) . ' ' . $currency); ?>
54
+		<?php if (!empty($customer_order_total_amount) && ($customer_order_total_amount != $customer_order_real_total_amount)) : ?>( <?php printf(__('If all orders were paid : %s', 'wpshop'), wpshop_tools::formate_number($customer_order_total_amount) . ' ' . $currency); ?> )<?php endif; ?>
55 55
 	</li>
56 56
 </ul>
57 57
 <div class="wp-shop-customers-list-ordered-product" >
58
-	<p><?php _e( 'List of ordered product', 'wpshop' ); ?></p>
59
-	<?php echo implode( ', ', $ordered_products ); ?>
58
+	<p><?php _e('List of ordered product', 'wpshop'); ?></p>
59
+	<?php echo implode(', ', $ordered_products); ?>
60 60
 </div>
61 61
 <?php else: ?>
62
-	<div class="wps-alert-info"><?php _e( 'No order have been created for the moment', 'wpshop'); ?></div>
62
+	<div class="wps-alert-info"><?php _e('No order have been created for the moment', 'wpshop'); ?></div>
63 63
 <?php endif; ?>
64 64
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +9 added lines, -5 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
 	/**	Get customer orders list for statistic displaying	*/
4 6
 	$wps_orders_mdl = new wps_orders_mdl();
@@ -17,8 +19,7 @@  discard block
 block discarded – undo
17 19
 
18 20
 		if ( empty( $order_statuses[ $order_meta['order_status'] ] ) ) {
19 21
 			$order_statuses[ $order_meta['order_status'] ] = 1;
20
-		}
21
-		else {
22
+		} else {
22 23
 			$order_statuses[ $order_meta['order_status'] ] += 1;
23 24
 		}
24 25
 
@@ -58,6 +59,9 @@  discard block
 block discarded – undo
58 59
 	<p><?php _e( 'List of ordered product', 'wpshop' ); ?></p>
59 60
 	<?php echo implode( ', ', $ordered_products ); ?>
60 61
 </div>
61
-<?php else: ?>
62
-	<div class="wps-alert-info"><?php _e( 'No order have been created for the moment', 'wpshop'); ?></div>
62
+<?php else {
63
+	: ?>
64
+	<div class="wps-alert-info"><?php _e( 'No order have been created for the moment', 'wpshop');
65
+}
66
+?></div>
63 67
 <?php endif; ?>
64 68
\ No newline at end of file
Please login to merge, or discard this patch.
includes/modules/wps_customer/model/wps_customer_mdl.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 class wps_customer_mdl {
3 5
 
4 6
 	function __construct() {
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 class wps_customer_mdl {
3 3
 
4 4
 	function __construct() {
@@ -9,15 +9,15 @@  discard block
 block discarded – undo
9 9
 	 * Return users list
10 10
 	 * @return array
11 11
 	 */
12
-	function getUserList( $limit = null ) {
12
+	function getUserList($limit = null) {
13 13
 		$args = array(
14 14
 			'orderby'      => 'user_email',
15 15
 			'order'        => 'ASC',
16
-			'number'       => !empty( $limit ) ? $limit : "",
16
+			'number'       => !empty($limit) ? $limit : "",
17 17
 			'count_total'  => false,
18 18
 			'fields'       => 'all'
19 19
 		);
20
-		return get_users( $args );
20
+		return get_users($args);
21 21
 	}
22 22
 
23 23
 	/**
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
 	 *
31 31
 	 * @return WP_Query The complete query for customer list retrieving
32 32
 	 */
33
-	function get_customer_list( $nb_per_page = 10, $offset = 0, $extra_args = array() ) {
33
+	function get_customer_list($nb_per_page = 10, $offset = 0, $extra_args = array()) {
34 34
 		/**	Define args for listing	*/
35 35
 		$customer_list_args = array(
36 36
 			'post_type'				=> WPSHOP_NEWTYPE_IDENTIFIER_CUSTOMERS,
37
-			'post_status'			=> array( 'pending', 'draft', 'publish', 'private' ),
37
+			'post_status'			=> array('pending', 'draft', 'publish', 'private'),
38 38
 			'posts_per_page'	=> $nb_per_page,
39 39
 		);
40 40
 		if ( -1 !== $nb_per_page ) {
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 		}
43 43
 
44 44
 		$wpshop_customer_search = new wpshop_customer_search();
45
-		add_filter( 'posts_where', array( $wpshop_customer_search, 'wpshop_search_where_in_customer' ) );
45
+		add_filter('posts_where', array($wpshop_customer_search, 'wpshop_search_where_in_customer'));
46 46
 
47 47
 		/**	Get customer list with builtin wordpress function	*/
48
-		$customer_list_query = new WP_Query( wp_parse_args( $extra_args, $customer_list_args ) );
48
+		$customer_list_query = new WP_Query(wp_parse_args($extra_args, $customer_list_args));
49 49
 
50 50
 		/**	Remove previously added filter for search extension	*/
51
-		remove_filter( 'posts_where', array( $wpshop_customer_search, 'wpshop_search_where_in_customer' ) );
51
+		remove_filter('posts_where', array($wpshop_customer_search, 'wpshop_search_where_in_customer'));
52 52
 
53 53
 		return $customer_list_query;
54 54
 	}
@@ -61,17 +61,17 @@  discard block
 block discarded – undo
61 61
 	 *
62 62
 	 * @return string The new query restriction with the user search parameters
63 63
 	 */
64
-	function wps_customer_search_extend( $where, &$wp_query = "" ) {
64
+	function wps_customer_search_extend($where, &$wp_query = "") {
65 65
 		global $wpdb;
66 66
 
67
-		$search_term = !empty( $_GET[ 'term' ] ) ? sanitize_text_field($_GET[ 'term' ] ) : ( !empty( $_GET[ 's' ] ) ? sanitize_text_field( $_GET[ 's' ] ) : '' );
68
-		if ( !empty( $search_term ) ) {
67
+		$search_term = !empty($_GET['term']) ? sanitize_text_field($_GET['term']) : (!empty($_GET['s']) ? sanitize_text_field($_GET['s']) : '');
68
+		if (!empty($search_term)) {
69 69
 			$where .= " AND (
70
-						( {$wpdb->posts}.post_title LIKE '%" . esc_sql( $wpdb->esc_like( $search_term ) ) . "%' )
70
+						( {$wpdb->posts}.post_title LIKE '%" . esc_sql($wpdb->esc_like($search_term)) . "%' )
71 71
 							OR
72
-						( {$wpdb->posts}.post_author IN ( SELECT ID FROM {$wpdb->users} WHERE display_name LIKE '%" . esc_sql( $wpdb->esc_like( $search_term ) ) . "%' OR user_email LIKE '%" . esc_sql( $wpdb->esc_like( $search_term ) ) . "%' OR user_nicename LIKE '%" . esc_sql( $wpdb->esc_like( $search_term ) ) . "%' ) )
72
+						( {$wpdb->posts}.post_author IN ( SELECT ID FROM {$wpdb->users} WHERE display_name LIKE '%" . esc_sql($wpdb->esc_like($search_term)) . "%' OR user_email LIKE '%" . esc_sql($wpdb->esc_like($search_term)) . "%' OR user_nicename LIKE '%" . esc_sql($wpdb->esc_like($search_term)) . "%' ) )
73 73
 							OR
74
-						( {$wpdb->posts}.post_author IN ( SELECT user_id FROM {$wpdb->usermeta} WHERE ( meta_key = 'first_name' AND meta_value LIKE '%" . esc_sql( $wpdb->esc_like( $search_term ) ) . "%' ) OR ( meta_key = 'last_name' AND meta_value LIKE '%" . esc_sql( $wpdb->esc_like( $search_term ) ) . "%' ) OR ( meta_key = 'nickname' AND meta_value LIKE '%" . esc_sql( $wpdb->esc_like( $search_term ) ) . "%' ) ) )
74
+						( {$wpdb->posts}.post_author IN ( SELECT user_id FROM {$wpdb->usermeta} WHERE ( meta_key = 'first_name' AND meta_value LIKE '%" . esc_sql($wpdb->esc_like($search_term)) . "%' ) OR ( meta_key = 'last_name' AND meta_value LIKE '%" . esc_sql($wpdb->esc_like($search_term)) . "%' ) OR ( meta_key = 'nickname' AND meta_value LIKE '%" . esc_sql($wpdb->esc_like($search_term)) . "%' ) ) )
75 75
 					)";
76 76
 		}
77 77
 
Please login to merge, or discard this patch.
wps_customer/modules/wps_customer_quick_add/wps_customer_quick_add.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 
3
-DEFINE( 'WPSCLTQUICK_VERSION', 1.0 );
4
-DEFINE( 'WPSCLTQUICK_DIR', basename( dirname( __FILE__ ) ) );
5
-DEFINE( 'WPSCLTQUICK_PATH', str_replace( "\\", "/", plugin_dir_path( __FILE__ ) ) );
6
-DEFINE( 'WPSCLTQUICK_URL', str_replace( str_replace( "\\", "/", ABSPATH), site_url() . '/', WPSCLTQUICK_PATH ) );
3
+DEFINE('WPSCLTQUICK_VERSION', 1.0);
4
+DEFINE('WPSCLTQUICK_DIR', basename(dirname(__FILE__)));
5
+DEFINE('WPSCLTQUICK_PATH', str_replace("\\", "/", plugin_dir_path(__FILE__)));
6
+DEFINE('WPSCLTQUICK_URL', str_replace(str_replace("\\", "/", ABSPATH), site_url() . '/', WPSCLTQUICK_PATH));
7 7
 
8 8
 /**	Définition du chemin absolu vers les templates / Define the templates absolute directories	*/
9
-DEFINE( 'WPSCLTQUICK_TEMPLATES_MAIN_DIR', WPSCLTQUICK_PATH . '/templates/');
9
+DEFINE('WPSCLTQUICK_TEMPLATES_MAIN_DIR', WPSCLTQUICK_PATH . '/templates/');
10 10
 
11 11
 
12 12
 /** Inclusion des différents composants / Include plugin components */
13
-require_once( WPSCLTQUICK_PATH . 'controller/wps_customer_quick_add.ctr.php' );
13
+require_once(WPSCLTQUICK_PATH . 'controller/wps_customer_quick_add.ctr.php');
14 14
 /**	Instanciation du controlleur principal / Main controller instanciation	*/
15 15
 $wps_customer_quick_add = new wps_customer_quick_add();
16 16
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 
3 5
 DEFINE( 'WPSCLTQUICK_VERSION', 1.0 );
4 6
 DEFINE( 'WPSCLTQUICK_DIR', basename( dirname( __FILE__ ) ) );
Please login to merge, or discard this patch.
includes/modules/wps_wishlist/wps_wishlist.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 /**
3 3
  * WpShop Cart bootstrap file
4 4
  * @author Jimmy LATOUR- Eoxia dev team <[email protected]>
@@ -9,24 +9,24 @@  discard block
 block discarded – undo
9 9
  */
10 10
 
11 11
 
12
-if ( !defined( 'WPSHOP_VERSION' ) ) {
13
-	die( __("You are not allowed to use this service.", 'wpshop') );
12
+if (!defined('WPSHOP_VERSION')) {
13
+	die(__("You are not allowed to use this service.", 'wpshop'));
14 14
 }
15 15
 
16 16
 /** Template Global vars **/
17 17
 DEFINE('WPS_WISHLIST_DIR', basename(dirname(__FILE__)));
18
-DEFINE('WPS_WISHLIST_PATH', str_replace( "\\", "/", str_replace( WPS_WISHLIST_DIR, "", dirname( __FILE__ ) ) ) );
19
-DEFINE('WPS_WISHLIST_URL', str_replace( str_replace( "\\", "/", ABSPATH), site_url() . '/', WPS_WISHLIST_PATH ) );
20
-DEFINE( 'WPS_WISHLIST_TEMPLATE_DIR', WPS_WISHLIST_PATH . WPS_WISHLIST_DIR . '/templates/');
21
-load_plugin_textdomain( 'wps_wishlist_i18n', false, dirname(plugin_basename( __FILE__ )).'/languages/' );
18
+DEFINE('WPS_WISHLIST_PATH', str_replace("\\", "/", str_replace(WPS_WISHLIST_DIR, "", dirname(__FILE__))));
19
+DEFINE('WPS_WISHLIST_URL', str_replace(str_replace("\\", "/", ABSPATH), site_url() . '/', WPS_WISHLIST_PATH));
20
+DEFINE('WPS_WISHLIST_TEMPLATE_DIR', WPS_WISHLIST_PATH . WPS_WISHLIST_DIR . '/templates/');
21
+load_plugin_textdomain('wps_wishlist_i18n', false, dirname(plugin_basename(__FILE__)) . '/languages/');
22 22
 
23 23
 // Include Controller
24
-include( plugin_dir_path( __FILE__ ).'controller/wps_wishlist_ctr.php' );
25
-include( plugin_dir_path( __FILE__ ).'controller/wps_wishlist_settings_ctr.php' );
24
+include(plugin_dir_path(__FILE__) . 'controller/wps_wishlist_ctr.php');
25
+include(plugin_dir_path(__FILE__) . 'controller/wps_wishlist_settings_ctr.php');
26 26
 
27 27
 // Init Controller
28 28
 new wps_wishlist_settings();
29 29
 $wpshop_catalog_product_option = wps_wishlist_settings::get_option();
30
-if( !empty($wpshop_catalog_product_option) ) {
30
+if (!empty($wpshop_catalog_product_option)) {
31 31
 	$wps_wishlist = new wps_wishlist();
32 32
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 /**
3 5
  * WpShop Cart bootstrap file
4 6
  * @author Jimmy LATOUR- Eoxia dev team <[email protected]>
Please login to merge, or discard this patch.
includes/modules/wps_wishlist/controller/wps_wishlist_settings_ctr.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 
3 3
 class wps_wishlist_settings {
4 4
 	public static function get_option() {
5 5
 		$result = get_option('wpshop_catalog_product_option');
6
-		return ( !empty($result) && !empty($result['wps_wishlist_display']) ) ? $result['wps_wishlist_display'] : null;
6
+		return (!empty($result) && !empty($result['wps_wishlist_display'])) ? $result['wps_wishlist_display'] : null;
7 7
 	}
8 8
 	public function __construct() {
9 9
 		add_action('wsphop_options', array($this, 'declare_options'));
@@ -16,6 +16,6 @@  discard block
 block discarded – undo
16 16
 	
17 17
 	function display_option() {
18 18
 		$wps_wishlist_display = self::get_option();
19
-		require_once( wpshop_tools::get_template_part( WPS_WISHLIST_DIR, WPS_WISHLIST_TEMPLATE_DIR, 'backend/settings', "wishlist_option" ) );
19
+		require_once(wpshop_tools::get_template_part(WPS_WISHLIST_DIR, WPS_WISHLIST_TEMPLATE_DIR, 'backend/settings', "wishlist_option"));
20 20
 	}
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 
3 5
 class wps_wishlist_settings {
4 6
 	public static function get_option() {
Please login to merge, or discard this patch.
modules/wps_wishlist/templates/backend/settings/wishlist_option.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3
-<input type="checkbox" id="wpshop_catalog_product_option_wishlist" name="wpshop_catalog_product_option[wps_wishlist_display]" <?php echo ( !empty($wps_wishlist_display) ) ? 'checked="checked"' : ''; ?> />
3
+<input type="checkbox" id="wpshop_catalog_product_option_wishlist" name="wpshop_catalog_product_option[wps_wishlist_display]" <?php echo (!empty($wps_wishlist_display)) ? 'checked="checked"' : ''; ?> />
4 4
 <a class="wpshop_infobulle_marker" title="<?php echo __('Activate the possibility to have a wishlist', 'wps_wishlist_i18n'); ?>" href="#">?</a>
5 5
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 ?>
3 5
 <input type="checkbox" id="wpshop_catalog_product_option_wishlist" name="wpshop_catalog_product_option[wps_wishlist_display]" <?php echo ( !empty($wps_wishlist_display) ) ? 'checked="checked"' : ''; ?> />
4 6
 <a class="wpshop_infobulle_marker" title="<?php echo __('Activate the possibility to have a wishlist', 'wps_wishlist_i18n'); ?>" href="#">?</a>
5 7
\ No newline at end of file
Please login to merge, or discard this patch.
includes/modules/wps_address/wps_address.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 /**
3 3
 * Bootstrap file
4 4
 *
@@ -6,20 +6,20 @@  discard block
 block discarded – undo
6 6
 * @version 1.0
7 7
 */
8 8
 
9
-DEFINE( 'WPS_LOCALISATION_VERSION', '1.' );
10
-DEFINE( 'WPS_LOCALISATION_DIR', basename(dirname(__FILE__)));
11
-DEFINE( 'WPS_ADDRESS_DIR', basename(dirname(__FILE__)));
12
-DEFINE( 'WPS_ADDRESS_PATH', dirname( __FILE__ ) );
13
-DEFINE( 'WPS_ADDRESS_URL', str_replace( str_replace( "\\", "/", ABSPATH), site_url() . '/', str_replace( "\\", "/", WPS_ADDRESS_PATH ) ) );
9
+DEFINE('WPS_LOCALISATION_VERSION', '1.');
10
+DEFINE('WPS_LOCALISATION_DIR', basename(dirname(__FILE__)));
11
+DEFINE('WPS_ADDRESS_DIR', basename(dirname(__FILE__)));
12
+DEFINE('WPS_ADDRESS_PATH', dirname(__FILE__));
13
+DEFINE('WPS_ADDRESS_URL', str_replace(str_replace("\\", "/", ABSPATH), site_url() . '/', str_replace("\\", "/", WPS_ADDRESS_PATH)));
14 14
 
15
-DEFINE( 'WPS_LOCALISATION_TEMPLATES_MAIN_DIR', WPS_ADDRESS_PATH . '/templates/' );
15
+DEFINE('WPS_LOCALISATION_TEMPLATES_MAIN_DIR', WPS_ADDRESS_PATH . '/templates/');
16 16
 
17 17
 /**	Load plugin translation	*/
18
-load_plugin_textdomain( 'wpeo_geoloc', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
18
+load_plugin_textdomain('wpeo_geoloc', false, dirname(plugin_basename(__FILE__)) . '/languages/');
19 19
 
20 20
 /**	Load wps address controller	*/
21
-require_once( WPS_ADDRESS_PATH . '/controller/wps_address_ctr.php' );
22
-require_once( WPS_ADDRESS_PATH . '/controller/wps_address_admin_ctr.php' );
21
+require_once(WPS_ADDRESS_PATH . '/controller/wps_address_ctr.php');
22
+require_once(WPS_ADDRESS_PATH . '/controller/wps_address_admin_ctr.php');
23 23
 
24 24
 // Models
25 25
 //require_once( WPS_ADDRESS_PATH . '/controller/wps_address_ctr.01.php' );
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if ( !defined( 'ABSPATH' ) ) {
2
+	exit;
3
+}
2 4
 /**
3 5
 * Bootstrap file
4 6
 *
Please login to merge, or discard this patch.