| Conditions | 7 | 
| Paths | 11 | 
| Total Lines | 26 | 
| Code Lines | 17 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 24 | 	protected function process_output( $output, $value ) { | ||
| 25 | |||
| 26 | $output = wp_parse_args( $output, array( | ||
| 27 | 'element' => '', | ||
| 28 | 'property' => '', | ||
| 29 | 'media_query' => 'global', | ||
| 30 | 'prefix' => '', | ||
| 31 | 'suffix' => '', | ||
| 32 | ) ); | ||
| 33 | |||
| 34 | 		foreach ( $value as $key => $sub_value ) { | ||
| 35 | |||
| 36 | $property = ( empty( $output['property'] ) ) ? $key : $output['property'] . '-' . $key; | ||
| 37 | 			if ( isset( $output['choice'] ) && $output['property'] ) { | ||
| 38 | 				if ( $key === $output['choice'] ) { | ||
| 39 | $property = $output['property']; | ||
| 40 | 				} else { | ||
| 41 | continue; | ||
| 42 | } | ||
| 43 | } | ||
| 44 | 			if ( false !== strpos( $output['property'], '%%' ) ) { | ||
| 45 | $property = str_replace( '%%', $key, $output['property'] ); | ||
| 46 | } | ||
| 47 | $this->styles[ $output['media_query'] ][ $output['element'] ][ $property ] = $output['prefix'] . $this->process_property_value( $property, $value[ $key ] ) . $output['suffix']; | ||
| 48 | } | ||
| 49 | } | ||
| 50 | } | ||
| 51 |