Passed
Push — master ( 822daa...44e0bf )
by Warwick
06:47
created
includes/woocommerce/addons.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -11,20 +11,20 @@
 block discarded – undo
11 11
  */
12 12
 if ( function_exists( 'wc_od_get_delivery_date_field_args' ) ) {
13 13
 
14
-	/**
15
-	 * Change the arguments for the checkout delivery date field.
16
-	 *
17
-	 * @package    lsx
18
-	 * @subpackage woocommerce
19
-	 * @param      $args array
20
-	 * @return     array
21
-	 */
22
-	function lsx_wc_delivery_date_args( $args = array(), $context ) {
23
-		if ( 'checkout' === $context ) {
24
-			$args['label'] = _x( 'Date', 'Delivery date checkout field label', 'lsx' );
25
-		}
26
-		return $args;
27
-	}
28
-	add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 );
14
+     /**
15
+      * Change the arguments for the checkout delivery date field.
16
+      *
17
+      * @package    lsx
18
+      * @subpackage woocommerce
19
+      * @param      $args array
20
+      * @return     array
21
+      */
22
+     function lsx_wc_delivery_date_args( $args = array(), $context ) {
23
+          if ( 'checkout' === $context ) {
24
+               $args['label'] = _x( 'Date', 'Delivery date checkout field label', 'lsx' );
25
+          }
26
+          return $args;
27
+     }
28
+     add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 );
29 29
 
30 30
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 /**
10 10
  * WooCommerce Order Delivery Date
11 11
  */
12
-if ( function_exists( 'wc_od_get_delivery_date_field_args' ) ) {
12
+if (function_exists('wc_od_get_delivery_date_field_args')) {
13 13
 
14 14
 	/**
15 15
 	 * Change the arguments for the checkout delivery date field.
@@ -19,12 +19,12 @@  discard block
 block discarded – undo
19 19
 	 * @param      $args array
20 20
 	 * @return     array
21 21
 	 */
22
-	function lsx_wc_delivery_date_args( $args = array(), $context ) {
23
-		if ( 'checkout' === $context ) {
24
-			$args['label'] = _x( 'Date', 'Delivery date checkout field label', 'lsx' );
22
+	function lsx_wc_delivery_date_args($args = array(), $context) {
23
+		if ('checkout' === $context) {
24
+			$args['label'] = _x('Date', 'Delivery date checkout field label', 'lsx');
25 25
 		}
26 26
 		return $args;
27 27
 	}
28
-	add_action( 'wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2 );
28
+	add_action('wc_od_delivery_date_field_args', 'lsx_wc_delivery_date_args', 10, 2);
29 29
 
30 30
 }
Please login to merge, or discard this patch.