349 Commits

Author SHA1 Message Date
TomasVotruba
a6c553c3b4 tests passes again 2017-08-20 16:13:38 +02:00
TomasVotruba
863a20df68 fixup NodeTraverser order 2017-08-20 16:08:24 +02:00
TomasVotruba
261f9aa8f2 drop EventDispatcher, add prioritied NodeTraversers 2017-08-20 15:25:03 +02:00
TomasVotruba
4c052d0ceb cleanup 2017-08-20 01:02:11 +02:00
TomasVotruba
738ac001f9 use simple NodeTypeResolver according to NodeVisitor example 2017-08-20 00:51:00 +02:00
TomasVotruba
5a0ce3b7dc WIP with PHPStan 2017-08-18 22:59:59 +02:00
TomasVotruba
fb7adfbfc3 [Nette] add few more tests to HtmlAddMethodRector 2017-08-16 09:48:48 +02:00
TomasVotruba
a73ba4bb49 [Nette] add simple type resolver for HtmlAddMethodRector 2017-08-16 09:45:07 +02:00
TomasVotruba
70775f5bfa [Nette] prepare type call for Html 2017-08-15 15:25:16 +02:00
TomasVotruba
3e9f3b8342 fix cs 2017-08-15 15:17:17 +02:00
TomasVotruba
1f7c66bb72 move Symfony rector to Contrib 2017-08-15 15:15:02 +02:00
TomasVotruba
a8a3df0db1 fix InjectPropertyRector 2017-08-15 15:00:49 +02:00
TomasVotruba
4c7a7cda22 move InjectAnnotationToContructRector test to correct place, rename FileReconstructor to FileProcessor 2017-08-15 14:51:52 +02:00
TomasVotruba
2f09ad31ed drop TokenSwitcher, use standalone NodeTraverser for cloning tokens 2017-08-15 14:36:39 +02:00
TomasVotruba
7fe31cde23 [Rector] HtmlAddMethodRector init 2017-08-15 08:37:36 +02:00
TomasVotruba
28a3835acf phpstan fixes 2017-08-10 12:29:43 +02:00
TomasVotruba
478ce64138 fix it all 2017-08-08 18:17:40 +02:00
TomasVotruba
102298d49a add NodeTraverserFactory 2017-08-08 17:55:38 +02:00
TomasVotruba
70bb18f099 renaming 2017-08-08 02:30:29 +02:00
TomasVotruba
7d5a1250eb rename StateHolder, to TokenSwitcher 2017-08-08 01:59:37 +02:00
TomasVotruba
d8849f04cd add uncommented tests 2017-08-08 01:20:16 +02:00
TomasVotruba
4d931010d0 fix cs 2017-08-08 01:18:55 +02:00
TomasVotruba
ae5f24d677 fixes 2017-08-07 23:12:10 +02:00
TomasVotruba
7b03a0c30e wip 2017-08-07 17:52:18 +02:00
TomasVotruba
23dde903b7 refactor NodeVisitor to Rectors 2017-08-07 17:41:58 +02:00
TomasVotruba
bcc02f678c move NodeVisitor to Rector, add AbstractRector 2017-08-07 17:27:04 +02:00
TomasVotruba
61c7ef9de0 improve tests 2017-08-06 23:37:10 +02:00
TomasVotruba
d818014477 StatementGlue added 2017-08-06 23:24:58 +02:00
TomasVotruba
58f638d104 [NodeTraverser] add ParentClassToTrait refactor 2017-08-06 19:49:19 +02:00
TomasVotruba
63bbfb3efc improve coding standard, add DeprectionInterface 2017-08-06 19:37:55 +02:00
TomasVotruba
f8420008f3 [NodeVisitor] make ReplaceDeprecatedConstant abstract 2017-08-06 19:26:39 +02:00
TomasVotruba
2beb152e5f [UpgradeDeprecation] add ReplaceDeprecatedConstantNodeVisitor 2017-08-06 18:51:23 +02:00
TomasVotruba
71497ab319 cs fixes 2017-08-03 19:11:32 +02:00
TomasVotruba
09c13a11fa [NamedServicesToContrutor] make tests pass 2017-07-20 18:58:34 +02:00
TomasVotruba
80314eb924 decouple ClassPropertyCollector, [NamedServicesToContstructor] change mechanism to add new properties post traverse 2017-07-20 18:37:43 +02:00
TomasVotruba
01a5fd8b41 make test pass 2017-07-20 17:23:10 +02:00
TomasVotruba
82e8858158 namespace typos fix 2017-07-20 16:37:31 +02:00
TomasVotruba
222557c122 [NamedServicesToContructor] split NodeVisitors to do particular job 2017-07-19 18:52:54 +02:00
TomasVotruba
8f87dd58d6 cleanup 2017-07-19 00:42:50 +02:00
TomasVotruba
3a6eee57f3 [NodeTraverser] use it instead of Dispatcher and own solution 2017-07-18 23:59:43 +02:00
TomasVotruba
e32453e2be use format preserving AST Transformation, disable PHPStan, doesn't work with php-parser 4.0-dev 2017-07-16 23:15:41 +02:00
TomasVotruba
4fe18bacab NamedServicesReconstructor - add test for double use of one service 2017-07-16 21:15:02 +02:00
TomasVotruba
7c2a01a4e5 [Analyzer] decouple ClassAnalyzer 2017-07-16 21:09:58 +02:00
TomasVotruba
05ae2c05a0 [Reconstructor] add expr check 2017-07-16 20:32:48 +02:00
TomasVotruba
95d105512a [Reconstructor] NamedServicesToConstructor next 2017-07-16 19:13:21 +02:00
TomasVotruba
e59acf0d18 [Reconstructor] NamedServicesToConstructor init 2017-07-16 14:56:38 +02:00
TomasVotruba
57f291a389 [Reconstructor] add ContructorMethodBuilder, relieve InjectReconstructor 2017-07-16 13:13:24 +02:00
TomasVotruba
7446ce99c6 [tests] move AbstractReconstructorTestCase to src/Testing 2017-07-15 19:03:14 +02:00
TomasVotruba
764ce4bb08 init 2017-07-15 19:01:21 +02:00