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 = array();
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

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