@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $export_format = apply_filters( 'frm_export_formats', $export_format ); |
| 114 | 114 | |
| 115 | 115 | $file_type = strtolower( pathinfo( $_FILES['frm_import_file']['name'], PATHINFO_EXTENSION ) ); |
| 116 | - if ( 'xml' !== $file_type && isset( $export_format[ $file_type ] ) ) { |
|
| 116 | + if ( 'xml' !== $file_type && isset( $export_format[$file_type] ) ) { |
|
| 117 | 117 | // allow other file types to be imported |
| 118 | 118 | do_action( 'frm_before_import_' . $file_type ); |
| 119 | 119 | return; |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | foreach ( $type as $tb_type ) { |
| 206 | 206 | $where = array(); |
| 207 | 207 | $join = ''; |
| 208 | - $table = $tables[ $tb_type ]; |
|
| 208 | + $table = $tables[$tb_type]; |
|
| 209 | 209 | |
| 210 | 210 | $select = $table . '.id'; |
| 211 | 211 | $query_vars = array(); |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | $table . '.parent_form_id' => $args['ids'], |
| 221 | 221 | ); |
| 222 | 222 | } else { |
| 223 | - $where[ $table . '.status !' ] = 'draft'; |
|
| 223 | + $where[$table . '.status !'] = 'draft'; |
|
| 224 | 224 | } |
| 225 | 225 | break; |
| 226 | 226 | case 'actions': |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | case 'items': |
| 234 | 234 | //$join = "INNER JOIN {$wpdb->prefix}frm_item_metas im ON ($table.id = im.item_id)"; |
| 235 | 235 | if ( $args['ids'] ) { |
| 236 | - $where[ $table . '.form_id' ] = $args['ids']; |
|
| 236 | + $where[$table . '.form_id'] = $args['ids']; |
|
| 237 | 237 | } |
| 238 | 238 | break; |
| 239 | 239 | case 'styles': |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | } |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | - $records[ $tb_type ] = FrmDb::get_col( $table . $join, $where, $select ); |
|
| 277 | + $records[$tb_type] = FrmDb::get_col( $table . $join, $where, $select ); |
|
| 278 | 278 | unset( $tb_type ); |
| 279 | 279 | } |
| 280 | 280 | |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | $no_export_fields = FrmField::no_save_fields(); |
| 377 | 377 | foreach ( $csv_fields as $k => $f ) { |
| 378 | 378 | if ( in_array( $f->type, $no_export_fields ) ) { |
| 379 | - unset( $csv_fields[ $k ] ); |
|
| 379 | + unset( $csv_fields[$k] ); |
|
| 380 | 380 | } |
| 381 | 381 | } |
| 382 | 382 | |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | * since we redirect to the last form. |
| 87 | 87 | * |
| 88 | 88 | * @since 3.06 |
| 89 | - * @param object $xml The values included in the XML. |
|
| 89 | + * @param SimpleXMLElement $xml The values included in the XML. |
|
| 90 | 90 | */ |
| 91 | 91 | private static function set_new_form_name( &$xml ) { |
| 92 | 92 | if ( ! isset( $xml->form ) ) { |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | esc_html__( 'License plan required: %s', 'formidable' ), |
| 103 | 103 | '<a href="' . esc_url( $pricing ) . '" target="_blank" rel="noopener">' . esc_html( $category ) . '</a>' |
| 104 | 104 | ); |
| 105 | - unset( $template['categories'][ $k ] ); |
|
| 105 | + unset( $template['categories'][$k] ); |
|
| 106 | 106 | break; |
| 107 | 107 | } |
| 108 | 108 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | <?php } ?> |
| 141 | 141 | </div> |
| 142 | 142 | </div> |
| 143 | - <?php unset( $template, $templates[ $k ] ); ?> |
|
| 143 | + <?php unset( $template, $templates[$k] ); ?> |
|
| 144 | 144 | <?php } ?> |
| 145 | 145 | </div> |
| 146 | 146 | <?php include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/template-name-overlay.php' ); ?> |