Completed
Push — master ( 2e7061...c8caa2 )
by Stephanie
02:44
created
classes/controllers/FrmXMLController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 		$export_format = apply_filters( 'frm_export_formats', $export_format );
192 192
 
193 193
 		$file_type = strtolower( pathinfo( $_FILES['frm_import_file']['name'], PATHINFO_EXTENSION ) );
194
-		if ( 'xml' !== $file_type && isset( $export_format[ $file_type ] ) ) {
194
+		if ( 'xml' !== $file_type && isset( $export_format[$file_type] ) ) {
195 195
 			// allow other file types to be imported
196 196
 			do_action( 'frm_before_import_' . $file_type );
197 197
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 		foreach ( $type as $tb_type ) {
275 275
 			$where = array();
276 276
 			$join  = '';
277
-			$table = $tables[ $tb_type ];
277
+			$table = $tables[$tb_type];
278 278
 
279 279
 			$select     = $table . '.id';
280 280
 			$query_vars = array();
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 							$table . '.parent_form_id' => $args['ids'],
290 290
 						);
291 291
 					} else {
292
-						$where[ $table . '.status !' ] = 'draft';
292
+						$where[$table . '.status !'] = 'draft';
293 293
 					}
294 294
 					break;
295 295
 				case 'actions':
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 				case 'items':
303 303
 					// $join = "INNER JOIN {$wpdb->prefix}frm_item_metas im ON ($table.id = im.item_id)";
304 304
 					if ( $args['ids'] ) {
305
-						$where[ $table . '.form_id' ] = $args['ids'];
305
+						$where[$table . '.form_id'] = $args['ids'];
306 306
 					}
307 307
 					break;
308 308
 				case 'styles':
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 					}
344 344
 			}
345 345
 
346
-			$records[ $tb_type ] = FrmDb::get_col( $table . $join, $where, $select );
346
+			$records[$tb_type] = FrmDb::get_col( $table . $join, $where, $select );
347 347
 			unset( $tb_type );
348 348
 		}
349 349
 
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
 		$no_export_fields = FrmField::no_save_fields();
487 487
 		foreach ( $csv_fields as $k => $f ) {
488 488
 			if ( in_array( $f->type, $no_export_fields ) ) {
489
-				unset( $csv_fields[ $k ] );
489
+				unset( $csv_fields[$k] );
490 490
 			}
491 491
 		}
492 492
 
Please login to merge, or discard this patch.