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

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