Code Duplication    Length = 11-11 lines in 2 locations

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

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

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

@@ 510-520 (lines=11) @@
507
  /**
508
   * {@inheritdoc}
509
   */
510
  public function getExtensionPathList() {
511
    $paths = array();
512
513
    // Get enabled modules.
514
    $modules = $this->getModuleList();
515
    foreach ($modules as $module) {
516
      $paths[] = $this->drupalRoot . DIRECTORY_SEPARATOR . \drupal_get_path('module', $module);
517
    }
518
519
    return $paths;
520
  }
521
522
  /**
523
   * {@inheritdoc}