@@ -131,12 +131,12 @@ discard block |
||
| 131 | 131 | * @return array |
| 132 | 132 | */ |
| 133 | 133 | private function prepare_array_property( $index, $atts ) { |
| 134 | - if ( isset( $atts[ $index ] ) && ! empty( $atts[ $index ] ) ) { |
|
| 134 | + if ( isset( $atts[$index] ) && ! empty( $atts[$index] ) ) { |
|
| 135 | 135 | |
| 136 | - if ( is_array( $atts[ $index ] ) ) { |
|
| 137 | - $property = $atts[ $index ]; |
|
| 136 | + if ( is_array( $atts[$index] ) ) { |
|
| 137 | + $property = $atts[$index]; |
|
| 138 | 138 | } else { |
| 139 | - $property = explode( ',', $atts[ $index ] ); |
|
| 139 | + $property = explode( ',', $atts[$index] ); |
|
| 140 | 140 | } |
| 141 | 141 | } else { |
| 142 | 142 | $property = array(); |
@@ -269,6 +269,6 @@ discard block |
||
| 269 | 269 | * @param stdClass $field |
| 270 | 270 | */ |
| 271 | 271 | protected function add_field_values( $field ) { |
| 272 | - $this->field_values[ $field->id ] = new FrmFieldValue( $field, $this->entry ); |
|
| 272 | + $this->field_values[$field->id] = new FrmFieldValue( $field, $this->entry ); |
|
| 273 | 273 | } |
| 274 | 274 | } |
| 275 | 275 | \ No newline at end of file |
@@ -59,8 +59,8 @@ discard block |
||
| 59 | 59 | protected function init_saved_value( $entry ) { |
| 60 | 60 | if ( $this->field->type === 'html' ) { |
| 61 | 61 | $this->saved_value = $this->field->description; |
| 62 | - } else if ( isset( $entry->metas[ $this->field->id ] ) ) { |
|
| 63 | - $this->saved_value = $entry->metas[ $this->field->id ]; |
|
| 62 | + } else if ( isset( $entry->metas[$this->field->id] ) ) { |
|
| 63 | + $this->saved_value = $entry->metas[$this->field->id]; |
|
| 64 | 64 | } else { |
| 65 | 65 | $this->saved_value = ''; |
| 66 | 66 | } |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | */ |
| 134 | 134 | public function get_displayed_value() { |
| 135 | 135 | if ( $this->displayed_value === 'frm_not_prepared' ) { |
| 136 | - return __( 'The display value has not been prepared. Please use the prepare_display_value() method before calling get_displayed_value().' , 'formidable' ); |
|
| 136 | + return __( 'The display value has not been prepared. Please use the prepare_display_value() method before calling get_displayed_value().', 'formidable' ); |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | return $this->displayed_value; |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | // TODO: maybe change from 'source' to 'run_filters' = 'email' |
| 169 | 169 | if ( isset( $atts['source'] ) && $atts['source'] === 'entry_formatter' ) { |
| 170 | 170 | // Deprecated frm_email_value hook |
| 171 | - $meta = array( |
|
| 171 | + $meta = array( |
|
| 172 | 172 | 'item_id' => $entry->id, |
| 173 | 173 | 'field_id' => $this->field->id, |
| 174 | 174 | 'meta_value' => $this->saved_value, |