Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 420-430 (lines=11) @@
417
  /**
418
   * {@inheritdoc}
419
   */
420
  public function getExtensionPathList() {
421
    $paths = [];
422
423
    // Get enabled modules.
424
    $modules = $this->getModuleList();
425
    foreach ($modules as $module) {
426
      $paths[] = $this->drupalRoot . DIRECTORY_SEPARATOR . \drupal_get_path('module', $module);
427
    }
428
429
    return $paths;
430
  }
431
432
  /**
433
   * {@inheritdoc}

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

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