290 Commits

Author SHA1 Message Date
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
a374f94cfc
Enable return_type_declaration fixer 2021-07-09 02:21:42 +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
a0dca3d5ba
Enable method_argument_space fixer 2021-06-17 21:24:27 +08:00
John Paul E. Balandan, CPA
fb24304d23
Define rules on unary operators 2021-06-16 23:51:33 +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
de234899aa
Sort phpdoc types alphabetically 2021-06-11 23:46:56 +08:00
John Paul E. Balandan, CPA
1ced6230f4
Class, trait and interface elements must be separated with one line 2021-06-10 23:58:59 +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
9b51c1a878
Merge pull request #4790 from paulbalandan/blank-line-before-statement
Enable `blank_line_before_statement`
2021-06-08 09:23:11 +08:00
John Paul E. Balandan, CPA
7b37453fcc
Enable blank_line_before_statement fixer 2021-06-08 01:26:32 +08:00
Jérôme Gamez
ace9df0da6
Use null coalescing operator 2021-06-07 19:00:25 +02:00
Jérôme Gamez
3e0e963cfb
Define yoda_style rule and initially apply no_yoda style 2021-06-07 17:00:10 +02:00
Jérôme Gamez
6e33e32675
Use static lambda if a binding to $this is not required. 2021-06-07 11:31:32 +02:00
John Paul E. Balandan, CPA
e04d17b390
Convert tabs to 4 spaces (#4771) 2021-06-04 22:51:52 +08:00
Abdul Malik Ikhsan
ed5aa8c814
[Rector] Apply Rector : ListToArrayDestructRector 2021-05-26 13:29:51 +07:00
Jérôme Gamez
7b80ba62a2
Remove unused imports 2021-05-24 03:35:11 +02:00
Abdul Malik Ikhsan
a4b95a9c52
[Test] Use @codeCoverageIgnore for deprecated class/method 2021-04-29 18:46:24 +07:00
MGatner
7cff0b8401
Restore and deprecate FeatureTestCase 2021-04-05 00:15:09 +00:00
Abdul Malik Ikhsan
1eb86d89ad
add require_once __DIR__ . /system/Test/bootstrap.php; outside rector config 2021-03-23 17:22:16 +07:00
MGatner
218986b811
Supply default verb 2021-03-16 14:51:16 +00:00
Andrey Pyzhikov
2106f68395
Changes: UG, Tests, Checking an array with routes for emptiness. 2021-03-16 05:26:27 +08:00
Andrey Pyzhikov
d4894ee6e2
Changes based on review 2021-03-16 05:26:27 +08:00
Andrey Pyzhikov
2513f06f43
Added casting to integer and absolute value 2021-03-16 05:26:26 +08:00
Andrey Pyzhikov
6790568fac
Routes. Option to lower route priority 2021-03-16 05:26:09 +08:00
sneakyimp
3fd3863dd2
Updated Router to properly translate URI dashes that map to controller subdirs
* updated Router to properly translate uri dashes that map to controller subdirectories. fix issue #4294

* changed Router::validateRequest to Router::scanControllers, added isValidSegment, tweaks to enforce PSR4 compliance in directory/namespace segments

* PHPCBF cleanup

* added numerous dash tests, etc. to RouterTest

* Router fixes: fix errant return true in setDirectory, fix (bool) cast in isValidSegment, add back deprecated validateRequest function, add RouterTest methods for better code coverage

* fixed broken assertions in RouterTest::testRouterPriorDirectory

* added space after boolean cast as requested by paulbalandan
2021-03-09 23:55:31 +08:00
Abdul Malik Ikhsan
b7fbac3291
[Rector] Apply Rector: CombineIfRector 2021-02-05 16:07:12 +07:00
MGatner
b4cd2dbe32
Backfill misplaced mandatory arguments 2020-12-21 18:35:04 +00:00
John Paul E. Balandan, CPA
3251999bd7
Merge pull request #3916 from francis94c/no-prefix-route-grouping
Group routes without a prefix.
2020-11-26 13:28:00 +08:00
Francis Ilechukwu
25dd18951a
Update function comment.
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
2020-11-25 03:47:51 +01:00
Francis Ilechukwu
6851ed43b3
Remove nullable string typehint. 2020-11-23 21:28:38 +01:00
Francis Ilechukwu
291548a068
No Prefix Route Grouping. 2020-11-23 05:43:35 +01:00
John Paul E. Balandan, CPA
32978d2598
Fix whitespaces for system/ 2020-11-19 01:25:50 +08:00
John Paul E. Balandan, CPA
f118374b04 Remove superfluous interface definition in classes 2020-11-16 00:35:59 +08:00
Abdul Malik Ikhsan
b36de3e2f8
add forControllerNotFound() and forInvalidRoute() static method to RouterException 2020-11-09 23:12:23 +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
MGatner
c623121d0f
Merge pull request #3803 from paulbalandan/elseif
Use elseif instead of else if
2020-10-24 08:07:21 -04:00
John Paul E. Balandan, CPA
165d415179
Enable strict param on base64_decode and array_search 2020-10-24 13:58:15 +08:00
John Paul E. Balandan, CPA
b896fd4349 Use elseif instead of else if 2020-10-24 13:11:02 +08:00
Abdul Malik Ikhsan
a6c162f8ad
Add new Custom Rector Rule to Pass true to 3rd parameter of in_array when no value provided 2020-10-23 16:00:30 +07:00
John Paul E. Balandan, CPA
e739cb74be
Remove extra spaces inside parentheses 2020-10-22 22:40:00 +08:00
MGatner
0616d6233c
Merge pull request #3751 from michalsn/fix/routesOptions
Fix routes options to be recognizable via used HTTP request method
2020-10-11 08:36:02 -04:00