106 Commits

Author SHA1 Message Date
John Paul E. Balandan, CPA
797d37751a
Merge branch 'develop' into 4.6 2025-01-13 11:15:24 +08:00
John Paul E. Balandan, CPA
c3ac0f9483
chore: add more trailing commas in more places (#9395)
* Apply to parameters

* Apply to array destructuring

* Apply to match

* Apply for arguments
2025-01-13 11:03:02 +08:00
kenjis
76593b06d9
refactor: remove deprecated failValidationError() 2024-04-16 11:18:52 +09:00
kenjis
3880337c93
refactor: use service() in framework code 2024-03-04 17:45:22 +09:00
kenjis
99a9148b0a
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	psalm-baseline.xml
	system/Router/AutoRouterImproved.php
	system/Router/Router.php
2024-02-26 09:42:51 +09:00
kenjis
e1df9f5bcd
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	system/Router/AutoRouterImproved.php
	system/Router/Router.php
2024-02-26 06:59:33 +09:00
John Paul E. Balandan, CPA
06353a4037
style: Enable phpdoc_list_type fixer 2024-02-26 00:19:02 +08:00
John Paul E. Balandan, CPA
609be527ce
style: enable phpdoc_array_type (#8580) 2024-02-25 22:58:47 +08:00
kenjis
2d2318b239
refactor: use ternary operator 2024-02-04 11:02:36 +09:00
kenjis
61a4694d79
fix: ResponseTrait can't return string data as JSON 2024-02-04 11:02:36 +09:00
kenjis
e273b5ad89
refactor: first check mime
and will handle string data as JSON.
2024-02-04 11:02:35 +09:00
kenjis
9a77d28cf9
fix: type error
PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
2024-02-04 11:02:33 +09:00
kenjis
73fe7fa7b2
docs: improve PHPDoc comments 2024-02-04 11:02:33 +09:00
kenjis
b2534a16d8
Merge remote-tracking branch 'origin/develop' into 4.5
Conflicts:
	phpstan-baseline.php
	system/BaseModel.php
	system/CodeIgniter.php
	system/Model.php
	system/Test/FeatureTestCase.php
	system/Test/TestResponse.php
2023-12-28 19:57:49 +09:00
kenjis
d510a42d68
refactor: replace empty() 2023-12-26 07:24:04 +09:00
kenjis
ed4fce13ab
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	phpstan-baseline.php
	rector.php
	system/Database/BaseBuilder.php
	system/Honeypot/Honeypot.php
	system/Router/RouteCollection.php
	system/Test/FeatureTestCase.php
	system/Test/FeatureTestTrait.php
	system/Validation/FormatRules.php
2023-12-22 07:07:52 +09:00
kenjis
2718024906
fix: remove unneeded conditions 2023-12-21 09:46:51 +09:00
kenjis
d258659947
refactor: apply DisallowedEmptyRuleFixerRector 2023-12-21 09:46:49 +09:00
kenjis
25ec3df976
refactor: add declare(strict_types=1) to system files 2023-11-30 16:14:48 +09:00
kenjis
31f82f91ea
docs: remove incorrect @property
@property is used for magic properties.
See https://docs.phpdoc.org/3.0/guide/references/phpdoc/tags/property.html#property-property-read-property-write
2023-05-12 10:44:28 +09:00
kenjis
de96bb0441
docs: fix @property type 2023-04-13 10:33:19 +09:00
Angga Ari Wijaya
5f6fb6e5fb
fix: respondNoContent() returns Kint script in development mode 2023-03-14 11:00:14 +07:00
kenjis
8e795334c1
Merge remote-tracking branch 'upstream/develop' into 4.3
Conflicts:
	user_guide_src/source/tutorial/create_news_items/004.php
	user_guide_src/source/tutorial/news_section/008.php
	user_guide_src/source/tutorial/static_pages/004.php
2022-12-09 09:10:03 +09:00
kenjis
8718696d2f
docs: fix typo 2022-12-08 13:54:46 +09:00
kenjis
7379b67b26
docs: replace Response with ResponseInterface in doc comments 2022-10-08 18:56:49 +09:00
kenjis
c2657f6a45
docs: replace Response with ResponseInterface in doc comments 2022-10-08 18:56:48 +09:00
kenjis
680945dc7f
fix: incorrect declared types 2022-10-08 18:56:48 +09:00
Denny Septian Panggabean
2b3b5e5786
docs: replace type API\ResponseTrait 2022-10-02 12:28:18 +07:00
John Paul E. Balandan, CPA
2a0c62f84d
Enable single_line_comment_spacing 2022-09-04 23:10:58 +08:00
kenjis
f964650c46
style: break long line 2022-06-26 18:19:57 +09:00
kenjis
9d48b1f885
refactor: if conditions 2022-06-26 18:19:56 +09:00
kenjis
b79a77d5d2
fix: when running on CLI, two Request objects were used in the system
CodeIgniter created CLIRequest, but some classes call Services::request()
that returned IncommingRequest.
2022-06-26 18:19:56 +09:00
kenjis
112c111d63
docs: fix @var 2022-05-31 12:31:44 +09:00
kenjis
7c99acf7c8 docs: fix @return type 2022-01-21 12:40:22 +09:00
kenjis
df19be9795 fix: all methods in ResponseTrait should be protected
Public methods can be accessible via HTTP.
2022-01-21 12:40:16 +09:00
John Paul E. Balandan, CPA
ea6469b852
Manual cleanup of comments and docblocks 2021-07-28 23:26:26 +08:00
John Paul E. Balandan, CPA
b7ec33cd56
Remove superfluous phpdoc tags (#4941) 2021-07-24 19:30:51 +08:00
John Paul E. Balandan, CPA
0ee2b2f922
Add file-level headers 2021-07-19 23:04:56 +08:00
John Paul E. Balandan, CPA
a6cfb8c1e6
Remove useless code separator comments (#4946) 2021-07-19 21:08:51 +08:00
John Paul E. Balandan, CPA
a4fe347638
Add ? to nullable typehints 2021-07-09 23:13:08 +08:00
John Paul E. Balandan, CPA
1dc72c1d65
Convert is_null to null === and fix phpstan errors 2021-07-09 00:08:00 +08:00
John Paul E. Balandan, CPA
de234899aa
Sort phpdoc types alphabetically 2021-06-11 23:46:56 +08:00
John Paul E. Balandan, CPA
2b78883c06
Align phpdocs 2021-06-08 12:11:23 +08:00
John Paul E. Balandan, CPA
4129b40cb6
Use short forms of param and return types 2021-06-08 11:46:56 +08:00
John Paul E. Balandan, CPA
d030096732
Enable braces 2021-06-08 10:15:25 +08:00
John Paul E. Balandan, CPA
e04d17b390
Convert tabs to 4 spaces (#4771) 2021-06-04 22:51:52 +08:00
Derek
3af7080d80
Deprecated ResponseTrait::failValidationError and adjusted the signature of ResponseTrait::failValidationErrors so it can take a string as well. 2021-05-07 20:40:51 -06:00
Derek
3627e647f2
Created a new ResponseTrait::failValidationErrors() method to handle an array of errors instead of changing the signature for failValidationError. 2021-04-24 14:56:10 -06:00
Derek
5079736bdc
Adjusted the ResponseTrait::failValidationError so it can take an array of validation errors 2021-04-23 21:25:51 -06:00
Derek
20351c06c1
Fixed formatting to one line. 2020-11-17 18:00:16 -07:00