Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 426-432 (lines=7) @@
423
   *   Array keyed by permission name, with the human-readable title as the
424
   *   value.
425
   */
426
  protected function getAllPermissions() {
427
    $permissions = array();
428
    foreach (module_invoke_all('permission') as $name => $permission) {
429
      $permissions[$name] = $permission['title'];
430
    }
431
    return $permissions;
432
  }
433
434
  /**
435
   * {@inheritdoc}

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

@@ 526-532 (lines=7) @@
523
   *   Array keyed by permission name, with the human-readable title as the
524
   *   value.
525
   */
526
  protected function getAllPermissions() {
527
    $permissions = array();
528
    foreach (module_invoke_all('permission') as $name => $permission) {
529
      $permissions[$name] = $permission['title'];
530
    }
531
    return $permissions;
532
  }
533
534
  /**
535
   * {@inheritdoc}