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

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