From f6427edd040e2b548e8f9b5e0e28f640a5a33430 Mon Sep 17 00:00:00 2001 From: vedanshujain Date: Mon, 18 Apr 2022 14:32:42 +0530 Subject: [PATCH] Applied coding standards. --- .../WPPostMetaToOrderMetaMigrator.php | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/WPPostMetaToOrderMetaMigrator.php b/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/WPPostMetaToOrderMetaMigrator.php index ec464f06ca2..e8dd2a55ecd 100644 --- a/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/WPPostMetaToOrderMetaMigrator.php +++ b/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/WPPostMetaToOrderMetaMigrator.php @@ -1,11 +1,29 @@ excluded_columns = $excluded_columns; parent::__construct(); @@ -34,7 +52,7 @@ class WPPostMetaToOrderMetaMigrator extends MetaToMetaTableMigrator { 'meta_key_column' => 'meta_key', 'meta_value_column' => 'meta_value', ), - 'entity' => array( + 'entity' => array( 'table_name' => $this->table_names['orders'], 'source_id_column' => 'post_id', 'id_column' => 'id', @@ -42,13 +60,13 @@ class WPPostMetaToOrderMetaMigrator extends MetaToMetaTableMigrator { 'excluded_keys' => $this->excluded_columns, ), 'destination' => array( - 'meta' => array( + 'meta' => array( 'table_name' => $this->table_names['meta'], 'entity_id_column' => 'order_id', 'meta_key_column' => 'meta_key', 'meta_value_column' => 'meta_value', 'entity_id_type' => 'int', - 'meta_id_column' => 'id' + 'meta_id_column' => 'id', ), ), );