Code Duplication    Length = 6-8 lines in 2 locations

src/Drupal/Driver/Cores/Drupal6.php 2 locations

@@ 143-148 (lines=6) @@
140
  /**
141
   * {@inheritdoc}
142
   */
143
  public function userDelete(\stdClass $user) {
144
    $current_path = getcwd();
145
    chdir(DRUPAL_ROOT);
146
    user_delete(array(), $user->uid);
147
    chdir($current_path);
148
  }
149
150
  /**
151
   * {@inheritdoc}
@@ 153-160 (lines=8) @@
150
  /**
151
   * {@inheritdoc}
152
   */
153
  public function userDeleteMultiple(array $uids) {
154
    $current_path = getcwd();
155
    chdir(DRUPAL_ROOT);
156
    foreach ($uids as $uid) {
157
      user_delete(array(), $uid);
158
    }
159
    chdir($current_path);
160
  }
161
162
  /**
163
   * {@inheritdoc}