3450 Commits

Author SHA1 Message Date
Tomas Votruba
745476cc52 improve travis build 2018-08-13 18:20:18 +02:00
Tomas Votruba
1ef798f215 make use of factory to drop NodeTypeResolverCollectorCompilerPass 2018-08-13 18:17:34 +02:00
Tomas Votruba
3d5e97ba7d use file path over SplFileInfo for better usability 2018-08-13 18:17:34 +02:00
Tomas Votruba
ffcd1671a3 move ParentAndNextNodeAddingNodeVisitor under NodeTypeResolver 2018-08-13 18:17:34 +02:00
Tomas Votruba
075852d110 move responsbility to NodeScopeAndMetadataDecorator 2018-08-13 18:17:34 +02:00
Tomas Votruba
eca7a256eb remove NamespaceResolver check from NodeScopeResolver 2018-08-13 18:17:34 +02:00
Tomas Votruba
d01ca0fd40 merge StandaloneTraverseNodeTraverser to NodeTraverserQueue 2018-08-13 15:25:02 +02:00
Tomas Votruba
547378054a Add NodeScopeAndMetadataDecorator 2018-08-13 13:04:18 +02:00
Tomas Votruba
2136624f53 remove CurrentFileProvider 2018-08-13 12:59:30 +02:00
Tomáš Votruba
1a207a7ee3
Merge pull request #580 from rectorphp/fluent-separate
Make FluentRemoverRector and ReturnThisRemoveRector work without each other
2018-08-13 12:32:42 +02:00
Tomas Votruba
e12b99318d remove ClearedFluentMethodCollector 2018-08-13 12:25:11 +02:00
Tomas Votruba
930b7ba089 decouple FluentReplaceRector test and cleanup usage 2018-08-13 12:18:27 +02:00
Tomáš Votruba
31e1a90b20
Merge pull request #576 from rectorphp/fluent-configurable
Decouple ReturnThisRemoveRector
2018-08-13 12:00:19 +02:00
Tomas Votruba
8ebbae5658 add fluent removal to guzzle50.yml 2018-08-13 11:54:31 +02:00
Tomas Votruba
7e3f1bc273 Remove @return annotation as well 2018-08-13 11:54:31 +02:00
Tomas Votruba
4cbcded68e make ReturnThisRemoveRector configurable 2018-08-13 11:54:31 +02:00
Tomas Votruba
11c9a3f89c Add FluentMethodCollector 2018-08-13 11:54:31 +02:00
Tomas Votruba
4c4aeaa29a decouple ReturnThisRemoveRector 2018-08-12 20:54:08 +02:00
Tomas Votruba
17f45c5982 udpate docs 2018-08-12 20:34:43 +02:00
Tomáš Votruba
45ff91af8c
Merge pull request #575 from rectorphp/constant-to-static-call-rector
[Silverstripe] Add DefineConstantToStaticCallRector, ConstantToStaticCallRector  [closes #535]
2018-08-12 20:28:33 +02:00
Tomas Votruba
02bb8f4934 add rules to silverstripe set 2018-08-12 20:23:39 +02:00
Tomas Votruba
8a5235293d [Silverstripe] Add ConstantToStaticCallRector 2018-08-12 20:23:39 +02:00
Tomas Votruba
cdaa7d33be [Silverstripe] Add DefineConstantToStaticCallRector [ref #535] 2018-08-12 14:59:32 +02:00
Tomáš Votruba
b85ed28f5e
Merge pull request #574 from rectorphp/get-node-type
Add getNodeType() future compatbility support
2018-08-12 13:43:48 +02:00
Tomáš Votruba
9fc15b5a9f
Merge pull request #573 from rectorphp/function-to-function-rector
Add FunctionReplacerRector [closes #571]
2018-08-12 13:31:56 +02:00
Tomas Votruba
16f3f7232d add getNodeType() future compat to AbstractRector 2018-08-12 13:31:46 +02:00
Tomas Votruba
e917735190 Add FunctionReplacerRector [closes #571] 2018-08-12 13:06:07 +02:00
Tomáš Votruba
a29829faf9
Merge pull request #572 from rectorphp/static-call-to-function
Add StaticCallToFunctionRector [closes #555]
2018-08-11 15:48:36 +02:00
Tomas Votruba
799991aa3d update guzzle50 set 2018-08-11 12:24:13 +02:00
Tomas Votruba
39d3d37b3a Add StaticCallToFunctionRector [closes #555] 2018-08-11 12:22:29 +02:00
Tomáš Votruba
547646dee0
Merge pull request #569 from rectorphp/function-to-static-call
Add FunctionToStaticCallRector
2018-08-11 11:58:43 +02:00
Tomas Votruba
e398014a97 add guzzle50 init set 2018-08-11 11:57:24 +02:00
Tomas Votruba
2783013a5b Add namespaced function call test 2018-08-11 11:09:44 +02:00
Tomas Votruba
1db0b88115 Add FunctionToStaticCallRector [closes #556] 2018-08-11 11:05:46 +02:00
Tomáš Votruba
cca0fc4f98
Merge pull request #568 from rectorphp/split
Decouple StaticMethodNameReplacerRector
2018-08-11 10:45:25 +02:00
Tomas Votruba
c364ee0b2d update docs 2018-08-11 10:42:40 +02:00
Tomas Votruba
ddac16ceb5 Decouple StaticMethodNameReplacerRector 2018-08-10 21:06:40 +02:00
Tomáš Votruba
9cf3134b92
Merge pull request #567 from rectorphp/update-type-resolver
Improve NodeTypeResolver decoupling
2018-08-10 19:12:00 +02:00
Tomas Votruba
5f82f775aa add .travis.yml to subpackage 2018-08-10 18:56:20 +02:00
Tomas Votruba
1c38169690 decrease complexity of NodeScopeResolver 2018-08-10 17:17:09 +02:00
Tomas Votruba
0685ece179 move responsibility to NodeDecorators and use glue in MetadataNodeVisitor only 2018-08-10 16:45:27 +02:00
Tomas Votruba
009e6ebf03 fix NodeVisitors suffixes 2018-08-10 16:45:27 +02:00
Tomas Votruba
95ba652b78 ecs: add check for NodeVisitorAbstract 2018-08-10 16:45:27 +02:00
Tomas Votruba
b5a3333c5e README: add compiler pass + inspiration 2018-08-10 16:45:27 +02:00
Tomas Votruba
e44a887f73 decouple Scope to TypeAttribute for better NodeTypeResolver usage 2018-08-10 16:45:27 +02:00
Tomas Votruba
b38c7b5272 decouple metadata attributes to MetadataAttributes for better NodeTypeResolver decoupling 2018-08-10 16:45:27 +02:00
Tomas Votruba
0acd7d3a75 update README 2018-08-10 12:25:46 +02:00
Tomas Votruba
9182a5f770 Rename METHOD_CALL to METHOD_CALL_NAME, improve README 2018-08-10 11:28:34 +02:00
Tomas Votruba
9684e5d1c8 cleanup unused constant 2018-08-10 08:35:24 +02:00
Tomas Votruba
2342219033 [NodeTypeResolver] prepare for standalone release 2018-08-10 08:35:21 +02:00