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

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