Completed
Push — develop ( c0cfb6...986ace )
by David
02:02 queued 14s
created
src/classes/shipping-data/class-free-shipping-shipping-method.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -4,30 +4,30 @@  discard block
 block discarded – undo
4 4
 
5 5
 class Free_Shipping_Shipping_Method extends Shipping_Method {
6 6
 
7
-	public function add_available_delivery_method( &$jsonld ) {
7
+	public function add_available_delivery_method(&$jsonld) {
8 8
 
9
-		if ( ! is_array( $jsonld ) ) {
9
+		if ( ! is_array($jsonld)) {
10 10
 			return;
11 11
 		}
12 12
 
13
-		if ( ! isset( $jsonld['availableDeliveryMethod'] ) ) {
13
+		if ( ! isset($jsonld['availableDeliveryMethod'])) {
14 14
 			$jsonld['availableDeliveryMethod'] = array();
15 15
 		}
16 16
 
17
-		if ( ! is_array( $jsonld['availableDeliveryMethod'] ) ) {
18
-			$jsonld['availableDeliveryMethod'] = array( $jsonld['availableDeliveryMethod'] );
17
+		if ( ! is_array($jsonld['availableDeliveryMethod'])) {
18
+			$jsonld['availableDeliveryMethod'] = array($jsonld['availableDeliveryMethod']);
19 19
 		}
20 20
 
21
-		if ( ! in_array( 'ParcelDelivery', $jsonld['availableDeliveryMethod'], true ) ) {
22
-			array_push( $jsonld['availableDeliveryMethod'], 'ParcelDelivery' );
21
+		if ( ! in_array('ParcelDelivery', $jsonld['availableDeliveryMethod'], true)) {
22
+			array_push($jsonld['availableDeliveryMethod'], 'ParcelDelivery');
23 23
 		}
24 24
 
25 25
 	}
26 26
 
27 27
 	protected function get_shipping_rate() {
28 28
 
29
-		$description = isset( $this->wc_shipping_method->instance_settings['description'] )
30
-			? wp_strip_all_tags( $this->wc_shipping_method->instance_settings['description'] ) : '';
29
+		$description = isset($this->wc_shipping_method->instance_settings['description'])
30
+			? wp_strip_all_tags($this->wc_shipping_method->instance_settings['description']) : '';
31 31
 
32 32
 		return array(
33 33
 			'@type'       => 'MonetaryAmount',
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
 
40 40
 	}
41 41
 
42
-	protected function set_value_with_currency_codes( &$shipping_rate, $instance, $currency_codes ) {
42
+	protected function set_value_with_currency_codes(&$shipping_rate, $instance, $currency_codes) {
43 43
 
44
-		if ( ! empty( $currency_codes ) ) {
44
+		if ( ! empty($currency_codes)) {
45 45
 			$shipping_rate['currency'] = $currency_codes[0];
46 46
 		}
47 47
 
Please login to merge, or discard this patch.
src/modules/include-exclude/includes/Configuration.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@  discard block
 block discarded – undo
10 10
 	private $urls;
11 11
 
12 12
 	protected function __construct() {
13
-		$include_exclude_data = get_option( 'wl_exclude_include_urls_settings', array() );
14
-		$include_exclude      = isset( $include_exclude_data['include_exclude'] ) ? (array) $include_exclude_data['include_exclude'] : array();
13
+		$include_exclude_data = get_option('wl_exclude_include_urls_settings', array());
14
+		$include_exclude      = isset($include_exclude_data['include_exclude']) ? (array) $include_exclude_data['include_exclude'] : array();
15 15
 
16 16
 		$this->type = in_array(
17 17
 			$include_exclude,
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
 			true
23 23
 		)
24 24
 			? $include_exclude : 'exclude';
25
-		$this->urls = isset( $include_exclude_data['urls'] ) ? $include_exclude_data['urls'] : '';
25
+		$this->urls = isset($include_exclude_data['urls']) ? $include_exclude_data['urls'] : '';
26 26
 	}
27 27
 
28 28
 	public static function get_instance() {
29
-		if ( ! isset( self::$instance ) ) {
29
+		if ( ! isset(self::$instance)) {
30 30
 			self::$instance = new self();
31 31
 		}
32 32
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @return string
44 44
 	 */
45 45
 	public function get_default() {
46
-		return ( $this->type === 'exclude' ? 'include' : 'exclude' );
46
+		return ($this->type === 'exclude' ? 'include' : 'exclude');
47 47
 	}
48 48
 
49 49
 	public function get_urls() {
Please login to merge, or discard this patch.