56 Commits

Author SHA1 Message Date
TomasVotruba
ab2f83c4f7 cs 2020-06-24 23:26:31 +02:00
TomasVotruba
2064e3cc4b cs 2020-06-24 23:26:27 +02:00
derrickschoen
e72ed987e6
reduce size of array 2020-06-24 17:06:39 -04:00
derrickschoen
740dd752ac
reduce size of array 2020-06-24 17:03:50 -04:00
Derrick Schoen
e12336e3c5 Reduce number of variables 2020-06-24 08:33:51 -04:00
Derrick Schoen
87e0c838cd Boolean Operands cause ChangeNestedForeachIfsToEarlyContinueRector to produce code that gives a different output from the original code. 2020-06-23 17:49:19 -04:00
TomasVotruba
2248dc00fc add @scrumworks - amateri.com sponsor to particular rules, thank you 2020-06-21 13:43:17 +02:00
TomasVotruba
5b8bf939a6 skip encapsed string from constant extraction 2020-06-15 15:23:23 +02:00
TomasVotruba
d1e5990531 fix nested comment in nested foreach to if 2020-06-15 11:58:12 +02:00
Tomas Votruba
363483fe1f
Merge pull request #3503 from derrickschoen/EarlyContinueBugWhenThereIsACommentInsideIfStatement
I found a bug with the ChangeNestedForeachIfsToEarlyContinueRector
2020-06-15 11:56:02 +02:00
TomasVotruba
43da75f2e1 skip multi assign ChangeReadOnlyVariableWithDefaultValueToConstantRector 2020-06-15 11:18:24 +02:00
Derrick Schoen
91cec91778 I found a bug with the ChangeNestedForeachIfsToEarlyContinueRector
When there is a comment inside the if statement before the brace, it misses a brace creating the early continue statement.

https://getrector.org/demo/9757fa4a-ed15-4130-8bdc-ae150305360e
2020-06-09 17:31:39 -04:00
TomasVotruba
f0a67edb7e [Nette Kdyby] Add ReplaceEventManagerWithEventSubscriberRector 2020-05-29 01:36:25 +02:00
rector-bot
aa6a408060 fixup! fixup! add ParsedClassConstFetchNodeCollector 2020-05-21 15:05:38 +00:00
rector-bot
730090621f fixup! add ParsedClassConstFetchNodeCollector 2020-05-21 15:04:49 +00:00
TomasVotruba
a00329a4f1 add ParsedClassConstFetchNodeCollector 2020-05-21 17:01:29 +02:00
TomasVotruba
42890d64c5 add Symfony @required 2020-05-21 09:52:04 +02:00
TomasVotruba
678a992a9d [SOLID] add InjectMethodFactory for multi parent abstract rector 2020-05-21 09:50:38 +02:00
TomasVotruba
5bad3274b9 [SOLID] Add MultiParentingToAbstractDependencyRector 2020-05-21 09:15:47 +02:00
TomasVotruba
797cc53a38 note 2020-05-19 12:31:46 +02:00
TomasVotruba
d493363695 fix race-condition of name imports and class constant name 2020-05-19 12:21:58 +02:00
TomasVotruba
4f41f06e5d apply Rector 2020-05-09 22:13:01 +02:00
TomasVotruba
515ee780fb apply constant on /compiler 2020-05-09 21:56:12 +02:00
TomasVotruba
ff88e4b37a fix another constant in repeated literal to class constant 2020-05-09 21:50:52 +02:00
TomasVotruba
83ef24bd9d add slash to repeated literal to class constant 2020-05-09 21:33:17 +02:00
TomasVotruba
b86f4afdaf apply on packages 2020-05-06 23:40:31 +02:00
TomasVotruba
9c65e7ac75 [SOLID] Add RepeatedLiteralToClassConstantRector 2020-05-06 23:36:28 +02:00
TomasVotruba
94160332e1 [utils] improve SeeAnnotationToTestRule to check reference to test case class 2020-05-05 22:09:56 +02:00
TomasVotruba
69dfe3cf96 Fix multi-comment malforming 2020-05-05 00:19:45 +02:00
TomasVotruba
ef5501d06c various cs cleanup 2020-05-03 21:33:36 +02:00
TomasVotruba
00b3184eb3 [Naming] Add RenamePropertyToMatchTypeRector 2020-05-02 22:36:11 +02:00
TomasVotruba
653e5353bb [SOLID] Add AddFalseDefaultToBoolPropertyRector 2020-05-02 12:03:03 +02:00
TomasVotruba
b0836bde3c use propety over property property 2020-04-29 13:53:06 +02:00
TomasVotruba
1bf62ac1c7 [cs] sort private methods by call order and property by complexity 2020-04-26 02:57:47 +02:00
TomasVotruba
5f4a2c1e3b Add changed files caching 2020-04-20 01:54:17 +02:00
TomasVotruba
192c4464ec various improvements 2020-04-19 23:17:01 +02:00
TomasVotruba
22a55b85e1 fix sniff fro ChangeReadOnlyPropertyWithDefaultValueToConstantRector 2020-04-08 16:44:11 +02:00
TomasVotruba
9466680a6d move constant privatization to privatization set 2020-03-29 20:02:47 +02:00
TomasVotruba
626287ec76 apply privatization 2020-03-29 00:06:05 +01:00
TomasVotruba
788abf5131 add has lifecycle callbacks 2020-02-25 20:46:55 +01:00
TomasVotruba
d074d5169a Fix FinalizeClassesWithoutChildrenRector for embedable 2020-02-23 23:25:58 +01:00
TomasVotruba
c2b89700a3 [DeadCode] Add RemoveUnusedClassConstantRector 2020-02-23 22:07:19 +01:00
TomasVotruba
6ba1d212e0 require at least 2 iffs for nested foreach 2020-02-23 17:05:59 +01:00
TomasVotruba
eeb43d2b01 rector ci: enable solid + fix class const privatization for using parent 2020-02-23 16:03:39 +01:00
TomasVotruba
735be73800 [SOLID] Add ChangeNestedForeachIfsToEarlyContinueRector 2020-02-22 16:04:15 +01:00
TomasVotruba
5318f7c8d1 Fix incorrect regexes to preserve doc tags spacing 2020-02-21 14:49:50 +01:00
TomasVotruba
01bd2e3d86 skip test fixtures 2020-02-19 14:53:21 +01:00
TomasVotruba
9da97ed1f6 update alias 2020-02-19 14:36:10 +01:00
TomasVotruba
7f63457a18 Fix already constant 2020-02-19 14:35:30 +01:00
TomasVotruba
c25db0b56d apply 2020-02-19 00:14:44 +01:00