Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 445-455 (lines=11) @@
442
  /**
443
   * {@inheritdoc}
444
   */
445
  public function getExtensionPathList() {
446
    $paths = array();
447
448
    // Get enabled modules.
449
    $modules = $this->getModuleList();
450
    foreach ($modules as $module) {
451
      $paths[] = $this->drupalRoot . DIRECTORY_SEPARATOR . \drupal_get_path('module', $module);
452
    }
453
454
    return $paths;
455
  }
456
457
  /**
458
   * {@inheritdoc}

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

@@ 456-466 (lines=11) @@
453
  /**
454
   * {@inheritdoc}
455
   */
456
  public function getExtensionPathList() {
457
    $paths = array();
458
459
    // Get enabled modules.
460
    $modules = $this->getModuleList();
461
    foreach ($modules as $module) {
462
      $paths[] = $this->drupalRoot . DIRECTORY_SEPARATOR . \drupal_get_path('module', $module);
463
    }
464
465
    return $paths;
466
  }
467
468
  /**
469
   * {@inheritdoc}