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 = [];
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

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