125 Commits

Author SHA1 Message Date
Tomas Votruba
e7429d96a4
make use of constant (#3875) 2020-08-02 13:17:33 +00:00
Tomas Votruba
55acb3578a
[MagicDisclosure] Add SetterOnSetterMethodCallToStandaloneAssignRector (#3860)
* [MagicDisclosure] Add MethodCallOnSetterMethodCallToStandaloneAssignRector

* merge ChainMethodCallManipulator to ChainMethodCallNodeAnalyzer for better DX

* [MagicDisclosure] Add in arg defluent

* rebase
2020-08-01 11:41:16 +00:00
dobryy
3aa2fc8727
[Order] Order properties and constants with respect of complexity and position (#3826)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-07-31 22:20:45 +02:00
TomasVotruba
fe72e003ed use constants in configs 2020-07-30 13:53:53 +02:00
TomasVotruba
cd942d5a07 fix fixture content 2020-07-28 00:02:54 +02:00
Tomas Votruba
1743aa969c
Merge pull request #3808 from rectorphp/case-class 2020-07-27 20:46:15 +02:00
TomasVotruba
8c31bd27e4 [CodeQuality] Add case class name fix 2020-07-27 20:45:41 +02:00
zingimmick
b943ba59cf Update doctrine/inflector requirement from ^1.3 to ^1.4|^2.0 2020-07-28 00:19:38 +08:00
dobryy
dd9eda12c6 Apply rule 2020-07-27 16:39:34 +02:00
TomasVotruba
99db894192 restore types 2020-07-27 10:44:51 +02:00
TomasVotruba
c28a5a9746 [Celebrity] Merge to code-quality 2020-07-27 10:18:03 +02:00
TomasVotruba
0650075005 [Nette] Add ChangeControlArrayAccessToAnnotatedControlVariableRector 2020-07-26 15:54:46 +02:00
dobryy
f37cd4cac3 [Order] Apply rule 2020-07-26 15:11:41 +02:00
TomasVotruba
7ed4cb19c4 simplify config globs 2020-07-25 20:14:28 +02:00
TomasVotruba
c2c1066374 [rector] apply on rules 2020-07-19 20:52:42 +02:00
TomasVotruba
eb01322e2b [CodeQuality] Remove exception coding from JoinStringConcatRector 2020-07-19 15:30:10 +02:00
TomasVotruba
0944b75f7e correct namespace in configs 2020-07-18 11:58:17 +02:00
TomasVotruba
0c816d60f8 [config] switch rules config from YAML to PHP 2020-07-16 12:48:54 +02:00
TomasVotruba
a619753f73 improve UnusedForeachValueToArrayKeysRector to work with array foreach values 2020-07-07 22:13:09 +02:00
TomasVotruba
bdff80e972 improve docs code highlight 2020-07-07 12:15:52 +02:00
TomasVotruba
9656d25eb1 fix callable this if part of the method 2020-07-02 01:00:24 +02:00
TomasVotruba
a8a6e7bcad rename file to fileInfo 2020-06-30 01:45:05 +02:00
TomasVotruba
0cb82c2a6f apply new Naming_ 2020-06-30 00:57:38 +02:00
TomasVotruba
b3ba3c8dfa add uniontype support for CallableThisArrayToAnonymousFunctionRector 2020-06-26 12:22:55 +02:00
TomasVotruba
7f49658112 change test(string ) to test(SmartFileInfo ) in tests 2020-06-25 20:02:36 +02:00
TomasVotruba
81386042a1 highlight more README output 2020-06-21 16:49:47 +02:00
TomasVotruba
bede7b4971 add highlight 2020-06-16 17:52:39 +02:00
TomasVotruba
9922ba600b make Rector description required for dumping documentation 2020-06-16 13:47:57 +02:00
TomasVotruba
2ad9dd97e4 skip non-existing method 2020-06-10 20:50:00 +02:00
TomasVotruba
c17b38aa43 [CodeQuality] Add ArrayThisCallToThisMethodCallRector 2020-06-10 20:35:59 +02:00
TomasVotruba
c4595c7b69 update to php-parser 4.5 2020-06-03 11:39:18 +02:00
TomasVotruba
f27f50bf9c rework AbstractRunnableRectorTestCase from eval to include 2020-05-31 14:11:04 +02:00
TomasVotruba
e3463b1073 add comments constant to prevent typos 2020-05-25 17:03:48 +02:00
Guilliam Xavier
86cd497105 Fix SimplifyArraySearchRector w.r.t. "strictness" 2020-05-24 12:21:45 +02:00
TomasVotruba
0c67709fd0 [Legacy] Add FunctionToStaticMethodRector 2020-05-13 15:50:30 +02:00
TomasVotruba
84596b767f [CodeQuality] Fix SimplifyIfReturnBoolRector for else if 2020-05-12 16:30:20 +02:00
TomasVotruba
65a25fc57e fix comment preserving for SimplifyIfReturnBoolRector 2020-05-06 12:52:50 +02:00
TomasVotruba
e8ac877527 remove @todo from fixtures 2020-05-05 14:24:56 +02:00
TomasVotruba
8e51ff8ead decouple CommentCombiner 2020-05-05 14:24:56 +02:00
TomasVotruba
d539160980 make few rules silent on no change to prevent false positive reports on changed nodes 2020-05-03 13:18:59 +02:00
TomasVotruba
1bf62ac1c7 [cs] sort private methods by call order and property by complexity 2020-04-26 02:57:47 +02:00
TomasVotruba
1cd6803847 [CodeQuality] Fix CompactToVariablesRector for unknown names 2020-04-24 23:53:29 +02:00
TomasVotruba
298df2dae1 [CodeQuality] Add UnusedForeachValueToArrayKeysRector 2020-04-24 19:14:30 +02:00
TomasVotruba
8082b3a2f2 [PHP 8.0] Add str_starts_with 2020-04-23 23:06:36 +02:00
TomasVotruba
d865f69793 [DX] Add validate fixture suffix 2020-04-23 21:36:19 +02:00
TomasVotruba
5f4a2c1e3b Add changed files caching 2020-04-20 01:54:17 +02:00
TomasVotruba
0939387553 use getProperty() 2020-04-19 23:27:37 +02:00
TomasVotruba
00797bbce3 [CodeQuality] Add SplitListScalarAssignToSeparateLineRector 2020-04-19 16:20:08 +02:00
TomasVotruba
814e6a1d5c add typed property test with mixed and PHP 7.4 2020-04-16 15:44:36 +02:00
TomasVotruba
b882ce533d [CodeQuality] Make ChangeArrayPushToArrayAssignRector skip spread 2020-04-16 13:36:07 +02:00