original_string: private function getAllMappedPermissions(): array
      {
          $mappedPermissions = [];
          foreach (Craft::$app->userPermissions->getAllPermissions() as $permissions) {
              $mappedPermissions = array_merge($mappedPermissions, $this->getMappedPermissions($permissions));
          }
  
          return $mappedPermissions;
      }
code: private function getAllMappedPermissions(): array
      {
          $mappedPermissions = [];
          foreach (Craft::$app->userPermissions->getAllPermissions() as $permissions) {
              $mappedPermissions = array_merge($mappedPermissions, $this->getMappedPermissions($permissions));
          }
  
          return $mappedPermissions;
      }
code_tokens: private function getAllMappedPermissions ( ) : array { $ mappedPermissions = [ ] ; foreach ( Craft :: $ app -> userPermissions -> getAllPermissions ( ) as $ permissions ) { $ mappedPermissions = array_merge ( $ mappedPermissions , $ this -> getMappedPermissions ( $ permissions ) ) ; } return $ mappedPermissions ; }
docstring: Get a mapping of all permissions from lowercase to camelcase
  savePermissions only accepts camelcase.
  
  @return array
docstring_tokens: Get a mapping of all permissions from lowercase to camelcase savePermissions only accepts camelcase .