76 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
neznaika0
708fb6d70a
refactor: Fix phpstan always true (#9367) 2025-01-10 11:29:32 +08:00
John Paul E. Balandan, CPA
c7548a3771
Merge branch 'develop' into 4.6 2024-12-29 00:21:53 +08:00
Abdul Malik Ikhsan
ee4ee987b1
refactor: enable instanceof and strictBooleans rector set (#9339)
* refactor: enable instanceof and strictBooleans rector set

* refactor: bump to rector 2.0.4

* refactor: clean condition check

* refactor: revert ThirdParty change

* refactor: re-run phpstan baseline

* refactor: fix never empty array on Image

* refactor: avoid repetitive call pg_last_error()

* refactor: pg_last_error() always returns string

* refactor: use return empty string on pg_last_error() got empty "0"

* refactor: various compare !== 1 on preg_match()

* refactor: use falsy check on getenv()

* refactor: more !== 1 compare on preg_match()

* refactor: use empty string check on guessExtension

* refactor: run cs fix

* refactor: more !== 1 compare on preg_match()

* use direct result of pg_last_error()

* refactor: use str_contains() over strpos on Forge

* refactor: fix unused variable

* refactor: check empty string on ResponseTrait

* refactor: more preg_match() and empty string only check

* refactor: compare to 0 on preg_match_all()

* refactor: re-run rector

* refactor: preg_match_all() likely less to return false
2024-12-28 23:16:32 +08:00
John Paul E. Balandan, CPA
bd5945df9b
Merge branch 'develop' into 4.6 2024-12-19 16:39:09 +08:00
Andi Fahruddin Akas
17f7a9d8b9
docs: phpdoc incorrect explanation regarding variable naming (#9326)
* Update FileHandler.php

* Update BaseConnection.php

* Update Connection.php

* Update filesystem_helper.php

* Update Security.php

* Update SecurityInterface.php
2024-12-16 19:30:37 +08:00
kenjis
afe99687a8
refactor: use CodeIgniter\Exceptions\InvalidArgumentException 2024-05-06 19:19:27 +09:00
kenjis
e843fec493
refactor: run rector (2nd time) 2024-04-06 09:24:48 +09:00
kenjis
e78c92994f
Merge remote-tracking branch 'upstream/develop' into 4.5 2024-04-05 16:59:18 +09:00
Abdul Malik Ikhsan
0987c9ac0b
chore: [Rector] Apply ExplicitBoolCompareRector 2024-04-03 22:25:35 +07:00
kenjis
dce194b848
Merge remote-tracking branch 'upstream/develop' into 4.5 2023-12-07 12:49:32 +09:00
Cole Thorsen
80e0c9dcec
allow get_filenames to follow symlinks 2023-12-06 18:35:27 +09:00
kenjis
25ec3df976
refactor: add declare(strict_types=1) to system files 2023-11-30 16:14:48 +09:00
ping-yee
753edef10f
docs: fix some type. 2023-07-03 13:30:01 +08:00
ping-yee
6f93b8bf9c
docs:replace type mixed at all helpers class. 2023-07-03 13:30:00 +08:00
kenjis
8f1ed45f1b
feat: add $includeDir option to get_filenames() 2022-04-05 11:50:08 +09:00
kenjis
39ce053fbb
fix: directory_mirror() throws an error if destination directory exists
Fixes #5478
2021-12-22 09:08:13 +09: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
36152b39b2
Change some phpdocs to simple comments (#4945) 2021-07-18 22:13:55 +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
3b9ef14ac6
Enable other "no" rules with little impact 2021-07-03 01:31:26 +08:00
John Paul E. Balandan, CPA
a0dca3d5ba
Enable method_argument_space fixer 2021-06-17 21:24:27 +08:00
John Paul E. Balandan, CPA
6af5370fcf
Enforce ordering and trimming of phpdoc elements 2021-06-15 22:53:20 +08:00
John Paul E. Balandan, CPA
cbfe80d854
Separate and group similar phpdocs 2021-06-08 12:19:15 +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
7b37453fcc
Enable blank_line_before_statement fixer 2021-06-08 01:26:32 +08:00
John Paul E. Balandan, CPA
e04d17b390
Convert tabs to 4 spaces (#4771) 2021-06-04 22:51:52 +08:00
Jérôme Gamez
53ef356b1c
Ensure variable declarations 2021-05-25 00:21:39 +02:00
Abdul Malik Ikhsan
be8b803417
[Rector] Add custom Rector Rule: RemoveErrorSuppressInTryCatchStmtsRector rector rule 2021-05-22 20:53:57 +07:00
MGatner
e0005cb4b4
Apply review suggestions 2021-05-21 14:27:42 +00:00
MGatner
c0a7f22aa7
Add file helpers 2021-05-20 19:37:09 +00:00
Abdul Malik Ikhsan
4029a4d50c
[Rector] Re-run rector with improved InlineIfToExplicitIfRector 2021-02-21 07:39:32 +07:00
John Paul E. Balandan, CPA
81888e2545
Remove package tag 2020-10-28 19:28:07 +08:00
John Paul E. Balandan, CPA
c3dcd05e35
Use short notices for header docblock 2020-10-25 21:38:43 +08:00
John Paul E. Balandan, CPA
7dd927fbe3 Enforce consistent file-level docblock across all system files 2020-10-25 21:29:13 +08:00
John Paul E. Balandan, CPA
e739cb74be
Remove extra spaces inside parentheses 2020-10-22 22:40:00 +08:00
Abdul Malik Ikhsan
b8ad7782ab
apply rector: set auto import FQCN 2020-10-11 13:22:34 +07:00
Abdul Malik Ikhsan
0ae9103f30
apply rector: RemoveAlwaysElseRector 2020-10-03 16:26:23 +07:00
Abdul Malik Ikhsan
5e5e2fcfa9
update both parameter and @param docblock 2020-09-28 19:00:51 +07:00
Abdul Malik Ikhsan
b772c5ee79
apply rector: set local variable name to camel case 2020-09-28 19:00:49 +07:00
Abdul Malik Ikhsan
b898978879
apply phpstan level 1 2020-08-17 12:33:17 +07:00
John Paul E. Balandan, CPA
ab4ac3817a
Use Throwable in catch block of filesystem helper 2020-07-05 11:23:07 +08:00
michalsn
8c5d084e29
Use throwable 2020-06-24 17:33:11 +02:00
michalsn
24ea615d0f
Update delete_files() helper function. Fixes #3015 2020-06-24 17:15:32 +02:00
MGatner
331c284ea7
Add optional hidden toggle 2020-04-06 17:53:18 +00:00