Code Duplication    Length = 7-7 lines in 2 locations

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

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

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

@@ 433-439 (lines=7) @@
430
   *   Array keyed by permission name, with the human-readable title as the
431
   *   value.
432
   */
433
  protected function getAllPermissions() {
434
    $permissions = array();
435
    foreach (module_invoke_all('permission') as $name => $permission) {
436
      $permissions[$name] = $permission['title'];
437
    }
438
    return $permissions;
439
  }
440
441
  /**
442
   * {@inheritdoc}