Completed
Push — master ( 409d21...32c778 )
by
unknown
12:55
created
includes/modules/wps_shipping/templates/backend/shipping-mode.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
 ?>
3 5
 <div class="wps-table-content wps-table-row wps_shipping_mode_container">
4 6
 		<div class="wps-table-cell wps-cart-item-img">
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3 3
 <div class="wps-table-content wps-table-row wps_shipping_mode_container">
4 4
 		<div class="wps-table-cell wps-cart-item-img">
5 5
 			<div id="wps_shipping_mode_logo_container_<?php echo $k; ?>">
6
-				<?php echo ( !empty($shipping_mode['logo']) ? ( (strstr($shipping_mode['logo'], 'http://') === FALSE ) ? wp_get_attachment_image( $shipping_mode['logo'], 'thumbnail') : '<img src="' .$shipping_mode['logo']. '" alt="" />' ) : '' ); ?>
6
+				<?php echo (!empty($shipping_mode['logo']) ? ((strstr($shipping_mode['logo'], 'http://') === FALSE) ? wp_get_attachment_image($shipping_mode['logo'], 'thumbnail') : '<img src="' . $shipping_mode['logo'] . '" alt="" />') : ''); ?>
7 7
 			</div>
8 8
 		</div>
9 9
 		<div class="wps-table-cell">
10
-			<a class="wps-bton-first-mini-rounded add_logo_to_shipping_mode" id="add_logo_to_shipping_mode_<?php echo $k; ?>" href="#"><?php _e( 'Add a logo', 'wpshop'); ?></a>
11
-			<input type="hidden" name="wps_shipping_mode[modes][<?php echo $k; ?>][logo]"  id="wps_shipping_mode_logo_<?php echo $k; ?>" value="<?php echo ( !empty($shipping_mode['logo']) ) ? $shipping_mode['logo'] : ''; ?>" />
10
+			<a class="wps-bton-first-mini-rounded add_logo_to_shipping_mode" id="add_logo_to_shipping_mode_<?php echo $k; ?>" href="#"><?php _e('Add a logo', 'wpshop'); ?></a>
11
+			<input type="hidden" name="wps_shipping_mode[modes][<?php echo $k; ?>][logo]"  id="wps_shipping_mode_logo_<?php echo $k; ?>" value="<?php echo (!empty($shipping_mode['logo'])) ? $shipping_mode['logo'] : ''; ?>" />
12 12
 		</div>
13 13
 		<div class="wps-table-cell">
14
-			<input type="text" name="wps_shipping_mode[modes][<?php echo $k; ?>][name]" id="wps_shipping_mode_configuration_<?php echo $k; ?>_name" value="<?php echo ( !empty($shipping_mode['name']) ) ? $shipping_mode['name'] : ''; ?>" />
14
+			<input type="text" name="wps_shipping_mode[modes][<?php echo $k; ?>][name]" id="wps_shipping_mode_configuration_<?php echo $k; ?>_name" value="<?php echo (!empty($shipping_mode['name'])) ? $shipping_mode['name'] : ''; ?>" />
15 15
 		</div>
16
-		<div class="wps-table-cell"><a href="#TB_inline?width=780&amp;height=700&amp;inlineId=<?php echo $k; ?>_shipping_configuration_interface" class="thickbox wps-bton-first-mini-rounded" title="<?php _e('Configure the shipping mode', 'wpshop'); ?>" ><?php _e( 'Configure', 'wpshop'); ?></a></div>
17
-		<div class="wps-table-cell"><input type="checkbox" id="wps_shipping_mode_<?php echo $k; ?>" class="wps_shipping_mode_active" name="wps_shipping_mode[modes][<?php echo $k; ?>][active]" <?php echo ( (!empty($shipping_mode) && !empty($shipping_mode['active']) ) ? 'checked="checked"' : '' ); ?> /></div>
18
-		<?php $shipping_mode_option = get_option( 'wps_shipping_mode' ); ?>
19
-		<div class="wps-table-cell"><input type="radio" id="wps_shipping_mode_<?php echo $k; ?>_radio_default" name="wps_shipping_mode[default_choice]" value="<?php echo $k; ?>" <?php echo ( !empty( $shipping_mode_option['default_choice'] ) && $shipping_mode_option['default_choice'] == $k ) ? 'checked="checked"' : ''; echo ( (!empty($shipping_mode) && !empty($shipping_mode['active']) ) ? '' : 'disabled="disabled"' ); ?> /></div>
20
-		<div class="wps-table-cell"><?php if( !is_bool( strpos( $k, 'wps_custom_shipping_mode_' ) ) ) : ?>
21
-			<a href="" class="wps_delete_shipping_mode" data-nonce="<?php echo wp_create_nonce( 'wps_delete_shipping_mode' ); ?>"><span class="dashicons dashicons-trash"></span></a>
16
+		<div class="wps-table-cell"><a href="#TB_inline?width=780&amp;height=700&amp;inlineId=<?php echo $k; ?>_shipping_configuration_interface" class="thickbox wps-bton-first-mini-rounded" title="<?php _e('Configure the shipping mode', 'wpshop'); ?>" ><?php _e('Configure', 'wpshop'); ?></a></div>
17
+		<div class="wps-table-cell"><input type="checkbox" id="wps_shipping_mode_<?php echo $k; ?>" class="wps_shipping_mode_active" name="wps_shipping_mode[modes][<?php echo $k; ?>][active]" <?php echo ((!empty($shipping_mode) && !empty($shipping_mode['active'])) ? 'checked="checked"' : ''); ?> /></div>
18
+		<?php $shipping_mode_option = get_option('wps_shipping_mode'); ?>
19
+		<div class="wps-table-cell"><input type="radio" id="wps_shipping_mode_<?php echo $k; ?>_radio_default" name="wps_shipping_mode[default_choice]" value="<?php echo $k; ?>" <?php echo (!empty($shipping_mode_option['default_choice']) && $shipping_mode_option['default_choice'] == $k) ? 'checked="checked"' : ''; echo ((!empty($shipping_mode) && !empty($shipping_mode['active'])) ? '' : 'disabled="disabled"'); ?> /></div>
20
+		<div class="wps-table-cell"><?php if (!is_bool(strpos($k, 'wps_custom_shipping_mode_'))) : ?>
21
+			<a href="" class="wps_delete_shipping_mode" data-nonce="<?php echo wp_create_nonce('wps_delete_shipping_mode'); ?>"><span class="dashicons dashicons-trash"></span></a>
22 22
 		<?php endif; ?></div>
23 23
 		<!-- Configuration interface -->
24 24
 		<div id="<?php echo $k; ?>_shipping_configuration_interface" style="display : none">
25 25
 			<?php
26 26
 			$wps_shipping_mode_ctr = new wps_shipping_mode_ctr();
27
-			echo $wps_shipping_mode_ctr->generate_shipping_mode_interface( $k, $shipping_mode ); ?>
27
+			echo $wps_shipping_mode_ctr->generate_shipping_mode_interface($k, $shipping_mode); ?>
28 28
 		</div>
29 29
 </div>
Please login to merge, or discard this patch.
includes/modules/wps-modal/templates/frontend/modal.php 2 patches
Spacing   +1 added lines, -1 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 3
 <div class="wps-modal-overlay"></div>
4 4
 <div class="wps-modal-wrapper">	
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-modal-overlay"></div>
4 6
 <div class="wps-modal-wrapper">	
Please login to merge, or discard this patch.
includes/modules/wps-modal/wps-modal.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 
15 15
 	class wps_modal {
16 16
 		/** Define the main directory containing the template for the current plugin
17
-		* @var string
18
-		*/
17
+		 * @var string
18
+		 */
19 19
 		private $template_dir;
20 20
 		/**
21 21
 		 * Define the directory name for the module in order to check into frontend
Please login to merge, or discard this patch.
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
 /**
4 4
  * Bootstrap file
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @version 1.0
7 7
  */
8 8
 
9
-if ( !class_exists('wps_modal') ) {
9
+if (!class_exists('wps_modal')) {
10 10
 	/** Template Global vars **/
11 11
 	DEFINE('WPS_MODAL_DIR', basename(dirname(__FILE__)));
12
-	DEFINE('WPS_MODAL_PATH', str_replace( "\\", "/", str_replace( WPS_MODAL_DIR, "", dirname( __FILE__ ) ) ) );
13
-	DEFINE('WPS_MODAL_URL', str_replace( str_replace( "\\", "/", ABSPATH), site_url() . '/', WPS_MODAL_PATH ) );
12
+	DEFINE('WPS_MODAL_PATH', str_replace("\\", "/", str_replace(WPS_MODAL_DIR, "", dirname(__FILE__))));
13
+	DEFINE('WPS_MODAL_URL', str_replace(str_replace("\\", "/", ABSPATH), site_url() . '/', WPS_MODAL_PATH));
14 14
 
15 15
 	class wps_modal {
16 16
 		/** Define the main directory containing the template for the current plugin
@@ -26,19 +26,19 @@  discard block
 block discarded – undo
26 26
 		function __construct() {
27 27
 			/** Template Load **/
28 28
 			$this->template_dir = WPS_MODAL_PATH . WPS_MODAL_DIR . "/templates/";
29
-			add_action('wp_enqueue_scripts', array( $this, 'add_scripts') );
30
-			add_action( 'wp_footer', array( $this, 'display_modal') );
29
+			add_action('wp_enqueue_scripts', array($this, 'add_scripts'));
30
+			add_action('wp_footer', array($this, 'display_modal'));
31 31
 		}
32 32
 
33 33
 		function add_scripts() {
34
-			wp_enqueue_script( 'jquery' );
35
-			wp_enqueue_script( 'wps_modal_script', plugins_url( 'assets/js/wps_modal.js' , __FILE__ ) );
34
+			wp_enqueue_script('jquery');
35
+			wp_enqueue_script('wps_modal_script', plugins_url('assets/js/wps_modal.js', __FILE__));
36 36
 		}
37 37
 
38 38
 		function display_modal() {
39 39
 			$output = '';
40 40
 			ob_start();
41
-			require_once( wpshop_tools::get_template_part( WPS_MODAL_DIR, $this->template_dir, "frontend", "modal") );
41
+			require_once(wpshop_tools::get_template_part(WPS_MODAL_DIR, $this->template_dir, "frontend", "modal"));
42 42
 			$output = ob_get_contents();
43 43
 			ob_end_clean();
44 44
 			echo $output;
@@ -46,6 +46,6 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 }
49
-if ( class_exists('wps_modal') ) {
49
+if (class_exists('wps_modal')) {
50 50
 	$wps_modal = new wps_modal();
51 51
 }
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
 /**
4 6
  * Bootstrap file
Please login to merge, or discard this patch.
includes/modules/wps_dashboard/config/config.php 2 patches
Spacing   +6 added lines, -6 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
  * Main plugin configuration file
4 4
  *
@@ -9,16 +9,16 @@  discard block
 block discarded – undo
9 9
  */
10 10
 
11 11
 /** Check if the plugin version is defined. If not defined script will be stopped here	*/
12
-if ( !defined( 'WPS_DASHBOARD_VERSION' ) ) {
13
-	die( __("You are not allowed to use this service.", 'wps_installer') );
12
+if (!defined('WPS_DASHBOARD_VERSION')) {
13
+	die(__("You are not allowed to use this service.", 'wps_installer'));
14 14
 }
15 15
 
16 16
 /** Define librairies directory */
17
-DEFINE( 'WPSDASHBOARD_LIBS_DIR', plugin_dir_path( __FILE__ ) . '/' . WPS_DASHBOARD_DIR . '/');
17
+DEFINE('WPSDASHBOARD_LIBS_DIR', plugin_dir_path(__FILE__) . '/' . WPS_DASHBOARD_DIR . '/');
18 18
 
19 19
 /** Define template directory */
20
-DEFINE( 'WPSDASHBOARD_TPL_DIR', WPS_DASHBOARD_PATH . WPS_DASHBOARD_DIR . '/templates/');
21
-DEFINE( 'WPSDASHBOARD_TPL_URL', WPS_DASHBOARD_URL . WPS_DASHBOARD_DIR . '/templates/');
20
+DEFINE('WPSDASHBOARD_TPL_DIR', WPS_DASHBOARD_PATH . WPS_DASHBOARD_DIR . '/templates/');
21
+DEFINE('WPSDASHBOARD_TPL_URL', WPS_DASHBOARD_URL . WPS_DASHBOARD_DIR . '/templates/');
22 22
 
23 23
 
24 24
 ?>
25 25
\ 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
  * Main plugin configuration file
4 6
  *
Please login to merge, or discard this patch.
includes/modules/wps_dashboard/controller/wps_dashboard_ctr.php 2 patches
Braces   +7 added lines, -9 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
  * File for installer control class definition
4 6
  *
@@ -70,15 +72,13 @@  discard block
 block discarded – undo
70 72
 		if( ! is_wp_error( $rss ) ){
71 73
 			$maxitems = $rss->get_item_quantity( 4 );
72 74
 			$rss_items = $rss->get_items( 0, $maxitems );
73
-		}
74
-		else {
75
+		} else {
75 76
 			$output .= '<p>' . __('WPShop News cannot be loaded', 'wpshop') . '</p>';
76 77
 		}
77 78
 
78 79
 		if ( $maxitems == 0 ) {
79 80
 			$output .= '<p>' . __('No WPShop new has been found', 'wpshop') . '</p>';
80
-		}
81
-		else {
81
+		} else {
82 82
 			$output .= '<ul class="recent-orders">';
83 83
 			foreach ( $rss_items as $item ) {
84 84
 				$output .= '<li><a href="' .$item->get_permalink() . '" title="' .$item->get_title(). '" target="_blank">' .$item->get_title(). '</a><br/>';
@@ -108,12 +108,10 @@  discard block
 block discarded – undo
108 108
 				require_once( wpshop_tools::get_template_part( WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, "backend", "dashboard", "videos" ) );
109 109
 				$output = ob_get_contents();
110 110
 				ob_end_clean();
111
-			}
112
-			else {
111
+			} else {
113 112
 				$output = __('No tutorial videos can be loaded', 'wpshop' );
114 113
 			}
115
-		}
116
-		else {
114
+		} else {
117 115
 			$output = __( 'Your servor doesn\'t allow to open external files', 'wpshop');
118 116
 		}
119 117
 
Please login to merge, or discard this patch.
Spacing   +42 added lines, -42 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
  * File for installer control class definition
4 4
  *
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 	}
25 25
 
26 26
 	function add_scripts() {
27
-		add_action( 'admin_print_scripts', array($this, 'admin_print_script') );
27
+		add_action('admin_print_scripts', array($this, 'admin_print_script'));
28 28
 	}
29 29
 
30 30
 	function admin_print_script() {
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
 		global $order_status, $wpdb;
46 46
 
47 47
 		$this->add_dashboard_metaboxes();
48
-		require_once( wpshop_tools::get_template_part( WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, "backend", "dashboard" ) );
48
+		require_once(wpshop_tools::get_template_part(WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, "backend", "dashboard"));
49 49
 	}
50 50
 
51 51
 	function wpshop_dashboard_orders() {
52 52
 		$output = '';
53
-		$orders = get_posts( array( 'posts_per_page' => 10, 'post_type' => WPSHOP_NEWTYPE_IDENTIFIER_ORDER, 'post_status' => 'publish', 'orderby' => 'post_date', 'order' => 'DESC') );
53
+		$orders = get_posts(array('posts_per_page' => 10, 'post_type' => WPSHOP_NEWTYPE_IDENTIFIER_ORDER, 'post_status' => 'publish', 'orderby' => 'post_date', 'order' => 'DESC'));
54 54
 		// Display orders
55 55
 		ob_start();
56
-		require_once( wpshop_tools::get_template_part( WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, "backend", "wps_orders_on_dashboard" ) );
56
+		require_once(wpshop_tools::get_template_part(WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, "backend", "wps_orders_on_dashboard"));
57 57
 		$output = ob_get_contents();
58 58
 		ob_end_clean();
59 59
 
@@ -63,24 +63,24 @@  discard block
 block discarded – undo
63 63
 
64 64
 	function wpshop_rss_feed() {
65 65
 		$output = '';
66
-		include_once( ABSPATH . WPINC . '/feed.php' );
66
+		include_once(ABSPATH . WPINC . '/feed.php');
67 67
 
68
-		$rss = fetch_feed( 'http://www.wpshop.fr/feed/' );
69
-		if( ! is_wp_error( $rss ) ){
70
-			$maxitems = $rss->get_item_quantity( 4 );
71
-			$rss_items = $rss->get_items( 0, $maxitems );
68
+		$rss = fetch_feed('http://www.wpshop.fr/feed/');
69
+		if (!is_wp_error($rss)) {
70
+			$maxitems = $rss->get_item_quantity(4);
71
+			$rss_items = $rss->get_items(0, $maxitems);
72 72
 		}
73 73
 		else {
74 74
 			$output .= '<p>' . __('WPShop News cannot be loaded', 'wpshop') . '</p>';
75 75
 		}
76 76
 
77
-		if ( $maxitems == 0 ) {
77
+		if ($maxitems == 0) {
78 78
 			$output .= '<p>' . __('No WPShop new has been found', 'wpshop') . '</p>';
79 79
 		}
80 80
 		else {
81 81
 			$output .= '<ul class="recent-orders">';
82
-			foreach ( $rss_items as $item ) {
83
-				$output .= '<li><a href="' .$item->get_permalink() . '" title="' .$item->get_title(). '" target="_blank">' .$item->get_title(). '</a><br/>';
82
+			foreach ($rss_items as $item) {
83
+				$output .= '<li><a href="' . $item->get_permalink() . '" title="' . $item->get_title() . '" target="_blank">' . $item->get_title() . '</a><br/>';
84 84
 				$output .= $item->get_content();
85 85
 				$output .= '</li>';
86 86
 			}
@@ -90,40 +90,40 @@  discard block
 block discarded – undo
90 90
 	}
91 91
 
92 92
 	function wpshop_rss_tutorial_videos() {
93
-		$ini_get_checking = ini_get( 'allow_url_fopen' );
93
+		$ini_get_checking = ini_get('allow_url_fopen');
94 94
 
95
-		if ( $ini_get_checking != 0 ) {
96
-			$content = @file_get_contents( 'http://www.wpshop.fr/rss_video.xml' );
97
-			$videos_rss = ( $content !== false ) ? new SimpleXmlElement( $content ) : null;
98
-			if ( !empty($videos_rss) && !empty($videos_rss->channel) ) {
95
+		if ($ini_get_checking != 0) {
96
+			$content = @file_get_contents('http://www.wpshop.fr/rss_video.xml');
97
+			$videos_rss = ($content !== false) ? new SimpleXmlElement($content) : null;
98
+			if (!empty($videos_rss) && !empty($videos_rss->channel)) {
99 99
 				$videos_items = array();
100
-				foreach( $videos_rss->channel->item as $i => $item ) {
100
+				foreach ($videos_rss->channel->item as $i => $item) {
101 101
 					$videos_items[] = $item;
102 102
 				}
103
-				$rand_element = array_rand( $videos_items );
103
+				$rand_element = array_rand($videos_items);
104 104
 
105 105
 				ob_start();
106
-				require_once( wpshop_tools::get_template_part( WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, "backend", "dashboard", "videos" ) );
106
+				require_once(wpshop_tools::get_template_part(WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, "backend", "dashboard", "videos"));
107 107
 				$output = ob_get_contents();
108 108
 				ob_end_clean();
109 109
 			}
110 110
 			else {
111
-				$output = __('No tutorial videos can be loaded', 'wpshop' );
111
+				$output = __('No tutorial videos can be loaded', 'wpshop');
112 112
 			}
113 113
 		}
114 114
 		else {
115
-			$output = __( 'Your servor doesn\'t allow to open external files', 'wpshop');
115
+			$output = __('Your servor doesn\'t allow to open external files', 'wpshop');
116 116
 		}
117 117
 
118 118
 		echo $output;
119 119
 	}
120 120
 
121 121
 	function wpshop_dashboard_get_changelog() {
122
-		$readme_file = fopen( WPSHOP_DIR.'/readme.txt', 'r' );
123
-		if ( $readme_file ) {
124
-			$txt = file_get_contents( WPSHOP_DIR.'/readme.txt' );
125
-			$pre_change_log = explode( '== Changelog ==', $txt );
126
-			$versions = explode( '= Version', $pre_change_log[1] );
122
+		$readme_file = fopen(WPSHOP_DIR . '/readme.txt', 'r');
123
+		if ($readme_file) {
124
+			$txt = file_get_contents(WPSHOP_DIR . '/readme.txt');
125
+			$pre_change_log = explode('== Changelog ==', $txt);
126
+			$versions = explode('= Version', $pre_change_log[1]);
127 127
 
128 128
 			echo $versions[1];
129 129
 		}
@@ -133,16 +133,16 @@  discard block
 block discarded – undo
133 133
 	 * Add custom metaboxes to WPShop dashboard
134 134
 	 */
135 135
 	function add_dashboard_metaboxes() {
136
-		add_meta_box( 'wps-right-now', '<i class="dashicons dashicons-info"></i>' . esc_html( 'Right Now', 'wpshop' ), array( $this, 'wps_dashboard_right_now' ), 'wpshop_dashboard', 'left_column' );
137
-		add_meta_box( 'wps-dashboard-quick-links', '<i class="dashicons dashicons-performance"></i>' . esc_html( 'Quick Links', 'wpshop' ), array( $this, 'wps_dashboard_quick_links' ), 'wpshop_dashboard', 'left_column' );
136
+		add_meta_box('wps-right-now', '<i class="dashicons dashicons-info"></i>' . esc_html('Right Now', 'wpshop'), array($this, 'wps_dashboard_right_now'), 'wpshop_dashboard', 'left_column');
137
+		add_meta_box('wps-dashboard-quick-links', '<i class="dashicons dashicons-performance"></i>' . esc_html('Quick Links', 'wpshop'), array($this, 'wps_dashboard_quick_links'), 'wpshop_dashboard', 'left_column');
138 138
 		// add_meta_box( 'wps-dashboard-customer-stats', '<i class="dashicons dashicons-chart-pie"></i>' . esc_html( 'Customers stats', 'wpshop' ), array( $this, 'wps_dashboard_customer_stats' ), 'wpshop_dashboard', 'left_column' );
139
-		add_meta_box( 'wps-dashboard-export', '<i class="dashicons dashicons-download"></i>' . esc_html( 'CSV export', 'wpshop' ), array( $this, 'wps_dashboard_export' ), 'wpshop_dashboard', 'left_column' );
140
-		add_meta_box( 'wps-dashboard-orders', '<i class="dashicons dashicons-cart"></i>' . esc_html( 'Recent Orders', 'wpshop' ), array( $this, 'wps_dashboard_orders' ), 'wpshop_dashboard', 'left_column' );
139
+		add_meta_box('wps-dashboard-export', '<i class="dashicons dashicons-download"></i>' . esc_html('CSV export', 'wpshop'), array($this, 'wps_dashboard_export'), 'wpshop_dashboard', 'left_column');
140
+		add_meta_box('wps-dashboard-orders', '<i class="dashicons dashicons-cart"></i>' . esc_html('Recent Orders', 'wpshop'), array($this, 'wps_dashboard_orders'), 'wpshop_dashboard', 'left_column');
141 141
 
142
-		add_meta_box( 'wps-dashboard-statistics', '<i class="dashicons dashicons-chart-area"></i>' . esc_html( 'Statistics', 'wpshop' ), array( $this, 'wps_dashboard_statistics' ), 'wpshop_dashboard', 'right_column' );
142
+		add_meta_box('wps-dashboard-statistics', '<i class="dashicons dashicons-chart-area"></i>' . esc_html('Statistics', 'wpshop'), array($this, 'wps_dashboard_statistics'), 'wpshop_dashboard', 'right_column');
143 143
 
144
-		add_meta_box( 'wps-dashboard-infos', '<i class="dashicons dashicons-heart"></i>' . esc_html( 'WPShop : WordPress e-commerce', 'wpshop' ), array( $this, 'wps_dashboard_infos' ), 'wpshop_dashboard', 'right_column' );
145
-		add_meta_box( 'wps-dashboard-feed', '<i class="dashicons dashicons-format-status"></i>' . esc_html( 'WPShop News', 'wpshop' ), array( $this, 'wps_dashboard_feed' ), 'wpshop_dashboard', 'right_column' );
144
+		add_meta_box('wps-dashboard-infos', '<i class="dashicons dashicons-heart"></i>' . esc_html('WPShop : WordPress e-commerce', 'wpshop'), array($this, 'wps_dashboard_infos'), 'wpshop_dashboard', 'right_column');
145
+		add_meta_box('wps-dashboard-feed', '<i class="dashicons dashicons-format-status"></i>' . esc_html('WPShop News', 'wpshop'), array($this, 'wps_dashboard_feed'), 'wpshop_dashboard', 'right_column');
146 146
 	}
147 147
 
148 148
 	/**
@@ -150,14 +150,14 @@  discard block
 block discarded – undo
150 150
 	 */
151 151
 	function wps_dashboard_right_now() {
152 152
 		global $wpdb;
153
-		require_once( wpshop_tools::get_template_part( WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'right_now' ) );
153
+		require_once(wpshop_tools::get_template_part(WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'right_now'));
154 154
 	}
155 155
 
156 156
 	/**
157 157
 	 * Display metabox with quick links
158 158
 	 */
159 159
 	function wps_dashboard_quick_links() {
160
-		require_once( wpshop_tools::get_template_part( WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'quicklinks' ) );
160
+		require_once(wpshop_tools::get_template_part(WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'quicklinks'));
161 161
 	}
162 162
 
163 163
 	/**
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	function wps_dashboard_statistics() {
174 174
 		global $wpdb;
175 175
 
176
-		require_once( wpshop_tools::get_template_part( WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'statistics' ) );
176
+		require_once(wpshop_tools::get_template_part(WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'statistics'));
177 177
 	}
178 178
 
179 179
 	/**
@@ -181,28 +181,28 @@  discard block
 block discarded – undo
181 181
 	 */
182 182
 	function wps_dashboard_infos() {
183 183
 		global $wpdb;
184
-		require_once( wpshop_tools::get_template_part( WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'infos' ) );
184
+		require_once(wpshop_tools::get_template_part(WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'infos'));
185 185
 	}
186 186
 
187 187
 	/**
188 188
 	 * Display metabox with shop main statistics
189 189
 	 */
190 190
 	function wps_dashboard_feed() {
191
-		require_once( wpshop_tools::get_template_part( WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'feed' ) );
191
+		require_once(wpshop_tools::get_template_part(WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'feed'));
192 192
 	}
193 193
 
194 194
 	/**
195 195
 	 * Display metabox with recent orders list
196 196
 	 */
197 197
 	function wps_dashboard_orders() {
198
-		require_once( wpshop_tools::get_template_part( WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'orders' ) );
198
+		require_once(wpshop_tools::get_template_part(WPS_DASHBOARD_DIR, WPSDASHBOARD_TPL_DIR, 'backend', 'metabox', 'orders'));
199 199
 	}
200 200
 
201 201
 	/**
202 202
 	 * Display metabox for export
203 203
 	 */
204 204
 	function wps_dashboard_export() {
205
-		if ( class_exists( 'wps_export_ctr' ) ) {
205
+		if (class_exists('wps_export_ctr')) {
206 206
 			$wps_export = new wps_export_ctr();
207 207
 			$wps_export->wps_export_tpl();
208 208
 		}
Please login to merge, or discard this patch.
modules/wps_dashboard/templates/backend/wps_orders_on_dashboard.php 2 patches
Braces   +8 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
 if($orders) : 
3 5
 	$payment_status = unserialize( WPSHOP_ORDER_STATUS );
4 6
 ?>
@@ -48,6 +50,9 @@  discard block
 block discarded – undo
48 50
 		<?php endif; ?>
49 51
 	<?php endforeach; ?>
50 52
 </div>
51
-<?php else : ?>
52
-<div class="wps-alert-info"><?php _e( 'No orders has been created on your shop', 'wpshop'); ?></div>
53
+<?php else {
54
+	: ?>
55
+<div class="wps-alert-info"><?php _e( 'No orders has been created on your shop', 'wpshop');
56
+}
57
+?></div>
53 58
 <?php endif; ?>
54 59
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -1,46 +1,46 @@  discard block
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
2
-if($orders) : 
3
-	$payment_status = unserialize( WPSHOP_ORDER_STATUS );
1
+<?php if (!defined('ABSPATH')) exit;
2
+if ($orders) : 
3
+	$payment_status = unserialize(WPSHOP_ORDER_STATUS);
4 4
 ?>
5 5
 <div class="wps-table">
6 6
 	<div class="wps-table-header wps-table-row">
7
-		<div class="wps-table-cell"><?php _e( 'Date', 'wpshop'); ?></div>
8
-		<div class="wps-table-cell"><?php _e( 'Customer', 'wpshop'); ?></div>
9
-		<div class="wps-table-cell"><?php _e( 'Total', 'wpshop'); ?></div>
10
-		<div class="wps-table-cell"><?php _e( 'Status', 'wpshop'); ?></div>
11
-		<div class="wps-table-cell"><?php _e( 'Details', 'wpshop'); ?></div>
12
-		<div class="wps-table-cell"><?php _e( 'Invoice', 'wpshop'); ?></div>
13
-		<div class="wps-table-cell"><?php _e( 'Shipping Slip', 'wpshop'); ?></div>
7
+		<div class="wps-table-cell"><?php _e('Date', 'wpshop'); ?></div>
8
+		<div class="wps-table-cell"><?php _e('Customer', 'wpshop'); ?></div>
9
+		<div class="wps-table-cell"><?php _e('Total', 'wpshop'); ?></div>
10
+		<div class="wps-table-cell"><?php _e('Status', 'wpshop'); ?></div>
11
+		<div class="wps-table-cell"><?php _e('Details', 'wpshop'); ?></div>
12
+		<div class="wps-table-cell"><?php _e('Invoice', 'wpshop'); ?></div>
13
+		<div class="wps-table-cell"><?php _e('Shipping Slip', 'wpshop'); ?></div>
14 14
 	</div>
15
-	<?php foreach( $orders as $order ) : 
16
-		$order_meta = get_post_meta( $order->ID, '_order_postmeta', true );
17
-		$order_info = get_post_meta( $order->ID, '_order_info', true );
18
-		if ( !empty($order_meta) ) :
15
+	<?php foreach ($orders as $order) : 
16
+		$order_meta = get_post_meta($order->ID, '_order_postmeta', true);
17
+		$order_info = get_post_meta($order->ID, '_order_info', true);
18
+		if (!empty($order_meta)) :
19 19
 	?>
20 20
 			<div class="wps-table-content wps-table-row">
21
-				<div class="wps-table-cell"><?php echo ( !empty($order_meta['order_date']) ) ? mysql2date('d F Y', $order_meta['order_date'], true) : ''; ?></div>
22
-				<div class="wps-table-cell"><?php echo ( !empty($order_info) && !empty($order_info['billing']) && !empty($order_info['billing']['address']) && !empty($order_info['billing']['address']['address_last_name']) && !empty($order_info['billing']['address']['address_first_name']) ) ? $order_info['billing']['address']['address_first_name'].' '.$order_info['billing']['address']['address_last_name'] : ''; ?></div>
23
-				<div class="wps-table-cell"><?php echo ( !empty($order_meta['order_grand_total']) ) ? number_format( $order_meta['order_grand_total'], 2, '.', '' ).' '.wpshop_tools::wpshop_get_currency( false ) : ''; ?></div>
24
-				<div class="wps-table-cell wps_dashboard_<?php echo $order_meta['order_status']; ?>"><?php _e($payment_status[ $order_meta['order_status'] ], 'wpshop' ) ?></div>
25
-				<div class="wps-table-cell"><a href="<?php echo admin_url('/post.php?post=' .$order->ID. '&action=edit'); ?>" role="button" class="wps-bton-first-mini-rounded"><?php _e( 'See', 'wpshop' ); ?></a></div>
21
+				<div class="wps-table-cell"><?php echo (!empty($order_meta['order_date'])) ? mysql2date('d F Y', $order_meta['order_date'], true) : ''; ?></div>
22
+				<div class="wps-table-cell"><?php echo (!empty($order_info) && !empty($order_info['billing']) && !empty($order_info['billing']['address']) && !empty($order_info['billing']['address']['address_last_name']) && !empty($order_info['billing']['address']['address_first_name'])) ? $order_info['billing']['address']['address_first_name'] . ' ' . $order_info['billing']['address']['address_last_name'] : ''; ?></div>
23
+				<div class="wps-table-cell"><?php echo (!empty($order_meta['order_grand_total'])) ? number_format($order_meta['order_grand_total'], 2, '.', '') . ' ' . wpshop_tools::wpshop_get_currency(false) : ''; ?></div>
24
+				<div class="wps-table-cell wps_dashboard_<?php echo $order_meta['order_status']; ?>"><?php _e($payment_status[$order_meta['order_status']], 'wpshop') ?></div>
25
+				<div class="wps-table-cell"><a href="<?php echo admin_url('/post.php?post=' . $order->ID . '&action=edit'); ?>" role="button" class="wps-bton-first-mini-rounded"><?php _e('See', 'wpshop'); ?></a></div>
26 26
 				<div class="wps-table-cell">
27 27
 					<?php 
28 28
 					$invoice_ref = '';
29
-					if ( !empty($order_meta['order_invoice_ref']) ) {
29
+					if (!empty($order_meta['order_invoice_ref'])) {
30 30
 						$invoice_ref = $order_meta['order_invoice_ref'];
31 31
 					}
32
-					if ( !empty($invoice_ref) ) {
33
-						if( !empty($order_meta) && !empty($order_meta['order_payment']) && !empty($order_meta['order_payment']['received']) ) {
34
-							$invoice_ref = $order_meta['order_payment']['received'][ count($order_meta['order_payment']['received']) - 1 ]['invoice_ref'];
32
+					if (!empty($invoice_ref)) {
33
+						if (!empty($order_meta) && !empty($order_meta['order_payment']) && !empty($order_meta['order_payment']['received'])) {
34
+							$invoice_ref = $order_meta['order_payment']['received'][count($order_meta['order_payment']['received']) - 1]['invoice_ref'];
35 35
 						}
36 36
 					}
37
-					if ( ( $order_meta['order_status'] == 'partially_paid' || $order_meta['order_status'] == 'completed' || $order_meta['order_status'] == 'shipped' ) && !empty($invoice_ref) ) : ?>
38
-						<a href="<?php echo admin_url( 'admin-post.php?action=wps_invoice&order_id='.$order->ID.'&mode=pdf' ); ?>" role="button" class="wps-bton-second-mini-rounded"><?php _e( 'Download', 'wpshop' ); ?></a>
37
+					if (($order_meta['order_status'] == 'partially_paid' || $order_meta['order_status'] == 'completed' || $order_meta['order_status'] == 'shipped') && !empty($invoice_ref)) : ?>
38
+						<a href="<?php echo admin_url('admin-post.php?action=wps_invoice&order_id=' . $order->ID . '&mode=pdf'); ?>" role="button" class="wps-bton-second-mini-rounded"><?php _e('Download', 'wpshop'); ?></a>
39 39
 					<?php endif; ?>
40 40
 				</div>
41 41
 				<div class="wps-table-cell">
42
-				<?php if ( $order_meta['order_status'] == 'shipped' ) : ?>
43
-					<a href="<?php echo admin_url( 'admin-post.php?action=wps_invoice&order_id='.$order->ID.'&bon_colisage=ok&mode=pdf'); ?>" role="button" class="wps-bton-third-mini-rounded"><?php _e( 'Download', 'wpshop' ); ?></a>
42
+				<?php if ($order_meta['order_status'] == 'shipped') : ?>
43
+					<a href="<?php echo admin_url('admin-post.php?action=wps_invoice&order_id=' . $order->ID . '&bon_colisage=ok&mode=pdf'); ?>" role="button" class="wps-bton-third-mini-rounded"><?php _e('Download', 'wpshop'); ?></a>
44 44
 				<?php endif; ?>
45 45
 				</div>
46 46
 				
@@ -49,5 +49,5 @@  discard block
 block discarded – undo
49 49
 	<?php endforeach; ?>
50 50
 </div>
51 51
 <?php else : ?>
52
-<div class="wps-alert-info"><?php _e( 'No orders has been created on your shop', 'wpshop'); ?></div>
52
+<div class="wps-alert-info"><?php _e('No orders has been created on your shop', 'wpshop'); ?></div>
53 53
 <?php endif; ?>
54 54
\ No newline at end of file
Please login to merge, or discard this patch.
includes/modules/wps_dashboard/templates/backend/dashboard-videos.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1
-<?php if ( !defined( 'ABSPATH' ) ) exit;
1
+<?php if (!defined('ABSPATH')) exit;
2 2
 ?>
3 3
 <div>
4
-	<div class="wps-h6"><?php echo $videos_items[ $rand_element ]->title; ?></div>
5
-	<div><center><iframe width="400" height="290" src="<?php echo $videos_items[ $rand_element ]->embed_link; ?>" frameborder="0" allowfullscreen></iframe></center></div>
6
-	<div><?php echo $videos_items[ $rand_element ]->description; ?></div>
4
+	<div class="wps-h6"><?php echo $videos_items[$rand_element]->title; ?></div>
5
+	<div><center><iframe width="400" height="290" src="<?php echo $videos_items[$rand_element]->embed_link; ?>" frameborder="0" allowfullscreen></iframe></center></div>
6
+	<div><?php echo $videos_items[$rand_element]->description; ?></div>
7 7
 </div>
8 8
\ 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>
4 6
 	<div class="wps-h6"><?php echo $videos_items[ $rand_element ]->title; ?></div>
Please login to merge, or discard this patch.
includes/modules/wps_dashboard/wps_dashboard.php 2 patches
Spacing   +6 added lines, -6 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
  * Module bootstrap file
4 4
  * @author Development team <[email protected]>
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
 
14 14
 /** Template Global vars **/
15 15
 DEFINE('WPS_DASHBOARD_DIR', basename(dirname(__FILE__)));
16
-DEFINE('WPS_DASHBOARD_PATH_TO_MODULE', str_replace( str_replace( "\\", "/", WP_PLUGIN_DIR ), "", str_replace( "\\", "/", plugin_dir_path( __FILE__ ) ) ) );
17
-DEFINE('WPS_DASHBOARD_PATH', str_replace( "\\", "/", str_replace( WPS_DASHBOARD_DIR, "", dirname( __FILE__ ) ) ) );
18
-DEFINE('WPS_DASHBOARD_URL', str_replace( str_replace( "\\", "/", ABSPATH), site_url() . '/', WPS_DASHBOARD_PATH ) );
16
+DEFINE('WPS_DASHBOARD_PATH_TO_MODULE', str_replace(str_replace("\\", "/", WP_PLUGIN_DIR), "", str_replace("\\", "/", plugin_dir_path(__FILE__))));
17
+DEFINE('WPS_DASHBOARD_PATH', str_replace("\\", "/", str_replace(WPS_DASHBOARD_DIR, "", dirname(__FILE__))));
18
+DEFINE('WPS_DASHBOARD_URL', str_replace(str_replace("\\", "/", ABSPATH), site_url() . '/', WPS_DASHBOARD_PATH));
19 19
 
20
-include( WPS_DASHBOARD_PATH . WPS_DASHBOARD_DIR . '/config/config.php' );
20
+include(WPS_DASHBOARD_PATH . WPS_DASHBOARD_DIR . '/config/config.php');
21 21
 
22
-include( WPS_DASHBOARD_PATH . WPS_DASHBOARD_DIR . '/controller/wps_dashboard_ctr.php' );
22
+include(WPS_DASHBOARD_PATH . WPS_DASHBOARD_DIR . '/controller/wps_dashboard_ctr.php');
23 23
 
24 24
 global $wps_dashboard_ctr;
25 25
 $wps_dashboard_ctr = new wps_dashboard_ctr();
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
  * Module bootstrap file
4 6
  * @author Development team <[email protected]>
Please login to merge, or discard this patch.
includes/modules/wps_installer/wps_installer.php 2 patches
Spacing   +9 added lines, -9 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
  * Module bootstrap file
4 4
  * @author Development team <[email protected]>
@@ -13,17 +13,17 @@  discard block
 block discarded – undo
13 13
 
14 14
 /** Template Global vars **/
15 15
 DEFINE('WPS_INSTALLER_DIR', basename(dirname(__FILE__)));
16
-DEFINE('WPS_INSTALLER_PATH_TO_MODULE', str_replace( str_replace( "\\", "/", WP_PLUGIN_DIR ), "", str_replace( "\\", "/", plugin_dir_path( __FILE__ ) ) ) );
17
-DEFINE('WPS_INSTALLER_PATH', str_replace( "\\", "/", str_replace( WPS_INSTALLER_DIR, "", dirname( __FILE__ ) ) ) );
18
-DEFINE('WPS_INSTALLER_URL', str_replace( str_replace( "\\", "/", ABSPATH), site_url() . '/', WPS_INSTALLER_PATH ) );
16
+DEFINE('WPS_INSTALLER_PATH_TO_MODULE', str_replace(str_replace("\\", "/", WP_PLUGIN_DIR), "", str_replace("\\", "/", plugin_dir_path(__FILE__))));
17
+DEFINE('WPS_INSTALLER_PATH', str_replace("\\", "/", str_replace(WPS_INSTALLER_DIR, "", dirname(__FILE__))));
18
+DEFINE('WPS_INSTALLER_URL', str_replace(str_replace("\\", "/", ABSPATH), site_url() . '/', WPS_INSTALLER_PATH));
19 19
 
20
-load_plugin_textdomain( 'wps_installer', false, dirname(plugin_basename(__FILE__)).'/languages/');
20
+load_plugin_textdomain('wps_installer', false, dirname(plugin_basename(__FILE__)) . '/languages/');
21 21
 
22
-include( WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/config/config.php' );
22
+include(WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/config/config.php');
23 23
 
24
-include( WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/controller/wps_installer_ctr.php' );
25
-include( WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/model/wps_installer_model.php' );
24
+include(WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/controller/wps_installer_ctr.php');
25
+include(WPS_INSTALLER_PATH . WPS_INSTALLER_DIR . '/model/wps_installer_model.php');
26 26
 
27
-$wps_installer_ctr  = new wps_installer_ctr();
27
+$wps_installer_ctr = new wps_installer_ctr();
28 28
 
29 29
 ?>
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
  * Module bootstrap file
4 6
  * @author Development team <[email protected]>
Please login to merge, or discard this patch.