Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FZ-121 pint fixes, user storage #180

Merged
merged 3 commits into from
Dec 2, 2023
Merged

FZ-121 pint fixes, user storage #180

merged 3 commits into from
Dec 2, 2023

Conversation

mblajek
Copy link
Owner

@mblajek mblajek commented Dec 2, 2023

  • zmiana metod ->throw, żeby wiedziały jaką klasę exception rzucają
  • poprawki wg laravel/pint
  • dodanie endpointów dla user storage

{
return new JsonResponse(
($key === '')
? json_encode(array_keys($storage))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ten ternary powinien być w get poniżej i wołać getStorageKey albo getKeys. A już getStorageKey to powinno robić to co nazwa mówi.

Zresztą pusty string jest poprawnym kluczem JSONowym, no ale i tak nie będzie możliwości zapisania pod nim, no trudno.

@mblajek mblajek merged commit d279ae5 into develop Dec 2, 2023
@TPReal TPReal deleted the FZ-121 branch December 3, 2023 18:51
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