Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

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