36 Commits

Author SHA1 Message Date
Tomas Votruba
0513315056
Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node (#4522)
* Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node

* update DecoupleClassMethodToOwnClassRector

* [ci] add rebase jobp

* disable fail fast for unit tests

* misc
2020-10-31 12:59:40 +00:00
Tomas Votruba
a9f737bcaf
decouple CommentRemover (#4412) 2020-10-15 11:50:15 +02:00
Abdul Malik Ikhsan
ae816c2c3d
Fixes #4337 : Make Option::SKIP works again with ParameterProvider (#4339) 2020-10-01 18:55:10 +02:00
Tomas Votruba
52ccfc0527
[DX] move Nette FileSytem to SmartFileSystem DI (#4262)
* move Nette FileSytem to SmartFileSystem DI

* move Symfony FileSytem to SmartFileSystem

* [ci] run rector diretly, without composer wrap
2020-09-19 09:27:29 +00:00
Tomas Votruba
ec28719c6c
make use of NodeConnectingVisitor + improve generate Rector docs (#3925) 2020-08-07 11:30:05 +02:00
TomasVotruba
99db894192 restore types 2020-07-27 10:44:51 +02:00
TomasVotruba
7fbdab7a8f fix removing of doc 2020-07-26 19:29:50 +02:00
TomasVotruba
9a75aaa4b9 rename issue 2863 to CommentPreserving 2020-07-02 13:55:39 +02:00
TomasVotruba
547e15099d use explicit xBuilder classes to prevent typos and PHPStan and PHPStorm confussion 2020-06-30 01:34:19 +02:00
TomasVotruba
477308c030 [Naming] Add RenameVariableToMatchNewTypeRector 2020-06-29 23:09:51 +02:00
TomasVotruba
828d8cf67f prevent remove false template 2020-06-29 13:50:36 +02:00
TomasVotruba
7bb9a7ab29 add test case for incorrect comment positoin 2020-05-25 17:31:37 +02:00
TomasVotruba
e3463b1073 add comments constant to prevent typos 2020-05-25 17:03:48 +02:00
TomasVotruba
897f226f94 add comment test to printer 2020-05-25 16:52:55 +02:00
TomasVotruba
c25db0b56d apply 2020-02-19 00:14:44 +01:00
TomasVotruba
607358a8e1 move src classes to Rector\Core namespace to prevent duplications 2020-02-07 00:57:45 +01:00
TomasVotruba
53eda0bb8e use new Symplify 7 2019-11-23 18:49:27 +01:00
Tomas Votruba
2fe6f20ea5 use Nette\Utils 2019-11-05 12:27:18 +01:00
Tomas Votruba
acfd930f54 apply PSR-12 2019-10-13 08:09:08 +02:00
Tomas Votruba
417ee5c749 decouple 2019-09-21 21:18:24 +02:00
Tomas Votruba
4596d656b7 [CodingStyle] Add ManualJsonStringToJsonEncodeArrayRector 2019-07-24 16:28:32 +02:00
Tomas Votruba
da6a3920c1 cleanup 2019-07-09 17:29:04 +02:00
Jeroen Smit
b8cb084573 Fixed some issues for RemoveZeroAndOneBinaryRector (#1702)
* Fixed issue where '1 / x' is considered to be equal to 'x'
Fixed issue where '($var + 1)' inside another expression is considered to be equal to '1'
Expanded unit test for ValueResolver

* Made tests more explicit
2019-07-06 22:53:29 +02:00
Thomas Gerbet
68bda32d06 Preserve file permissions when updating a file
The change of permissions is not explicitely requested by the user
and is not shown in the dry-run. It makes Rector harder to use when
the sources of a project has some executable scripts.
2019-05-06 21:47:51 +02:00
Tomas Votruba
163392bd9b coding style 2019-04-29 06:09:00 +02:00
Tomas Votruba
7c9df2cefe rename Attribute to AttributeKey to prevent duplicated names with similar classes in 3rd party project 2019-04-13 14:21:36 +02:00
Tomas Votruba
3f2f64de22 [DeadCode] Do not remove variable that is re-assigned 2019-03-31 20:13:46 +02:00
Tomas Votruba
bfff23fbb2 use AbstractHttpKernelTest case and local Kernel over ContainerFactory 2019-02-23 00:49:32 +01:00
Tomas Votruba
5d5066c0b9 decouple ValueResolver 2019-02-02 15:02:34 +01:00
Tomas Votruba
e0afdfc993 add RouterListToControllerAnnotationsRector 2019-02-02 15:01:54 +01:00
Tomas Votruba
b8268f3897 remove safe 2019-02-02 13:27:03 +01:00
Tomas Votruba
25da54641b improve static code quality 2019-01-14 23:08:20 +01:00
Tomas Votruba
c03b1b1fb3 [DeadCode] Add RemoveUnusedParameterRector 2018-12-25 22:31:48 +01:00
Tomas Votruba
36dc29b56d merge Utils package to PhpParser 2018-11-08 13:04:38 +01:00
Tomas Votruba
7deeab99ec merge ClassLikeMaintainer + ClassDependencyMaintaienr to ClassMaintainer 2018-11-04 20:13:03 +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