Passed
Push — develop ( 4c2525...61c53c )
by Aristeides
05:52 queued 02:44
created
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 ( array_keys( $value ) as $key ) {
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.