Completed
Push — develop ( 067e83...a90151 )
by Aristeides
04:18 queued 37s
created
field/class-kirki-field-gradient.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -69,22 +69,22 @@
 block discarded – undo
69 69
 
70 70
 		// Make sure start & end values are arrays.
71 71
 		$value['start'] = ( ! isset( $value['start'] ) ) ? array() : $value['start'];
72
-		$value['end']   = ( ! isset( $value['end'] ) )   ? array() : $value['end'];
72
+		$value['end']   = ( ! isset( $value['end'] ) ) ? array() : $value['end'];
73 73
 
74 74
 		foreach ( array( 'start', 'end' ) as $context ) {
75 75
 
76 76
 			// Sanitize colors.
77
-			if ( ! isset( $value[ $context ]['color'] ) ) {
78
-				$value[ $context ]['color'] = '';
77
+			if ( ! isset( $value[$context]['color'] ) ) {
78
+				$value[$context]['color'] = '';
79 79
 			}
80
-			$value[ $context ]['color'] = esc_attr( $value[ $context ]['color'] );
80
+			$value[$context]['color'] = esc_attr( $value[$context]['color'] );
81 81
 
82 82
 			// Sanitize positions.
83
-			if ( ! isset( $value[ $context ]['position'] ) ) {
84
-				$value[ $context ]['position'] = 0;
83
+			if ( ! isset( $value[$context]['position'] ) ) {
84
+				$value[$context]['position'] = 0;
85 85
 			};
86
-			$value[ $context ]['position'] = (int) $value[ $context ]['position'];
87
-			$value[ $context ]['position'] = max( min( $value[ $context ]['position'], 100 ), 0 );
86
+			$value[$context]['position'] = (int) $value[$context]['position'];
87
+			$value[$context]['position'] = max( min( $value[$context]['position'], 100 ), 0 );
88 88
 		}
89 89
 
90 90
 		// Sanitize angle.
Please login to merge, or discard this patch.