Verified Commit b7f74d4c authored by quietone's avatar quietone
Browse files

Issue #3320928 by quietone: Coding standard fixes

parent 517120ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class CommerceCustomerProfileReference extends FieldPluginBase {
   * {@inheritdoc}
   */
  public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
    $destination_field_name = isset($this->fieldNameMap[$field_name]) ? $this->fieldNameMap[$field_name] : $field_name;
    $destination_field_name = $this->fieldNameMap[$field_name] ?? $field_name;
    $process = [
      'plugin' => 'commerce_migrate_commerce_reference_revision',
      'migration' => 'commerce1_profile',
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ class CommerceLineItemReference extends FieldPluginBase {
   * {@inheritdoc}
   */
  public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
    $destination_field_name = isset($this->fieldNameMap[$field_name]) ? $this->fieldNameMap[$field_name] : $field_name;
    $destination_field_name = $this->fieldNameMap[$field_name] ?? $field_name;
    $process = [
      [
        'plugin' => 'migration_lookup',
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ class CommercePrice extends FieldPluginBase {
   * {@inheritdoc}
   */
  public function defineValueProcessPipeline(MigrationInterface $migration, $field_name, $data) {
    $destination_field_name = isset($this->fieldNameMap[$field_name]) ? $this->fieldNameMap[$field_name] : $field_name;
    $destination_field_name = $this->fieldNameMap[$field_name] ?? $field_name;
    $process = [
      'plugin' => 'commerce1_migrate_commerce_price',
      'source' => $field_name,
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ class CommerceAttributeHandlerSetting extends ProcessPluginBase {
      ('options_select' === $row->getSourceProperty('widget')['type'])) {
      $new_handler_settings['target_bundles'][] = $row->getSourceProperty('bundle');
      $settings = $row->getDestinationProperty('settings');
      $handler_settings = isset($settings['handler_settings']) ? $settings['handler_settings'] : [];
      $handler_settings = $settings['handler_settings'] ?? [];
      return array_merge($handler_settings, $new_handler_settings);
    }
    else {
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ class CommerceRefreshMode extends ProcessPluginBase {
  public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
    $new_value = NULL;
    if (is_array($value) && !empty($value)) {
      list($force, $refresh_mode) = $value;
      [$force, $refresh_mode] = $value;

      // If force is true then use the default 'always'.
      if ($force) {
Loading