Code Duplication    Length = 3-3 lines in 2 locations

src/Drupal/Driver/Cores/Drupal6.php 1 location

@@ 70-72 (lines=3) @@
67
    }
68
69
    // Assign authorship if none exists and `author` is passed.
70
    if (!isset($node->uid) && !empty($node->author) && ($user = user_load(array('name' => $node->author)))) {
71
      $node->uid = $user->uid;
72
    }
73
74
    // Convert properties to expected structure.
75
    $this->expandEntityProperties($node);

src/Drupal/Driver/Cores/Drupal7.php 1 location

@@ 54-56 (lines=3) @@
51
    }
52
53
    // Assign authorship if none exists and `author` is passed.
54
    if (!isset($node->uid) && !empty($node->author) && ($user = user_load_by_name($node->author))) {
55
      $node->uid = $user->uid;
56
    }
57
58
    // Convert properties to expected structure.
59
    $this->expandEntityProperties($node);