| @@ -112,10 +112,10 @@ | ||
| 112 | 112 | if ( is_admin() ) { |
| 113 | 113 | if ( isset( $tableform_item->item_type, $this->form_items[ $i ] ) ) { |
| 114 | 114 | // Process images |
| 115 | 115 | if ( 'image' === $tableform_item->item_type ) { |
| 116 | - $class_path = explode( '\\', get_class( $this->form_items[ $i ] ) );//phpcs:ignore - 8.1 proof | |
| 117 | - $class_name = array_pop( $class_path );//phpcs:ignore - 8.1 proof | |
| 116 | + $class_path = explode( '\\', get_class( $this->form_items[ $i ] ) ); // phpcs:ignore -- 8.1 proof | |
| 117 | + $class_name = array_pop( $class_path ); // phpcs:ignore -- 8.1 proof | |
| 118 | 118 | if ( 'WPDA_Simple_Form_Item_Image' !== $class_name ) { |
| 119 | 119 | $this->form_items[ $i ] = new WPDA_Simple_Form_Item_Image( $this->form_items[ $i ] ); |
| 120 | 120 | } |
| 121 | 121 | } |
| @@ -121,10 +121,10 @@ | ||
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | // Process attachments |
| 124 | 124 | if ( 'attachment' === $tableform_item->item_type ) { |
| 125 | - $class_path = explode( '\\', get_class( $this->form_items[ $i ] ) );//phpcs:ignore - 8.1 proof | |
| 126 | - $class_name = array_pop( $class_path );//phpcs:ignore - 8.1 proof | |
| 125 | + $class_path = explode( '\\', get_class( $this->form_items[ $i ] ) ); // phpcs:ignore -- 8.1 proof | |
| 126 | + $class_name = array_pop( $class_path ); // phpcs:ignore -- 8.1 proof | |
| 127 | 127 | if ( 'WPDA_Simple_Form_Item_Media' !== $class_name ) { |
| 128 | 128 | $this->form_items[ $i ] = new WPDA_Simple_Form_Item_Media( $this->form_items[ $i ] ); |
| 129 | 129 | } |
| 130 | 130 | } |
| @@ -133,9 +133,9 @@ | ||
| 133 | 133 | |
| 134 | 134 | $i ++; |
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | - if ( count( $lookup_column_name ) > 0 ) {//phpcs:ignore - 8.1 proof | |
| 137 | + if ( count( $lookup_column_name ) > 0 ) { // phpcs:ignore -- 8.1 proof | |
| 138 | 138 | // Process lookup items and create listboxes. |
| 139 | 139 | $lookups = array(); |
| 140 | 140 | $autocompletes = array(); |
| 141 | 141 | $relationships = WPDP_Project_Design_Table_Model::get_column_options( $this->table_name, 'relationships', $this->setname, $this->schema_name ); |
| @@ -146,9 +146,9 @@ | ||
| 146 | 146 | if ( isset( $relationship->relation_type ) ) { |
| 147 | 147 | if ( 'lookup' === $relationship->relation_type ) { |
| 148 | 148 | array_push( $lookups, $relationship ); |
| 149 | 149 | } elseif ( 'autocomplete' === $relationship->relation_type ) { |
| 150 | - array_push( $autocompletes, $relationship );//phpcs:ignore - 8.1 proof | |
| 150 | + array_push( $autocompletes, $relationship ); // phpcs:ignore -- 8.1 proof | |
| 151 | 151 | } |
| 152 | 152 | } |
| 153 | 153 | } |
| 154 | 154 | } |
| @@ -182,9 +182,9 @@ | ||
| 182 | 182 | if ( isset( $lookup_column_name[ $source_column_name ] ) ) { |
| 183 | 183 | $wpdadb = WPDADB::get_db_connection( $target_schema_name ); |
| 184 | 184 | if ( null !== $wpdadb ) { |
| 185 | 185 | $where = ''; |
| 186 | - for ( $j = 1; $j < count( $lookup->source_column_name ); $j++ ) {//phpcs:ignore - 8.1 proof | |
| 186 | + for ( $j = 1; $j < count( $lookup->source_column_name ); $j++ ) { // phpcs:ignore -- 8.1 proof | |
| 187 | 187 | $item_index = $this->get_item_index( $lookup->source_column_name[ $j ] ); |
| 188 | 188 | if ( false !== $item_index ) { |
| 189 | 189 | $item_value = $this->parent['parent_key_value'][ $this->parent['parent_key'][ $j - 1 ] ]; |
| 190 | 190 | if ( 'number' == WPDA::get_type( $this->form_items[ $item_index ]->get_data_type() ) ) { |
| @@ -220,10 +220,10 @@ | ||
| 220 | 220 | if ( isset( $relationships['table'] ) ) { |
| 221 | 221 | foreach ( $relationships['table'] as $table_column ) { |
| 222 | 222 | if ( isset( $table_column->column_name ) && isset( $table_column->mandatory ) ) { |
| 223 | 223 | if ( $table_column->column_name === $source_column_name && 'No' === $table_column->mandatory ) { |
| 224 | - array_push( $lov_values, '' );//phpcs:ignore - 8.1 proof | |
| 225 | - array_push( $lov_options, '' );//phpcs:ignore - 8.1 proof | |
| 224 | + array_push( $lov_values, '' ); // phpcs:ignore -- 8.1 proof | |
| 225 | + array_push( $lov_options, '' ); // phpcs:ignore -- 8.1 proof | |
| 226 | 226 | } |
| 227 | 227 | } |
| 228 | 228 | } |
| 229 | 229 | } |
| @@ -243,10 +243,10 @@ | ||
| 243 | 243 | $lov_value = $row[ $lookup_column_name[ $source_column_name ] ]; |
| 244 | 244 | } else { |
| 245 | 245 | $lov_value = $row[ $lookup_column_name[ $source_column_name ] ] . ' (' . $row[ $target_column_name ] . ')'; |
| 246 | 246 | } |
| 247 | - array_push( $lov_values, $lov_value );//phpcs:ignore - 8.1 proof | |
| 248 | - array_push( $lov_options, $row[ $target_column_name ] );//phpcs:ignore - 8.1 proof | |
| 247 | + array_push( $lov_values, $lov_value ); // phpcs:ignore -- 8.1 proof | |
| 248 | + array_push( $lov_options, $row[ $target_column_name ] ); // phpcs:ignore -- 8.1 proof | |
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | $item->set_enum( $lov_values ); |
| 252 | 252 | $item->set_enum_options( $lov_options ); |