From 52ff5ccb048d41d003b7e044c446c2f04a013bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BA=91?= Date: Mon, 9 Jan 2023 18:22:10 +0800 Subject: [PATCH] =?UTF-8?q?build(ci):=20=E5=AE=8C=E5=96=84=20style-fix/syn?= =?UTF-8?q?tax-check/unit-test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/HDK-Core.iml | 6 + .idea/inspectionProfiles/Project_Default.xml | 1 + .idea/php-test-framework.xml | 14 ++ .idea/php.xml | 21 +++ .php-cs-fixer.dist.php | 23 +++ composer.json | 10 +- phpstan.dist.neon | 9 + publish/common.php | 14 +- publish/languages/en/common_error.php | 10 +- publish/languages/zh_CN/common_error.php | 10 +- src/ConfigProvider.php | 2 + src/Constants/CommonErrorCode.php | 154 +++++++++--------- src/Controller/AbstractController.php | 9 +- .../Http/Header/Authentication.php | 2 +- src/Enumerations/Http/Header/Extend/SM3.php | 2 +- src/Enumerations/Http/Header/RFCs/RFC4559.php | 3 +- src/Enumerations/Http/Header/RFCs/RFC6750.php | 2 +- src/Enumerations/Http/Header/RFCs/RFC7486.php | 2 +- src/Enumerations/Http/Header/RFCs/RFC7616.php | 3 +- src/Enumerations/Http/Header/RFCs/RFC7617.php | 2 +- src/Enumerations/Http/Header/RFCs/RFC7804.php | 2 +- src/Enumerations/Http/Header/RFCs/RFC8120.php | 2 +- src/Enumerations/Http/Header/RFCs/RFC8292.php | 2 +- src/Enumerations/Http/Header/Vendor/AWS.php | 2 +- src/Exceptions/DbException.php | 2 +- src/Exceptions/Forbidden.php | 2 +- src/Exceptions/Handler/CommonHandler.php | 10 +- src/Exceptions/ThirdPartyException.php | 1 - src/Exceptions/Unauthorized.php | 6 +- src/Exceptions/ValidateException.php | 18 +- src/Middleware/ClassicCoreMiddleware.php | 24 +-- src/Middleware/CorsMiddleware.php | 10 +- src/Middleware/ExtendsMiddleware.php | 6 +- .../InternationalizationMiddleware.php | 8 +- src/Resource/ClassicResponse.php | 2 +- src/Service/Base64Wrapper.php | 4 +- src/Service/EmailService.php | 54 +++--- src/Service/ExtendService.php | 8 +- src/Service/HttpRequestService.php | 86 ---------- src/Service/OssService.php | 65 +++++--- src/Service/SmsService.php | 24 +-- src/Service/UtilsService.php | 131 +++++++-------- tests/Pest.php | 4 +- tests/Unit/Base64WrapperTest.php | 4 +- tests/Unit/EmailServiceTest.php | 4 +- 45 files changed, 392 insertions(+), 388 deletions(-) create mode 100644 .idea/php-test-framework.xml create mode 100644 .php-cs-fixer.dist.php create mode 100644 phpstan.dist.neon delete mode 100644 src/Service/HttpRequestService.php diff --git a/.idea/HDK-Core.iml b/.idea/HDK-Core.iml index 67b0141..8e68431 100644 --- a/.idea/HDK-Core.iml +++ b/.idea/HDK-Core.iml @@ -136,6 +136,12 @@ + + + + + + diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index aa8a5bb..3dcef58 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -2,5 +2,6 @@ \ No newline at end of file diff --git a/.idea/php-test-framework.xml b/.idea/php-test-framework.xml new file mode 100644 index 0000000..7c50033 --- /dev/null +++ b/.idea/php-test-framework.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml index c0eecbe..89f0f94 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -4,11 +4,20 @@