diff -u b/modules/commerce/src/Plugin/migrate/process/d7/CommerceOrderStateDefault.php b/modules/commerce/src/Plugin/migrate/process/d7/CommerceOrderStateDefault.php --- b/modules/commerce/src/Plugin/migrate/process/d7/CommerceOrderStateDefault.php +++ b/modules/commerce/src/Plugin/migrate/process/d7/CommerceOrderStateDefault.php @@ -15,7 +15,7 @@ * Provides the mapping to be used in the migration process. * * The array keys (draft, canceled, completed) are the local states, every - * array element is the one we will match agains. To provide your own mapping + * array element is the one we will match again. To provide your own mapping * you can extend CommerceOrderStateDefault and implement the getMapping() * method. * diff -u b/modules/commerce/src/Plugin/migrate/process/d7/CommerceOrderStateValidation.php b/modules/commerce/src/Plugin/migrate/process/d7/CommerceOrderStateValidation.php --- b/modules/commerce/src/Plugin/migrate/process/d7/CommerceOrderStateValidation.php +++ b/modules/commerce/src/Plugin/migrate/process/d7/CommerceOrderStateValidation.php @@ -15,7 +15,7 @@ * Provides the mapping to be used in the migration process. * * The array keys (draft, canceled, completed) are the local states, every - * array element is the one we will match agains. To provide your own mapping + * array element is the one we will match again. To provide your own mapping * you can extend CommerceOrderStateDefault and implement the getMapping() * method. * diff -u b/modules/commerce/src/Plugin/migrate/process/d7/CommercePrice.php b/modules/commerce/src/Plugin/migrate/process/d7/CommercePrice.php --- b/modules/commerce/src/Plugin/migrate/process/d7/CommercePrice.php +++ b/modules/commerce/src/Plugin/migrate/process/d7/CommercePrice.php @@ -21,7 +21,7 @@ public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) { /** @var \Drupal\commerce_price\Entity\CurrencyInterface $currency */ $currency = \Drupal::service('commerce_price.currency_importer')->import($value['currency_code']); - // The old value was stored in the minor unit, divite it to get the decimal. + // The old value was stored in the minor unit, divide it to get the decimal. $new_value = [ 'number' => bcdiv($value['amount'], '100', $currency->getFractionDigits()), 'currency_code' => $value['currency_code'], diff -u b/modules/commerce/src/Plugin/migrate/source/d7/LineItem.php b/modules/commerce/src/Plugin/migrate/source/d7/LineItem.php --- b/modules/commerce/src/Plugin/migrate/source/d7/LineItem.php +++ b/modules/commerce/src/Plugin/migrate/source/d7/LineItem.php @@ -33,7 +33,7 @@ } /** - * @inheritDoc + * {@inheritdoc} */ public function getIds() { $ids['line_item_id']['type'] = 'integer'; @@ -43,7 +43,7 @@ } /** - * @inheritDoc + * {@inheritdoc} */ public function query() { $query = $this->select('commerce_line_item', 'li') @@ -53,7 +53,7 @@ } /** - * @inheritDoc + * {@inheritdoc} */ public function prepareRow(Row $row) { $order_item_type = OrderItemType::load($row->getSourceProperty('type')); diff -u b/modules/commerce/src/Plugin/migrate/source/d7/PaymentTransaction.php b/modules/commerce/src/Plugin/migrate/source/d7/PaymentTransaction.php --- b/modules/commerce/src/Plugin/migrate/source/d7/PaymentTransaction.php +++ b/modules/commerce/src/Plugin/migrate/source/d7/PaymentTransaction.php @@ -16,7 +16,7 @@ class PaymentTransaction extends FieldableEntity { /** - * @inheritDoc + * {@inheritdoc} */ public function fields() { return [ @@ -41,7 +41,7 @@ } /** - * @inheritDoc + * {@inheritdoc} */ public function getIds() { $ids['transaction_id']['type'] = 'integer'; diff -u b/modules/commerce/src/Plugin/migrate/source/d7/ProductDisplayType.php b/modules/commerce/src/Plugin/migrate/source/d7/ProductDisplayType.php --- b/modules/commerce/src/Plugin/migrate/source/d7/ProductDisplayType.php +++ b/modules/commerce/src/Plugin/migrate/source/d7/ProductDisplayType.php @@ -32,7 +32,7 @@ } /** - * @inheritDoc + * {@inheritdoc} */ public function getIds() { $ids['type']['type'] = 'string'; @@ -85,8 +85,18 @@ * * This function can be overwritten by custom migration classes if you need * different logic for determining the target variation type. + * + * @param \Drupal\migrate\Row $row + * The current row. + * @param array $product_variation_types + * An array of product variation types. + * + * @return bool|string + * The product variation type matching the product, of FALSE if not found. + * + * @throws \Drupal\migrate\MigrateException */ - public function resolveTargetVariationType(Row $row, $product_variation_types) { + public function resolveTargetVariationType(Row $row, array $product_variation_types) { $product_variation_type = FALSE; if ($this->configuration['variations']['matching']) { diff -u b/modules/commerce/src/Plugin/migrate/source/d7/ProductType.php b/modules/commerce/src/Plugin/migrate/source/d7/ProductType.php --- b/modules/commerce/src/Plugin/migrate/source/d7/ProductType.php +++ b/modules/commerce/src/Plugin/migrate/source/d7/ProductType.php @@ -16,7 +16,7 @@ class ProductType extends DrupalSqlBase { /** - * @inheritDoc + * {@inheritdoc} */ public function fields() { return [ @@ -29,7 +29,7 @@ } /** - * @inheritDoc + * {@inheritdoc} */ public function getIds() { $ids['type']['type'] = 'string'; @@ -54,7 +54,7 @@ } /** - * @inheritDoc + * {@inheritdoc} */ public function query() { $query = $this->select('commerce_product_type', 'pt') diff -u b/modules/commerce/src/Plugin/migrate/source/d7/ProductVariations.php b/modules/commerce/src/Plugin/migrate/source/d7/ProductVariations.php --- b/modules/commerce/src/Plugin/migrate/source/d7/ProductVariations.php +++ b/modules/commerce/src/Plugin/migrate/source/d7/ProductVariations.php @@ -31,7 +31,7 @@ } /** - * @inheritDoc + * {@inheritdoc} */ public function getIds() { $ids['product_id']['type'] = 'integer'; @@ -41,7 +41,7 @@ } /** - * @inheritDoc + * {@inheritdoc} */ public function query() { $query = $this->select('commerce_product', 'p') @@ -51,7 +51,7 @@ } /** - * @inheritDoc + * {@inheritdoc} */ public function prepareRow(Row $row) { foreach (array_keys($this->getFields('commerce_product', $row->getSourceProperty('type'))) as $field) { diff -u b/modules/commerce/tests/src/Kernel/Migrate/d7/OrderItemTest.php b/modules/commerce/tests/src/Kernel/Migrate/d7/OrderItemTest.php --- b/modules/commerce/tests/src/Kernel/Migrate/d7/OrderItemTest.php +++ b/modules/commerce/tests/src/Kernel/Migrate/d7/OrderItemTest.php @@ -22,7 +22,7 @@ ]; /** - * @inheritDoc + * {@inheritdoc} */ protected function setUp() { parent::setUp(); diff -u b/modules/commerce/tests/src/Kernel/Migrate/d7/ProductTest.php b/modules/commerce/tests/src/Kernel/Migrate/d7/ProductTest.php --- b/modules/commerce/tests/src/Kernel/Migrate/d7/ProductTest.php +++ b/modules/commerce/tests/src/Kernel/Migrate/d7/ProductTest.php @@ -22,7 +22,7 @@ ]; /** - * @inheritDoc + * {@inheritdoc} */ protected function setUp() { parent::setUp(); diff -u b/modules/commerce/tests/src/Kernel/Migrate/d7/ProfileBillingTest.php b/modules/commerce/tests/src/Kernel/Migrate/d7/ProfileBillingTest.php --- b/modules/commerce/tests/src/Kernel/Migrate/d7/ProfileBillingTest.php +++ b/modules/commerce/tests/src/Kernel/Migrate/d7/ProfileBillingTest.php @@ -12,7 +12,7 @@ class ProfileBillingTest extends Commerce1TestBase { /** - * @inheritDoc + * {@inheritdoc} */ protected function setUp() { parent::setUp();