Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 516-522 (lines=7) @@
513
   *   Array keyed by permission name, with the human-readable title as the
514
   *   value.
515
   */
516
  protected function getAllPermissions() {
517
    $permissions = array();
518
    foreach (module_invoke_all('permission') as $name => $permission) {
519
      $permissions[$name] = $permission['title'];
520
    }
521
    return $permissions;
522
  }
523
524
  /**
525
   * {@inheritdoc}

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}