Completed
Branch 3.0 (afc7c2)
by Stephanie
03:55 queued 01:12
created
classes/models/FrmEntryValues.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -131,12 +131,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
classes/models/FrmFieldValue.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.