@@ -350,10 +350,10 @@ discard block |
||
| 350 | 350 | if ( $this->include_field_in_content( $field_value ) ) { |
| 351 | 351 | |
| 352 | 352 | $displayed_value = $this->prepare_display_value_for_array( $field_value->get_displayed_value() ); |
| 353 | - $output[ $field_value->get_field_key() ] = $displayed_value; |
|
| 353 | + $output[$field_value->get_field_key()] = $displayed_value; |
|
| 354 | 354 | |
| 355 | 355 | if ( $displayed_value !== $field_value->get_saved_value() ) { |
| 356 | - $output[ $field_value->get_field_key() . '-value' ] = $field_value->get_saved_value(); |
|
| 356 | + $output[$field_value->get_field_key() . '-value'] = $field_value->get_saved_value(); |
|
| 357 | 357 | } |
| 358 | 358 | } |
| 359 | 359 | } |
@@ -608,7 +608,7 @@ discard block |
||
| 608 | 608 | |
| 609 | 609 | if ( is_array( $value ) ) { |
| 610 | 610 | foreach ( $value as $key => $single_value ) { |
| 611 | - $value[ $key ] = $this->strip_html( $single_value ); |
|
| 611 | + $value[$key] = $this->strip_html( $single_value ); |
|
| 612 | 612 | } |
| 613 | 613 | } else if ( $this->is_plain_text && ! is_array( $value ) ) { |
| 614 | 614 | if ( strpos( $value, '<img' ) !== false ) { |
@@ -83,8 +83,8 @@ discard block |
||
| 83 | 83 | ) ); |
| 84 | 84 | |
| 85 | 85 | foreach ( $this->style_settings as $key => $setting ) { |
| 86 | - if ( isset( $atts[ $key ] ) && $atts[ $key ] !== '' ) { |
|
| 87 | - $this->style_settings[ $key ] = str_replace( '#', '', $atts[ $key ] ); |
|
| 86 | + if ( isset( $atts[$key] ) && $atts[$key] !== '' ) { |
|
| 87 | + $this->style_settings[$key] = str_replace( '#', '', $atts[$key] ); |
|
| 88 | 88 | } |
| 89 | 89 | } |
| 90 | 90 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | |
| 140 | 140 | $td_style_attributes = 'text-align:' . ( $this->direction == 'rtl' ? 'right' : 'left' ) . ';'; |
| 141 | 141 | $td_style_attributes .= 'color:#' . $this->style_settings['text_color'] . ';padding:7px 9px;vertical-align:top;'; |
| 142 | - $td_style_attributes .= 'border-top:' . $this->style_settings['border_width'] . ' solid #' . $this->style_settings[ 'border_color' ] . ';'; |
|
| 142 | + $td_style_attributes .= 'border-top:' . $this->style_settings['border_width'] . ' solid #' . $this->style_settings['border_color'] . ';'; |
|
| 143 | 143 | |
| 144 | 144 | $this->td_style = ' style="' . $td_style_attributes . '"'; |
| 145 | 145 | } |
@@ -154,12 +154,12 @@ discard block |
||
| 154 | 154 | * @return array |
| 155 | 155 | */ |
| 156 | 156 | private function prepare_array_property( $index, $atts ) { |
| 157 | - if ( isset( $atts[ $index ] ) && ! empty( $atts[ $index ] ) ) { |
|
| 157 | + if ( isset( $atts[$index] ) && ! empty( $atts[$index] ) ) { |
|
| 158 | 158 | |
| 159 | - if ( is_array( $atts[ $index ] ) ) { |
|
| 160 | - $property = $atts[ $index ]; |
|
| 159 | + if ( is_array( $atts[$index] ) ) { |
|
| 160 | + $property = $atts[$index]; |
|
| 161 | 161 | } else { |
| 162 | - $property = explode( ',', $atts[ $index ] ); |
|
| 162 | + $property = explode( ',', $atts[$index] ); |
|
| 163 | 163 | } |
| 164 | 164 | } else { |
| 165 | 165 | $property = array(); |
@@ -292,6 +292,6 @@ discard block |
||
| 292 | 292 | * @param stdClass $field |
| 293 | 293 | */ |
| 294 | 294 | protected function add_field_values( $field ) { |
| 295 | - $this->field_values[ $field->id ] = new FrmFieldValue( $field, $this->entry, array( 'source' => $this->source ) ); |
|
| 295 | + $this->field_values[$field->id] = new FrmFieldValue( $field, $this->entry, array( 'source' => $this->source ) ); |
|
| 296 | 296 | } |
| 297 | 297 | } |
| 298 | 298 | \ No newline at end of file |