46 Commits

Author SHA1 Message Date
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
John Paul E. Balandan, CPA
c3b33f5ba3
Merge pull request #4794 from jeromegamez/alias-functions
Replace alias functions with origins
2021-06-08 00:43:26 +08:00
John Paul E. Balandan, CPA
6edfdeb131
Merge pull request #4793 from jeromegamez/constants-vs-methods
Use constants instead of functions
2021-06-08 00:42:29 +08: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
5bdf3b57af
Replace alias functions with origins 2021-06-07 14:09:09 +02:00
Jérôme Gamez
68bb8a7b28
Use constants instead of functions 2021-06-07 13:44:53 +02:00
John Paul E. Balandan, CPA
b4f7e4fb61
Enable blank_line_after_opening_tag 2021-06-07 18:20:50 +08:00
John Paul E. Balandan, CPA
211f94762c
Enable blank_lines_after_namespace 2021-06-07 18:20:36 +08: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
9ad6adc2f6
Enable binary_operator_spaces 2021-06-06 23:37:32 +08:00
John Paul E. Balandan, CPA
fb5c0a9c17
Enable rules not affecting current code 2021-06-04 23:34:26 +08:00
John Paul E. Balandan, CPA
18e742b380
Enable array_indentation 2021-06-04 23:22:33 +08:00
John Paul E. Balandan, CPA
328ae4746b
Enable align_multiline_comment 2021-06-04 23:17:08 +08:00
John Paul E. Balandan, CPA
e04d17b390
Convert tabs to 4 spaces (#4771) 2021-06-04 22:51:52 +08:00
John Paul E. Balandan, CPA
ee8b8c0699
Use php-cs-fixer as coding style tool (#4770) 2021-06-04 22:10:54 +08:00
Abdul Malik Ikhsan
3e4e414326
[Rector] Remove @var from class constant by add custom Rector rule RemoveVarTagFromClassConstantRector 2021-06-02 10:47:44 +07:00
Abdul Malik Ikhsan
77d7d1bd3e
[Rector] Apply Rector: VarConstantCommentRector 2021-06-01 17:13:21 +07:00
Abdul Malik Ikhsan
7212c53243
better indentation 2021-05-22 21:22:28 +07:00
Abdul Malik Ikhsan
67d8ec3cad
another move comment 2021-05-22 21:18:47 +07:00
Abdul Malik Ikhsan
4c860dc740
apply code review 2021-05-22 21:17:01 +07:00
Abdul Malik Ikhsan
be8b803417
[Rector] Add custom Rector Rule: RemoveErrorSuppressInTryCatchStmtsRector rector rule 2021-05-22 20:53:57 +07:00
Abdul Malik Ikhsan
d5155f3b92
[Rector] Refactor UnderscoreToCamelCaseVariableNameRector with latest compatible code 2021-04-26 00:04:06 +07:00
Abdul Malik Ikhsan
70d5efed67
[Rector] Remove RemoveDefaultArgumentValueRector 2021-04-16 06:44:01 +07:00
Abdul Malik Ikhsan
35135e3fc9
[Rector] Add Comment for reason RemoveDefaultArgumentValueRector copied to utils/Rector 2021-04-16 06:30:42 +07:00
Abdul Malik Ikhsan
f3e1bf7e6d
[Rector] Copy RemoveDefaultArgumentValueRector to utils/Rector 2021-04-16 05:57:35 +07:00
Abdul Malik Ikhsan
efe5b7253b
[Rector] Fixes Custom Rector Rule CodeSample class 2021-03-31 22:48:45 +07:00
Abdul Malik Ikhsan
5084adaa07 cs fix 2021-01-31 01:03:11 +08:00
Abdul Malik Ikhsan
f412df0546 syntax update for getDefinition() -> getRuleDefinition() 2021-01-31 01:03:11 +08:00
Abdul Malik Ikhsan
ac5859dff9
rename to CheckFrameworkExceptionInstantiationViaNamedConstructorRule 2020-11-10 01:34:06 +07:00
Abdul Malik Ikhsan
b2befda09d
direct cast use variable
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
2020-11-09 23:14:13 +07:00
Abdul Malik Ikhsan
bdf2a0555f
[PHPStan] Add PHPStan rule to check FrameworkException Instantiation Via Static Call 2020-11-09 23:12:23 +07:00
MGatner
ad9fd59869
[ci skip] Fix util 2020-11-09 15:47:16 +00:00
MGatner
79062c55c7
Implement exception for fabricator failure 2020-11-08 01:01:10 +00: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
d4bfa07ec3
Update code samples 2020-10-24 17:52:34 +08:00
John Paul E. Balandan, CPA
165d415179
Enable strict param on base64_decode and array_search 2020-10-24 13:58:15 +08:00
Abdul Malik Ikhsan
82e234ede5
get position 2020-10-23 19:26:05 +07:00
Abdul Malik Ikhsan
bca6a5414a
Refactor to allow register more functions to specific position to be filled with strict parameter 2020-10-23 19:19:47 +07: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
Abdul Malik Ikhsan
d3aa71f84e
Add Custom PHPStan rule to check Use statements after license docblock 2020-10-18 15:57:35 +07:00
Abdul Malik Ikhsan
b594d9871a
update rector dependency and class reference 2020-09-29 15:46:12 +07:00
Abdul Malik Ikhsan
5e5e2fcfa9
update both parameter and @param docblock 2020-09-28 19:00:51 +07:00
Abdul Malik Ikhsan
ff41678149
cs fix 2020-09-28 19:00:50 +07:00
Abdul Malik Ikhsan
789858ee44
skip _ in first char 2020-09-28 19:00:50 +07:00