@@ -36,8 +36,8 @@  | 
                                                    ||
| 36 | 36 |  		if ( ! is_array( $this->choices ) ) { | 
                                                        
| 37 | 37 | $this->choices = array();  | 
                                                        
| 38 | 38 | }  | 
                                                        
| 39 | -		if ( ! isset( $this->choices['element'] ) ) { | 
                                                        |
| 40 | - $this->choices['element'] = 'input';  | 
                                                        |
| 39 | +		if ( ! isset( $this->choices[ 'element' ] ) ) { | 
                                                        |
| 40 | + $this->choices[ 'element' ] = 'input';  | 
                                                        |
| 41 | 41 | }  | 
                                                        
| 42 | 42 | |
| 43 | 43 | }  | 
                                                        
@@ -24,7 +24,7 @@  | 
                                                    ||
| 24 | 24 |  		if ( ! is_array( $this->choices ) ) { | 
                                                        
| 25 | 25 | $this->choices = array();  | 
                                                        
| 26 | 26 | }  | 
                                                        
| 27 | - $this->choices['alpha'] = true;  | 
                                                        |
| 27 | + $this->choices[ 'alpha' ] = true;  | 
                                                        |
| 28 | 28 | |
| 29 | 29 | }  | 
                                                        
| 30 | 30 | }  | 
                                                        
@@ -52,9 +52,9 @@ discard block  | 
                                                    ||
| 52 | 52 | )  | 
                                                        
| 53 | 53 | );  | 
                                                        
| 54 | 54 | // Make sure min, max & step are all numeric.  | 
                                                        
| 55 | - $this->choices['min'] = filter_var( $this->choices['min'], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION );  | 
                                                        |
| 56 | - $this->choices['max'] = filter_var( $this->choices['max'], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION );  | 
                                                        |
| 57 | - $this->choices['step'] = filter_var( $this->choices['step'], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION );  | 
                                                        |
| 55 | + $this->choices[ 'min' ] = filter_var( $this->choices[ 'min' ], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION );  | 
                                                        |
| 56 | + $this->choices[ 'max' ] = filter_var( $this->choices[ 'max' ], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION );  | 
                                                        |
| 57 | + $this->choices[ 'step' ] = filter_var( $this->choices[ 'step' ], FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION );  | 
                                                        |
| 58 | 58 | }  | 
                                                        
| 59 | 59 | |
| 60 | 60 | /**  | 
                                                        
@@ -71,14 +71,14 @@ discard block  | 
                                                    ||
| 71 | 71 | $value = filter_var( $value, FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION );  | 
                                                        
| 72 | 72 | |
| 73 | 73 | // Minimum & maximum value limits.  | 
                                                        
| 74 | -		if ( $value < $this->choices['min'] || $value > $this->choices['max'] ) { | 
                                                        |
| 75 | - return max( min( $value, $this->choices['max'] ), $this->choices['min'] );  | 
                                                        |
| 74 | +		if ( $value < $this->choices[ 'min' ] || $value > $this->choices[ 'max' ] ) { | 
                                                        |
| 75 | + return max( min( $value, $this->choices[ 'max' ] ), $this->choices[ 'min' ] );  | 
                                                        |
| 76 | 76 | }  | 
                                                        
| 77 | 77 | |
| 78 | 78 | // Only multiple of steps.  | 
                                                        
| 79 | - $steps = ( $value - $this->choices['min'] ) / $this->choices['step'];  | 
                                                        |
| 79 | + $steps = ( $value - $this->choices[ 'min' ] ) / $this->choices[ 'step' ];  | 
                                                        |
| 80 | 80 |  		if ( ! is_int( $steps ) ) { | 
                                                        
| 81 | - $value = $this->choices['min'] + ( round( $steps ) * $this->choices['step'] );  | 
                                                        |
| 81 | + $value = $this->choices[ 'min' ] + ( round( $steps ) * $this->choices[ 'step' ] );  | 
                                                        |
| 82 | 82 | }  | 
                                                        
| 83 | 83 | return $value;  | 
                                                        
| 84 | 84 | }  | 
                                                        
@@ -33,7 +33,7 @@ discard block  | 
                                                    ||
| 33 | 33 | * @return mixed  | 
                                                        
| 34 | 34 | */  | 
                                                        
| 35 | 35 |  	protected function get_root_value( $default = null ) { | 
                                                        
| 36 | - $id_base = $this->id_data['base'];  | 
                                                        |
| 36 | + $id_base = $this->id_data[ 'base' ];  | 
                                                        |
| 37 | 37 | |
| 38 | 38 | // Get all user-meta.  | 
                                                        
| 39 | 39 | // We'll use this to check if the value is set or not,  | 
                                                        
@@ -60,7 +60,7 @@ discard block  | 
                                                    ||
| 60 | 60 | * @return bool Whether the multidimensional root was updated successfully.  | 
                                                        
| 61 | 61 | */  | 
                                                        
| 62 | 62 |  	protected function set_root_value( $value ) { | 
                                                        
| 63 | - $id_base = $this->id_data['base'];  | 
                                                        |
| 63 | + $id_base = $this->id_data[ 'base' ];  | 
                                                        |
| 64 | 64 | |
| 65 | 65 | // First delete the current user-meta.  | 
                                                        
| 66 | 66 | // We're doing this to avoid duplicate entries.  | 
                                                        
@@ -33,7 +33,7 @@ discard block  | 
                                                    ||
| 33 | 33 | * @return mixed  | 
                                                        
| 34 | 34 | */  | 
                                                        
| 35 | 35 |  	protected function get_root_value( $default = null ) { | 
                                                        
| 36 | - return get_site_option( $this->id_data['base'], $default );  | 
                                                        |
| 36 | + return get_site_option( $this->id_data[ 'base' ], $default );  | 
                                                        |
| 37 | 37 | }  | 
                                                        
| 38 | 38 | |
| 39 | 39 | /**  | 
                                                        
@@ -45,7 +45,7 @@ discard block  | 
                                                    ||
| 45 | 45 | * @return bool Whether the multidimensional root was updated successfully.  | 
                                                        
| 46 | 46 | */  | 
                                                        
| 47 | 47 |  	protected function set_root_value( $value ) { | 
                                                        
| 48 | - return update_site_option( $this->id_data['base'], $value );  | 
                                                        |
| 48 | + return update_site_option( $this->id_data[ 'base' ], $value );  | 
                                                        |
| 49 | 49 | }  | 
                                                        
| 50 | 50 | |
| 51 | 51 | /**  | 
                                                        
@@ -20,7 +20,7 @@  | 
                                                    ||
| 20 | 20 | // Echo the styles.  | 
                                                        
| 21 | 21 | $configs = Kirki::$config;  | 
                                                        
| 22 | 22 |  foreach ( $configs as $config_id => $args ) { | 
                                                        
| 23 | -	if ( true === $args['disable_output'] ) { | 
                                                        |
| 23 | +	if ( true === $args[ 'disable_output' ] ) { | 
                                                        |
| 24 | 24 | continue;  | 
                                                        
| 25 | 25 | }  | 
                                                        
| 26 | 26 | |
@@ -26,9 +26,9 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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.  | 
                                                        
@@ -42,8 +42,8 @@  | 
                                                    ||
| 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 ) ) { | 
                                                        
@@ -26,28 +26,28 @@  | 
                                                    ||
| 26 | 26 |  		foreach ( $value as $key => $sub_value ) { | 
                                                        
| 27 | 27 | |
| 28 | 28 | // If "element" is not defined, there's no reason to continue.  | 
                                                        
| 29 | -			if ( ! isset( $output['element'] ) ) { | 
                                                        |
| 29 | +			if ( ! isset( $output[ 'element' ] ) ) { | 
                                                        |
| 30 | 30 | continue;  | 
                                                        
| 31 | 31 | }  | 
                                                        
| 32 | 32 | |
| 33 | 33 | // If the "choice" is not the same as the $key in our loop, there's no reason to proceed.  | 
                                                        
| 34 | -			if ( isset( $output['choice'] ) && $key !== $output['choice'] ) { | 
                                                        |
| 34 | +			if ( isset( $output[ 'choice' ] ) && $key !== $output[ 'choice' ] ) { | 
                                                        |
| 35 | 35 | continue;  | 
                                                        
| 36 | 36 | }  | 
                                                        
| 37 | 37 | |
| 38 | 38 | // If "property" is not defined, fallback to the $key.  | 
                                                        
| 39 | - $property = ( ! isset( $output['property'] ) || empty( $output['property'] ) ) ? $key : $output['property'];  | 
                                                        |
| 39 | + $property = ( ! isset( $output[ 'property' ] ) || empty( $output[ 'property' ] ) ) ? $key : $output[ 'property' ];  | 
                                                        |
| 40 | 40 | |
| 41 | 41 | // If "media_query" is not defined, use "global".  | 
                                                        
| 42 | -			if ( ! isset( $output['media_query'] ) || empty( $output['media_query'] ) ) { | 
                                                        |
| 43 | - $output['media_query'] = 'global';  | 
                                                        |
| 42 | +			if ( ! isset( $output[ 'media_query' ] ) || empty( $output[ 'media_query' ] ) ) { | 
                                                        |
| 43 | + $output[ 'media_query' ] = 'global';  | 
                                                        |
| 44 | 44 | }  | 
                                                        
| 45 | 45 | |
| 46 | 46 | // If "suffix" is defined, add it to the value.  | 
                                                        
| 47 | - $output['suffix'] = ( isset( $output['suffix'] ) ) ? $output['suffix'] : '';  | 
                                                        |
| 47 | + $output[ 'suffix' ] = ( isset( $output[ 'suffix' ] ) ) ? $output[ 'suffix' ] : '';  | 
                                                        |
| 48 | 48 | |
| 49 | 49 | // Create the styles.  | 
                                                        
| 50 | - $this->styles[ $output['media_query'] ][ $output['element'] ][ $property ] = $sub_value . $output['suffix'];  | 
                                                        |
| 50 | + $this->styles[ $output[ 'media_query' ] ][ $output[ 'element' ] ][ $property ] = $sub_value . $output[ 'suffix' ];  | 
                                                        |
| 51 | 51 | |
| 52 | 52 | }  | 
                                                        
| 53 | 53 | }  |