Code Duplication    Length = 7-7 lines in 2 locations

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

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

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

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