This website requires JavaScript.
Explore
Help
Sign In
kor-elf
/
service-captcha
Watch
1
Star
0
Fork
0
You've already forked service-captcha
Code
Issues
Pull Requests
Packages
Projects
Releases
5
Wiki
Activity
b1c9dac3cc
service-captcha
/
app
/
ServiceResults
History
Leonid Nikitin
6dd24ac1d3
A new method 'isError' has been introduced to the ServiceResult interface and its implementation. This change was made to improve readability and logic. Now instead of checking if the result is not successful, we can directly check if it's an error using isError method. This improves the code clarity.
2023-07-06 22:31:39 +06:00
..
Api/V1
/CaptchaService
Add captcha image generation functionality.
2023-06-28 17:29:56 +06:00
ServiceResult.php
A new method 'isError' has been introduced to the ServiceResult interface and its implementation. This change was made to improve readability and logic. Now instead of checking if the result is not successful, we can directly check if it's an error using isError method. This improves the code clarity.
2023-07-06 22:31:39 +06:00
ServiceResultArray.php
Introduced ServiceResult and ServiceResultError interfaces, and respective classes with related methods. These changes were necessary to add and handle service results throughout the app. We now have a standard way to return and handle both successes and errors from our services. This leads to cleaner, clearer, and more maintainable code.
2023-06-28 14:36:51 +06:00
ServiceResultError.php
Introduced ServiceResult and ServiceResultError interfaces, and respective classes with related methods. These changes were necessary to add and handle service results throughout the app. We now have a standard way to return and handle both successes and errors from our services. This leads to cleaner, clearer, and more maintainable code.
2023-06-28 14:36:51 +06:00
ServiceResultSuccess.php
Introduced a new class ServiceResultSuccess to distinctively handle successful service responses. Changes were made in AuthService and Service base class to replace ServiceResultArray with ServiceResultSuccess for successful operations. This provides a more accurate response type and improves code readability.
2023-07-06 21:54:10 +06:00