57 Commits

Author SHA1 Message Date
Tomas Votruba
ef288d4045 [tests] rename test files to fixtures 2018-12-06 02:09:02 +01:00
Tomas Votruba
3420edeae3 add JoinWrongAndCorrectTestsRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-04 03:10:15 +01:00
Tomas Votruba
7c6a8be85e simlify tests by SimplifyTestsRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 22:53:11 +01:00
Tomas Votruba
73466ac247 rename test files method to provideFiles()
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-03 20:13:46 +01:00
Gabriel Caruso
3ba2759970
[PHPUnit] Convert iterator_count into assertCount 2018-11-18 13:19:15 -02:00
Tomas Votruba
bf37049776 Move Expression re-type to AbstractRector 2018-11-07 20:52:37 +01:00
Tomas Votruba
7deeab99ec merge ClassLikeMaintainer + ClassDependencyMaintaienr to ClassMaintainer 2018-11-04 20:13:03 +01:00
Tomas Votruba
1d56621757 move Builder under PhpParser\Node namespace 2018-11-04 19:06:27 +01:00
Tomas Votruba
aaf409eed2 move php-parser related code under PhpParser namespace, add Maintainer type for services reading/writing to nodes 2018-11-04 02:17:02 +01:00
Tomas Votruba
67eebbc0fe move MethodCallNodeFactory to NodeFactoryTrait 2018-11-03 22:39:44 +01:00
Tomas Votruba
d71d6a1f12 make use of NodeFactoryTrait 2018-11-03 21:53:08 +01:00
Tomas Votruba
b9dd90266a make use of helper method of AbstractRector 2018-10-31 22:15:41 +01:00
Tomas Votruba
a33074bdf5 remove rename identifier helper method, too overdetailed 2018-10-31 21:43:43 +01:00
Tomas Votruba
c5981e50e2 Remove active from AssertComparisonToSpecificMethodRector 2018-10-31 21:32:48 +01:00
Tomas Votruba
a2d68ad756 [PHPUnit] Remove active* helper properties 2018-10-31 20:57:26 +01:00
Tomas Votruba
218366f762 [cs] apply private method order 2018-10-31 16:35:15 +01:00
Tomas Votruba
05e5df7406 [cs] apply property sort 2018-10-31 16:35:15 +01:00
Tomas Votruba
09027d06eb resolve phpstan reports 2018-10-22 18:02:36 +02:00
Gabriel Caruso
5d304b3aee
[PHPUnit] Fix AssertCompareToSpecificMethodRector false positives
When a property, method or variable has one of the names to be
refactored, e.g. `count`, it gets wrong refactored
2018-10-21 14:00:00 -03:00
Tomas Votruba
4cee626ee4 Remove MethodArgumentAnalyzer 2018-10-21 15:38:21 +02:00
Tomas Votruba
486f7f4b64 [PHPUnit] Add SimplifyForeachInstanceOfRector 2018-10-21 13:17:20 +02:00
Tomas Votruba
f330c5e9c2 make return null consistent on no change 2018-10-21 13:06:28 +02:00
Tomas Votruba
a2c0fd23b1 fix new phpstan reports 2018-10-21 10:53:32 +02:00
Tomas Votruba
3233316053 Make ConstructorMethodBuilder respect parent constructor 2018-10-20 09:38:49 +02:00
Tomas Votruba
ba0c3eea95 apply this Rector to code 2018-10-15 21:49:45 +08:00
Tomas Votruba
5933cca87d remove callAnalyzer form Rectors 2018-10-15 14:45:34 +08:00
Tomas Votruba
5deb94f9ff unite refactor(node) naming to node, to make clear the main argument name 2018-10-15 14:45:34 +08:00
Tomas Votruba
f0fdc8e410 remove unused methods 2018-10-15 14:36:25 +08:00
Tomas Votruba
d4009b3888 Add NameAnalyzerTrait 2018-10-15 14:36:25 +08:00
Tomas Votruba
9b569f6c44 make use of TypeAnalyzerTrait 2018-10-15 08:14:21 +08:00
Tomas Votruba
0934960e6d make use of CallAnalyzer to prevent Var string errors with non-string funciton and method call names 2018-10-13 23:13:13 +08:00
Tomas Votruba
f07480c773 apply thecodingmachine/safe 2018-09-21 07:50:14 +02:00
Tomas Votruba
5c3067c95d fix StringFormTypeToClassRector 2018-09-21 07:50:14 +02:00
Tomas Votruba
d3a8f76acb make AdditionalAutoloader tolerant 2018-09-21 07:50:14 +02:00
Tomas Votruba
13fc40e956 apply new coding standard rulesets, mostly Slevomat 4.7, cleanup old code 2018-09-06 14:50:23 +02:00
Tomas Votruba
f4fb5a2529 surround string with # 2018-08-31 14:45:57 +02:00
Tomas Votruba
a11f9f98e1 add expectExceptionMessageRegExp support 2018-08-31 14:45:57 +02:00
Tomas Votruba
6b4c049b3a add test cases for exception code and multiple lines in try 2018-08-31 14:17:49 +02:00
Tomas Votruba
03ae776833 decouple isThisMethodCallWithNames() to MethodCallAnalyzer 2018-08-31 14:08:59 +02:00
Tomas Votruba
f2cfaa8c96 init TryCatchToExpectExceptionRector 2018-08-31 01:41:32 +02:00
Tomas Votruba
e6f66a726b revert removed Autowire-Public-Default compiler passes, they were messy 2018-08-21 00:28:20 +02:00
Tomas Votruba
b9c9005d78 manual update 2018-08-15 11:11:15 +02:00
Tomas Votruba
ff4315b0d3 Apply MergeIsCandidateRector on Rectro code 2018-08-15 11:11:15 +02:00
Tomas Votruba
d8b430ff72 split ValueObjectRemoverDocBlockRector 2018-08-14 13:29:14 +02:00
Tomas Votruba
f53e9c2127 cleanup 2018-08-14 13:29:14 +02:00
Tomas Votruba
5571f83bf3 merge BetterPhpDocParser to NodeTypeResolver, add config.yml for each package and load it by default 2018-08-13 21:59:28 +02:00
Tomas Votruba
1c8572b227 fix OrderTest 2018-08-06 12:35:26 +02:00
Tomas Votruba
0bed1c2711 fix PHPUnit Rectors 2018-08-06 12:35:26 +02:00
Tomas Votruba
7667c5230a render configuratoin to configurabe rectors as well 2018-08-01 21:31:01 +02:00
Tomas Votruba
9129adea69 cleanup configs with autowire: true 2018-07-26 15:39:00 +02:00