Code Duplication    Length = 5-5 lines in 2 locations

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

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

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

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