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

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