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

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