Completed
Push — develop ( 4cbe75...fb7f79 )
by Aristeides
03:47 queued 01:17
created
field/class-kirki-field-gradient.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -70,22 +70,22 @@
 block discarded – undo
70 70
 		foreach ( array( 'start', 'end' ) as $context ) {
71 71
 
72 72
 			// Make sure value is array.
73
-			if ( ! isset( $value[ $context ] ) ) {
74
-				$value[ $context ] = array();
73
+			if ( ! isset( $value[$context] ) ) {
74
+				$value[$context] = array();
75 75
 			}
76 76
 
77 77
 			// Sanitize colors.
78
-			if ( ! isset( $value[ $context ]['color'] ) ) {
79
-				$value[ $context ]['color'] = '';
78
+			if ( ! isset( $value[$context]['color'] ) ) {
79
+				$value[$context]['color'] = '';
80 80
 			}
81
-			$value[ $context ]['color'] = esc_attr( $value[ $context ]['color'] );
81
+			$value[$context]['color'] = esc_attr( $value[$context]['color'] );
82 82
 
83 83
 			// Sanitize positions.
84
-			if ( ! isset( $value[ $context ]['position'] ) ) {
85
-				$value[ $context ]['position'] = 0;
84
+			if ( ! isset( $value[$context]['position'] ) ) {
85
+				$value[$context]['position'] = 0;
86 86
 			};
87
-			$value[ $context ]['position'] = (int) $value[ $context ]['position'];
88
-			$value[ $context ]['position'] = max( min( $value[ $context ]['position'], 100 ), 0 );
87
+			$value[$context]['position'] = (int) $value[$context]['position'];
88
+			$value[$context]['position'] = max( min( $value[$context]['position'], 100 ), 0 );
89 89
 		}
90 90
 
91 91
 		// Sanitize angle.
Please login to merge, or discard this patch.