Completed
Push — develop ( 25b4bc...d8be36 )
by Aristeides
02:18
created
field/class-kirki-field-typography.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,8 +160,8 @@
 block discarded – undo
160 160
 
161 161
 			// Sanitize the font-size.
162 162
 			if ( 'font-size' === $key || 'letter-spacing' === $key || 'word-spacing' === $key ) {
163
-				$value[ $key ] = Kirki_Sanitize_Values::css_dimension( $value[ $key ] );
164
-				if ( is_numeric( $value[ $key ] ) ) {
163
+				$value[$key] = Kirki_Sanitize_Values::css_dimension( $value[$key] );
164
+				if ( is_numeric( $value[$key] ) ) {
165 165
 					$value['font-size'] .= 'px';
166 166
 				}
167 167
 			} elseif ( 'line-height' === $key ) {
Please login to merge, or discard this patch.
modules/field-dependencies/class-kirki-modules-field-dependencies.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 				}
49 49
 			}
50 50
 			if ( $process_field && isset( $field['required'] ) && ! empty( $field['required'] ) ) {
51
-				$field_dependencies[ $field['id'] ] = $field['required'];
51
+				$field_dependencies[$field['id']] = $field['required'];
52 52
 			}
53 53
 		}
54 54
 		wp_localize_script( 'kirki_field_dependencies', 'fieldDependencies', $field_dependencies );
Please login to merge, or discard this patch.
controls/typography/class-kirki-control-typography.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -104,14 +104,14 @@  discard block
 block discarded – undo
104 104
 			$available_variants = array();
105 105
 			foreach ( $variants as $variant ) {
106 106
 				if ( array_key_exists( $variant, $all_variants ) ) {
107
-					$available_variants[] = array( 'id' => $variant, 'label' => $all_variants[ $variant ] );
107
+					$available_variants[] = array( 'id' => $variant, 'label' => $all_variants[$variant] );
108 108
 				}
109 109
 			}
110 110
 
111 111
 			$available_subsets = array();
112 112
 			foreach ( $subsets as $subset ) {
113 113
 				if ( array_key_exists( $subset, $all_subsets ) ) {
114
-					$available_subsets[] = array( 'id' => $subset, 'label' => $all_subsets[ $subset ] );
114
+					$available_subsets[] = array( 'id' => $subset, 'label' => $all_subsets[$subset] );
115 115
 				}
116 116
 			}
117 117
 
@@ -388,6 +388,6 @@  discard block
 block discarded – undo
388 388
 		if ( false === $id ) {
389 389
 			return $translation_strings;
390 390
 		}
391
-		return $translation_strings[ $id ];
391
+		return $translation_strings[$id];
392 392
 	}
393 393
 }
Please login to merge, or discard this patch.
controls/dimensions/class-kirki-control-dimensions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -93,14 +93,14 @@  discard block
 block discarded – undo
93 93
 		if ( is_array( $this->choices ) ) {
94 94
 			foreach ( $this->choices as $choice => $value ) {
95 95
 				if ( 'labels' !== $choice && true === $value ) {
96
-					$this->json['choices'][ $choice ] = true;
96
+					$this->json['choices'][$choice] = true;
97 97
 				}
98 98
 			}
99 99
 		}
100 100
 		if ( is_array( $this->json['default'] ) ) {
101 101
 			foreach ( $this->json['default'] as $key => $value ) {
102
-				if ( isset( $this->json['choices'][ $key ] ) && ! isset( $this->json['value'][ $key ] ) ) {
103
-					$this->json['value'][ $key ] = $value;
102
+				if ( isset( $this->json['choices'][$key] ) && ! isset( $this->json['value'][$key] ) ) {
103
+					$this->json['value'][$key] = $value;
104 104
 				}
105 105
 			}
106 106
 		}
@@ -206,6 +206,6 @@  discard block
 block discarded – undo
206 206
 			if ( false === $id ) {
207 207
 				return $translation_strings;
208 208
 			}
209
-			return $translation_strings[ $id ];
209
+			return $translation_strings[$id];
210 210
 		}
211 211
 }
Please login to merge, or discard this patch.