Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 29-33 (lines=5) @@
26
   */
27
  public function bootstrap() {
28
    // Validate, and prepare environment for Drupal bootstrap.
29
    if (!defined('DRUPAL_ROOT')) {
30
      define('DRUPAL_ROOT', $this->drupalRoot);
31
      require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
32
      $this->validateDrupalSite();
33
    }
34
35
    // Bootstrap Drupal.
36
    $current_path = getcwd();

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

@@ 22-26 (lines=5) @@
19
   */
20
  public function bootstrap() {
21
    // Validate, and prepare environment for Drupal bootstrap.
22
    if (!defined('DRUPAL_ROOT')) {
23
      define('DRUPAL_ROOT', $this->drupalRoot);
24
      require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
25
      $this->validateDrupalSite();
26
    }
27
28
    // Bootstrap Drupal.
29
    chdir(DRUPAL_ROOT);