1953 Commits

Author SHA1 Message Date
TomasVotruba
8257181fec move most working logic to ExpressionPrepender; NodeVisitor should be only delegator 2018-01-06 19:21:26 +01:00
TomasVotruba
06b7fd9544 decouple ExpressionPrepender service 2018-01-06 19:21:26 +01:00
TomasVotruba
7cafafda16 return type resolving (wip) 2018-01-06 19:21:26 +01:00
TomasVotruba
8685bda7e4 [Contrib] drop FormSetRequiredRector as it require lot of human interaction to make it work 2018-01-06 19:21:26 +01:00
TomasVotruba
6d3b5d47fc travis: parellize for better peformance 2018-01-06 19:21:26 +01:00
TomasVotruba
fcbd0d4d6b make FileProccessor return types consistent 2018-01-06 19:21:26 +01:00
TomasVotruba
5ed00f8b8b VaraibleTypeResolver: fix empty class node for case 2018-01-06 19:21:26 +01:00
TomasVotruba
158d089954 MethodCallAnalyzer: use nodeTypeResolver over nodeTypeCallerTypeResolver 2018-01-06 19:21:26 +01:00
TomasVotruba
5151736a6b improve StandaloneTraverseNodeTraverser description 2018-01-06 19:21:26 +01:00
TomasVotruba
72af0e7e0b AbstractRector: decouple ExpressionPrependingNodeVisitor 2018-01-06 19:21:26 +01:00
TomasVotruba
ffe441a3ad AbstractRector: unused printer cleanup 2018-01-06 19:21:26 +01:00
TomasVotruba
ad4165e992 AbstractRector: use NodeTraverser to prepend nodes 2018-01-06 19:21:26 +01:00
TomasVotruba
fb3517de63 AbstractRector: remove preprend before, not needed 2018-01-06 19:21:26 +01:00
TomasVotruba
b152a8b4e7 simplify CompilerGenerateCodeArgumentsRector to use prependAfter 2018-01-06 19:21:26 +01:00
TomasVotruba
a38aa54e3a AbstractRector: fix node prepending for If_ statement 2018-01-06 19:21:26 +01:00
TomasVotruba
5f0510dfbf AbstractRector: report expression that were not added 2018-01-06 19:21:26 +01:00
TomasVotruba
80fc0d1bec add failing test 2018-01-06 19:21:26 +01:00
TomasVotruba
9927153c78 inline short lines 2018-01-06 19:21:26 +01:00
TomasVotruba
84a44c753e add test case for adding Expression in if condition 2018-01-06 19:21:26 +01:00
TomasVotruba
c075e24084 ProcessCommandReport - add lines around file name to make it more readable 2018-01-06 19:21:26 +01:00
TomasVotruba
50d4d25d1c wip 2018-01-06 19:21:26 +01:00
TomasVotruba
87e207055c Scoper cleanup 2018-01-06 19:21:26 +01:00
TomasVotruba
c271f50813 Scope PHPUnit test case wip 2018-01-06 19:21:26 +01:00
Tomáš Votruba
8fca502b51
Merge pull request #272 from rectorphp/phpunit-order-test
RectorOrder: add test case
2018-01-06 17:30:01 +01:00
TomasVotruba
d846136875 RectorOrder: add test case 2018-01-06 17:14:00 +01:00
Tomáš Votruba
c3b8b0f8f0
Merge pull request #271 from rectorphp/rector-order-test
[Rector] order test
2018-01-06 17:09:14 +01:00
Tomáš Votruba
4e5fe7701d
Merge pull request #270 from rectorphp/phpunit-order-test
ProcessCommand: do not sort Rectors, because order matters and is eas…
2018-01-06 17:08:31 +01:00
TomasVotruba
f7d7f0e1e6 README: add link to Rector how it works 2018-01-06 17:06:24 +01:00
TomasVotruba
6b60c1548c add rector.yml 2018-01-06 17:06:24 +01:00
TomasVotruba
3d08577d87 cleanup 2018-01-06 17:06:24 +01:00
TomasVotruba
78869f5d75 test: add original assertTrue(strpos... use case 2018-01-06 17:06:24 +01:00
TomasVotruba
bb4101d931 space 2018-01-06 17:06:24 +01:00
TomasVotruba
08c0ffea27 AssertComparisonToSpecificMethodRector: fix missing Arg_ node, caused errors on other place where Arg_ was expected 2018-01-06 17:06:24 +01:00
TomasVotruba
3578c08e1b init RectorOrderTest 2018-01-06 17:06:24 +01:00
TomasVotruba
71126c7468 ProcessCommand: do not sort Rectors, because order matters and is easier to debug if the same as the application has 2018-01-06 17:01:53 +01:00
TomasVotruba
004316767f README: remove commit lock 2018-01-06 16:52:11 +01:00
TomasVotruba
0ffee42645 README: add conflict install recommendation, ref #258 2018-01-06 16:52:11 +01:00
Tomáš Votruba
6e7297bf64
phpunit-specific-method.yml: prepare demo description, to make it easier to work with configs 2018-01-06 16:03:22 +01:00
Tomáš Votruba
90cba170d5
Merge pull request #266 from rectorphp/how-it-works
[docs] How it works added
2018-01-06 15:57:34 +01:00
TomasVotruba
1fb8da7e6d add note to explain config comment 2018-01-06 15:10:31 +01:00
TomasVotruba
99b2cd75c3 [docs] add Rectors orde example 2018-01-06 15:10:18 +01:00
TomasVotruba
8fe0107070 bin: space cleaner - add README.md and /docs 2018-01-06 15:09:12 +01:00
Tomáš Votruba
090dd93d09
Merge pull request #267 from carusogabriel/cs
Use Symplify clean-code preset
2018-01-06 15:01:07 +01:00
TomasVotruba
7d9e1f15ff space 2018-01-06 15:00:16 +01:00
Gabriel Caruso
a791a324e6 Use Symplify clean-code preset 2018-01-06 04:49:35 -02:00
TomasVotruba
8aa5ae7955 add lifecycle example 2018-01-05 16:19:15 +01:00
TomasVotruba
e079238679 [docs] add How it works file 2018-01-05 15:39:33 +01:00
TomasVotruba
44541a6ada gitignore: add rector.yml, for testing purposes 2018-01-05 15:27:11 +01:00
TomasVotruba
7b3d68fc03 README: add development phase + remove create-project note (not practical) 2018-01-04 09:43:02 +01:00
Tomáš Votruba
9082508c6a
Merge pull request #264 from carusogabriel/phpunit-rectors
[PHPUnit] Expand Rectors to support more methods
2018-01-04 07:42:26 +01:00