Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 405-411 (lines=7) @@
402
   *   Array keyed by permission name, with the human-readable title as the
403
   *   value.
404
   */
405
  protected function getAllPermissions() {
406
    $permissions = array();
407
    foreach (module_invoke_all('permission') as $name => $permission) {
408
      $permissions[$name] = $permission['title'];
409
    }
410
    return $permissions;
411
  }
412
413
  /**
414
   * {@inheritdoc}

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

@@ 493-499 (lines=7) @@
490
   *   Array keyed by permission name, with the human-readable title as the
491
   *   value.
492
   */
493
  protected function getAllPermissions() {
494
    $permissions = array();
495
    foreach (module_invoke_all('permission') as $name => $permission) {
496
      $permissions[$name] = $permission['title'];
497
    }
498
    return $permissions;
499
  }
500
501
  /**
502
   * {@inheritdoc}