Passed
Push — master ( bdcc6b...fb9755 )
by Warwick
05:41 queued 13s
created
functions.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 if ( ! defined( 'ABSPATH' ) ) {
11
-	exit;
11
+     exit;
12 12
 }
13 13
 
14 14
 define( 'LSX_VERSION', '2.9.4' );
15 15
 
16 16
 if ( in_array( 'wordpress-seo/wp-seo.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || in_array( 'wordpress-seo-premium/wp-seo-premium.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
17
-	require get_template_directory() . '/includes/yoast/class-lsx-yoast.php';
17
+     require get_template_directory() . '/includes/yoast/class-lsx-yoast.php';
18 18
 }
19 19
 
20 20
 if ( class_exists( 'WooCommerce' ) ) {
21
-	require get_template_directory() . '/includes/woocommerce/woocommerce.php';
22
-	require get_template_directory() . '/includes/woocommerce/addons.php';
21
+     require get_template_directory() . '/includes/woocommerce/woocommerce.php';
22
+     require get_template_directory() . '/includes/woocommerce/addons.php';
23 23
 }
24 24
 
25 25
 if ( class_exists( 'Tribe__Events__Main' ) ) {
26
-	require get_template_directory() . '/includes/the-events-calendar/the-events-calendar.php';
26
+     require get_template_directory() . '/includes/the-events-calendar/the-events-calendar.php';
27 27
 }
28 28
 
29 29
 if ( class_exists( 'Sensei_Main' ) || class_exists( 'Sensei_WC' ) ) {
30
-	require get_template_directory() . '/includes/sensei/class-lsx-sensei.php';
30
+     require get_template_directory() . '/includes/sensei/class-lsx-sensei.php';
31 31
 }
32 32
 
33 33
 if ( class_exists( 'Popup_Maker' ) ) {
34
-	require get_template_directory() . '/includes/popup-maker/class-lsx-popup-maker.php';
34
+     require get_template_directory() . '/includes/popup-maker/class-lsx-popup-maker.php';
35 35
 }
36 36
 
37 37
 if ( class_exists( 'bbPress' ) ) {
38
-	require get_template_directory() . '/includes/bbpress/bbpress.php';
38
+     require get_template_directory() . '/includes/bbpress/bbpress.php';
39 39
 }
40 40
 
41 41
 require get_template_directory() . '/includes/config.php';
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,34 +7,34 @@
 block discarded – undo
7 7
  * @package lsx
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) {
10
+if ( ! defined('ABSPATH')) {
11 11
 	exit;
12 12
 }
13 13
 
14
-define( 'LSX_VERSION', '2.9.4' );
14
+define('LSX_VERSION', '2.9.4');
15 15
 
16
-if ( in_array( 'wordpress-seo/wp-seo.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || in_array( 'wordpress-seo-premium/wp-seo-premium.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
16
+if (in_array('wordpress-seo/wp-seo.php', apply_filters('active_plugins', get_option('active_plugins'))) || in_array('wordpress-seo-premium/wp-seo-premium.php', apply_filters('active_plugins', get_option('active_plugins')))) {
17 17
 	require get_template_directory() . '/includes/yoast/class-lsx-yoast.php';
18 18
 }
19 19
 
20
-if ( class_exists( 'WooCommerce' ) ) {
20
+if (class_exists('WooCommerce')) {
21 21
 	require get_template_directory() . '/includes/woocommerce/woocommerce.php';
22 22
 	require get_template_directory() . '/includes/woocommerce/addons.php';
23 23
 }
24 24
 
25
-if ( class_exists( 'Tribe__Events__Main' ) ) {
25
+if (class_exists('Tribe__Events__Main')) {
26 26
 	require get_template_directory() . '/includes/the-events-calendar/the-events-calendar.php';
27 27
 }
28 28
 
29
-if ( class_exists( 'Sensei_Main' ) || class_exists( 'Sensei_WC' ) ) {
29
+if (class_exists('Sensei_Main') || class_exists('Sensei_WC')) {
30 30
 	require get_template_directory() . '/includes/sensei/class-lsx-sensei.php';
31 31
 }
32 32
 
33
-if ( class_exists( 'Popup_Maker' ) ) {
33
+if (class_exists('Popup_Maker')) {
34 34
 	require get_template_directory() . '/includes/popup-maker/class-lsx-popup-maker.php';
35 35
 }
36 36
 
37
-if ( class_exists( 'bbPress' ) ) {
37
+if (class_exists('bbPress')) {
38 38
 	require get_template_directory() . '/includes/bbpress/bbpress.php';
39 39
 }
40 40
 
Please login to merge, or discard this patch.
includes/woocommerce/addons.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -12,20 +12,20 @@
 block discarded – undo
12 12
  */
13 13
 if ( ! function_exists( 'wc_od_get_delivery_date_field_args' ) ) {
14 14
 
15
-	/**
16
-	 * Change the arguments for the checkout delivery date field.
17
-	 *
18
-	 * @package    lsx
19
-	 * @subpackage woocommerce
20
-	 * @param      $args array
21
-	 * @return     array
22
-	 */
23
-	function lsx_wc_delivery_date_args( $args = array(), $context ) {
24
-		if ( 'checkout' === $context ) {
25
-			$args[] = _x( 'Date', 'Delivery date checkout field label', 'lsx' );
26
-		}
27
-		return $args;
28
-	}
29
-	add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 );
15
+     /**
16
+      * Change the arguments for the checkout delivery date field.
17
+      *
18
+      * @package    lsx
19
+      * @subpackage woocommerce
20
+      * @param      $args array
21
+      * @return     array
22
+      */
23
+     function lsx_wc_delivery_date_args( $args = array(), $context ) {
24
+          if ( 'checkout' === $context ) {
25
+               $args[] = _x( 'Date', 'Delivery date checkout field label', 'lsx' );
26
+          }
27
+          return $args;
28
+     }
29
+     add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 );
30 30
 
31 31
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 /**
11 11
  * WooCommerce Order Delivery Date
12 12
  */
13
-if ( ! function_exists( 'wc_od_get_delivery_date_field_args' ) ) {
13
+if ( ! function_exists('wc_od_get_delivery_date_field_args')) {
14 14
 
15 15
 	/**
16 16
 	 * Change the arguments for the checkout delivery date field.
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
 	 * @param      $args array
21 21
 	 * @return     array
22 22
 	 */
23
-	function lsx_wc_delivery_date_args( $args = array(), $context ) {
24
-		if ( 'checkout' === $context ) {
25
-			$args[] = _x( 'Date', 'Delivery date checkout field label', 'lsx' );
23
+	function lsx_wc_delivery_date_args($args = array(), $context) {
24
+		if ('checkout' === $context) {
25
+			$args[] = _x('Date', 'Delivery date checkout field label', 'lsx');
26 26
 		}
27 27
 		return $args;
28 28
 	}
29
-	add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 );
29
+	add_action('wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2);
30 30
 
31 31
 }
Please login to merge, or discard this patch.