Test Setup Failed
Push — master ( 1d3a71...7c2df2 )
by Aristeides
03:48
created
modules/custom-sections/panels/class-kirki-panels-nested-panel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@
 block discarded – undo
49 49
 			'panel',
50 50
 		) );
51 51
 
52
-		$array['title']          = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
53
-		$array['content']        = $this->get_content();
54
-		$array['active']         = $this->active();
55
-		$array['instanceNumber'] = $this->instance_number;
52
+		$array[ 'title' ]          = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
53
+		$array[ 'content' ]        = $this->get_content();
54
+		$array[ 'active' ]         = $this->active();
55
+		$array[ 'instanceNumber' ] = $this->instance_number;
56 56
 
57 57
 		return $array;
58 58
 	}
Please login to merge, or discard this patch.
modules/custom-sections/sections/class-kirki-sections-nested-section.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,15 +51,15 @@
 block discarded – undo
51 51
 			'section',
52 52
 		) );
53 53
 
54
-		$array['title']          = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
55
-		$array['content']        = $this->get_content();
56
-		$array['active']         = $this->active();
57
-		$array['instanceNumber'] = $this->instance_number;
54
+		$array[ 'title' ]          = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
55
+		$array[ 'content' ]        = $this->get_content();
56
+		$array[ 'active' ]         = $this->active();
57
+		$array[ 'instanceNumber' ] = $this->instance_number;
58 58
 
59
-		$array['customizeAction'] = esc_attr__( 'Customizing', 'kirki' );
59
+		$array[ 'customizeAction' ] = esc_attr__( 'Customizing', 'kirki' );
60 60
 		if ( $this->panel ) {
61 61
 			/* translators: The title. */
62
-			$array['customizeAction'] = sprintf( esc_attr__( 'Customizing ▸ %s', 'kirki' ), esc_html( $this->manager->get_panel( $this->panel )->title ) );
62
+			$array[ 'customizeAction' ] = sprintf( esc_attr__( 'Customizing ▸ %s', 'kirki' ), esc_html( $this->manager->get_panel( $this->panel )->title ) );
63 63
 		}
64 64
 		return $array;
65 65
 	}
Please login to merge, or discard this patch.
modules/selective-refresh/class-kirki-modules-selective-refresh.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,13 +69,13 @@
 block discarded – undo
69 69
 
70 70
 		// Start parsing the fields.
71 71
 		foreach ( $fields as $field ) {
72
-			if ( isset( $field['partial_refresh'] ) && ! empty( $field['partial_refresh'] ) ) {
72
+			if ( isset( $field[ 'partial_refresh' ] ) && ! empty( $field[ 'partial_refresh' ] ) ) {
73 73
 				// Start going through each item in the array of partial refreshes.
74
-				foreach ( $field['partial_refresh'] as $partial_refresh => $partial_refresh_args ) {
74
+				foreach ( $field[ 'partial_refresh' ] as $partial_refresh => $partial_refresh_args ) {
75 75
 					// If we have all we need, create the selective refresh call.
76
-					if ( isset( $partial_refresh_args['render_callback'] ) && isset( $partial_refresh_args['selector'] ) ) {
76
+					if ( isset( $partial_refresh_args[ 'render_callback' ] ) && isset( $partial_refresh_args[ 'selector' ] ) ) {
77 77
 						$partial_refresh_args = wp_parse_args( $partial_refresh_args, array(
78
-							'settings' => $field['settings'],
78
+							'settings' => $field[ 'settings' ],
79 79
 						) );
80 80
 						$wp_customize->selective_refresh->add_partial( $partial_refresh, $partial_refresh_args );
81 81
 					}
Please login to merge, or discard this patch.
modules/customizer-branding/class-kirki-modules-customizer-branding.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,14 +73,14 @@
 block discarded – undo
73 73
 			'logoImage'   => '',
74 74
 			'description' => '',
75 75
 		);
76
-		if ( isset( $config['logo_image'] ) && '' !== $config['logo_image'] ) {
77
-			$vars['logoImage'] = esc_url_raw( $config['logo_image'] );
76
+		if ( isset( $config[ 'logo_image' ] ) && '' !== $config[ 'logo_image' ] ) {
77
+			$vars[ 'logoImage' ] = esc_url_raw( $config[ 'logo_image' ] );
78 78
 		}
79
-		if ( isset( $config['description'] ) && '' !== $config['description'] ) {
80
-			$vars['description'] = esc_textarea( $config['description'] );
79
+		if ( isset( $config[ 'description' ] ) && '' !== $config[ 'description' ] ) {
80
+			$vars[ 'description' ] = esc_textarea( $config[ 'description' ] );
81 81
 		}
82 82
 
83
-		if ( ! empty( $vars['logoImage'] ) || ! empty( $vars['description'] ) ) {
83
+		if ( ! empty( $vars[ 'logoImage' ] ) || ! empty( $vars[ 'description' ] ) ) {
84 84
 			wp_register_script( 'kirki-branding', Kirki::$url . '/modules/customizer-branding/branding.js', array(), KIRKI_VERSION );
85 85
 			wp_localize_script( 'kirki-branding', 'kirkiBranding', $vars );
86 86
 			wp_enqueue_script( 'kirki-branding' );
Please login to merge, or discard this patch.
modules/css/property/class-kirki-output-property-font-family.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
 
27 27
 		$family = $this->value;
28 28
 		$backup = '';
29
-		if ( is_array( $this->value ) && isset( $this->value[0] ) && isset( $this->value[1] ) ) {
30
-			$family = $this->value[0];
31
-			$backup = $this->value[1];
29
+		if ( is_array( $this->value ) && isset( $this->value[ 0 ] ) && isset( $this->value[ 1 ] ) ) {
30
+			$family = $this->value[ 0 ];
31
+			$backup = $this->value[ 1 ];
32 32
 		}
33 33
 
34 34
 		// Make sure the value is a string.
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 		// Add backup font.
44 44
 		if ( Kirki_Fonts::is_google_font( $family ) ) {
45 45
 
46
-			if ( '' === $backup && isset( $google_fonts_array[ $family ] ) && isset( $backup_fonts[ $google_fonts_array[ $family ]['category'] ] ) ) {
47
-				$backup = $backup_fonts[ $google_fonts_array[ $family ]['category'] ];
46
+			if ( '' === $backup && isset( $google_fonts_array[ $family ] ) && isset( $backup_fonts[ $google_fonts_array[ $family ][ 'category' ] ] ) ) {
47
+				$backup = $backup_fonts[ $google_fonts_array[ $family ][ 'category' ] ];
48 48
 			}
49 49
 
50 50
 			// Add double quotes if needed.
Please login to merge, or discard this patch.
modules/css/property/class-kirki-output-property-background-position.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
 		if ( false !== strpos( $this->value, ' ' ) ) {
43 43
 			$xy = explode( ' ', $this->value );
44 44
 
45
-			$x = trim( $xy[0] );
46
-			$y = trim( $xy[1] );
45
+			$x = trim( $xy[ 0 ] );
46
+			$y = trim( $xy[ 1 ] );
47 47
 
48 48
 			// If x is not left/center/right, we need to sanitize it.
49 49
 			if ( ! in_array( $x, $x_dimensions, true ) ) {
Please login to merge, or discard this patch.
modules/css/property/class-kirki-output-property-background-image.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
 	 */
22 22
 	protected function process_value() {
23 23
 
24
-		if ( is_array( $this->value ) && isset( $this->value['url'] ) ) {
25
-			$this->value = $this->value['url'];
24
+		if ( is_array( $this->value ) && isset( $this->value[ 'url' ] ) ) {
25
+			$this->value = $this->value[ 'url' ];
26 26
 		}
27 27
 
28 28
 		if ( false === strpos( $this->value, 'gradient' ) && false === strpos( $this->value, 'url(' ) ) {
Please login to merge, or discard this patch.
modules/css/field/class-kirki-output-field-background.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
 		foreach ( array( 'background-image', 'background-color', 'background-repeat', 'background-position', 'background-size', 'background-attachment' ) as $property ) {
37 37
 			if ( isset( $value[ $property ] ) && ! empty( $value[ $property ] ) ) {
38
-				$this->styles[ $output['media_query'] ][ $output['element'] ][ $property ] = $output['prefix'] . $this->process_property_value( $property, $value[ $property ] ) . $output['suffix'];
38
+				$this->styles[ $output[ 'media_query' ] ][ $output[ 'element' ] ][ $property ] = $output[ 'prefix' ] . $this->process_property_value( $property, $value[ $property ] ) . $output[ 'suffix' ];
39 39
 			}
40 40
 		}
41 41
 	}
Please login to merge, or discard this patch.
modules/css/field/class-kirki-output-field-dimensions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,18 +39,18 @@
 block discarded – undo
39 39
 
40 40
 		foreach ( $value as $key => $sub_value ) {
41 41
 
42
-			$property = ( empty( $output['property'] ) ) ? $key : $output['property'] . '-' . $key;
43
-			if ( isset( $output['choice'] ) && $output['property'] ) {
44
-				if ( $key === $output['choice'] ) {
45
-					$property = $output['property'];
42
+			$property = ( empty( $output[ 'property' ] ) ) ? $key : $output[ 'property' ] . '-' . $key;
43
+			if ( isset( $output[ 'choice' ] ) && $output[ 'property' ] ) {
44
+				if ( $key === $output[ 'choice' ] ) {
45
+					$property = $output[ 'property' ];
46 46
 				} else {
47 47
 					continue;
48 48
 				}
49 49
 			}
50
-			if ( false !== strpos( $output['property'], '%%' ) ) {
51
-				$property = str_replace( '%%', $key, $output['property'] );
50
+			if ( false !== strpos( $output[ 'property' ], '%%' ) ) {
51
+				$property = str_replace( '%%', $key, $output[ 'property' ] );
52 52
 			}
53
-			$this->styles[ $output['media_query'] ][ $output['element'] ][ $property ] = $output['prefix'] . $this->process_property_value( $property, $value[ $key ] ) . $output['suffix'];
53
+			$this->styles[ $output[ 'media_query' ] ][ $output[ 'element' ] ][ $property ] = $output[ 'prefix' ] . $this->process_property_value( $property, $value[ $key ] ) . $output[ 'suffix' ];
54 54
 		}
55 55
 	}
56 56
 }
Please login to merge, or discard this patch.