Completed
Push — master ( 040bac...788fc3 )
by Stephanie
02:20
created
classes/controllers/FrmXMLController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
 		// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash
197 197
 		$file_type = strtolower( pathinfo( $_FILES['frm_import_file']['name'], PATHINFO_EXTENSION ) );
198
-		if ( 'xml' !== $file_type && isset( $export_format[ $file_type ] ) ) {
198
+		if ( 'xml' !== $file_type && isset( $export_format[$file_type] ) ) {
199 199
 			// allow other file types to be imported
200 200
 			do_action( 'frm_before_import_' . $file_type );
201 201
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 		foreach ( $type as $tb_type ) {
279 279
 			$where = array();
280 280
 			$join  = '';
281
-			$table = $tables[ $tb_type ];
281
+			$table = $tables[$tb_type];
282 282
 
283 283
 			$select     = $table . '.id';
284 284
 			$query_vars = array();
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 							$table . '.parent_form_id' => $args['ids'],
294 294
 						);
295 295
 					} else {
296
-						$where[ $table . '.status !' ] = 'draft';
296
+						$where[$table . '.status !'] = 'draft';
297 297
 					}
298 298
 					break;
299 299
 				case 'actions':
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 				case 'items':
307 307
 					// $join = "INNER JOIN {$wpdb->prefix}frm_item_metas im ON ($table.id = im.item_id)";
308 308
 					if ( $args['ids'] ) {
309
-						$where[ $table . '.form_id' ] = $args['ids'];
309
+						$where[$table . '.form_id'] = $args['ids'];
310 310
 					}
311 311
 					break;
312 312
 				case 'styles':
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 					}
348 348
 			}
349 349
 
350
-			$records[ $tb_type ] = FrmDb::get_col( $table . $join, $where, $select );
350
+			$records[$tb_type] = FrmDb::get_col( $table . $join, $where, $select );
351 351
 			unset( $tb_type );
352 352
 		}
353 353
 
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
 		$no_export_fields = FrmField::no_save_fields();
493 493
 		foreach ( $csv_fields as $k => $f ) {
494 494
 			if ( in_array( $f->type, $no_export_fields ) ) {
495
-				unset( $csv_fields[ $k ] );
495
+				unset( $csv_fields[$k] );
496 496
 			}
497 497
 		}
498 498
 
Please login to merge, or discard this patch.