Skip to content

Conversation

@tim-zitcha
Copy link

Changes

Adding the Self Service Profiles API endpoints to the Management API. This has been added in other language versions, but not in the PHP library.

References

Self Service Profiles

Testing

All new endpoints have 100% code coverage.

Contributor Checklist

@tim-zitcha tim-zitcha marked this pull request as ready for review June 10, 2025 04:00
@tim-zitcha tim-zitcha requested a review from a team as a code owner June 10, 2025 04:00
@tim-zitcha tim-zitcha marked this pull request as draft August 11, 2025 04:30
@tim-zitcha tim-zitcha marked this pull request as ready for review August 11, 2025 04:30
…iles

# Conflicts:
#	src/API/Management.php
#	src/Contract/API/ManagementInterface.php
@tim-zitcha tim-zitcha marked this pull request as draft October 3, 2025 02:30
@tim-zitcha tim-zitcha marked this pull request as ready for review October 3, 2025 02:30
Copy link
Contributor

@kishore7snehil kishore7snehil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kishore7snehil
Copy link
Contributor

@claude

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Claude finished @kishore7snehil's task —— View job


Code Review Progress

  • Read PR diff and understand changes
  • Read project context
  • Perform code quality review
  • Perform security review
  • Perform performance review
  • Provide inline feedback on specific issues
  • Post overall assessment

Overall Assessment

❌ This PR requires minor fixes before merging. I've identified a typo in the test file, an HTTP method case inconsistency, and a redundant null check that should be addressed to maintain code quality and consistency with the rest of the codebase.



test('revokeSsoTicket() issues an appropriate request', function(): void {
$id = uniqid();
$prfileId = uniqid();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in variable name: $prfileId should be $profileId to match the parameter name in the method signature and improve code readability.

->method('PUT')
->addPath(['self-service-profiles', $id, 'custom-text', $language, $page])
->withOptions($options)
->withBody($body ?? [])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant null coalescing operator: The $body ?? [] is unnecessary since $body has already been filtered and trimmed on line 169. After filtering, $body will be an array (empty array if null was passed). This redundant check adds confusion about the actual state of $body.

])->isString();

return $this->getHttpClient()
->method('PUT')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HTTP method case inconsistency: This method uses 'PUT' in uppercase while all other methods in the class use lowercase ('post', 'get', 'delete', 'patch'). For consistency with the rest of the codebase, this should be 'put' in lowercase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants