84 Commits

Author SHA1 Message Date
TomasVotruba
379770495a [DeadCode] Skip property used as arg 2020-07-07 22:27:28 +02:00
TomasVotruba
69691157bd [DeadCode] Make RemoveDeadReturnRector skip arrow functions 2020-07-06 22:12:01 +02:00
TomasVotruba
3c3c3a9530 remove func call from methods calls 2020-07-06 01:59:41 +02:00
TomasVotruba
00da1fde74 fix class name 2020-07-01 21:54:16 +02:00
TomasVotruba
c08d874107 make use PhpDocTrait 2020-06-30 02:27:55 +02:00
TomasVotruba
a8a6e7bcad rename file to fileInfo 2020-06-30 01:45:05 +02:00
TomasVotruba
0cb82c2a6f apply new Naming_ 2020-06-30 00:57:38 +02:00
TomasVotruba
7f49658112 change test(string ) to test(SmartFileInfo ) in tests 2020-06-25 20:02:36 +02:00
TomasVotruba
9922ba600b make Rector description required for dumping documentation 2020-06-16 13:47:57 +02:00
Tim Ward
9ef5dc3e26 Update rules/dead-code/tests/Rector/Property/RemoveNullPropertyInitializationRector/TypedPropertiesRemoveNullPropertyInitializationRectorTest.php
Require at least php 7.4

Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-06-15 11:00:25 +02:00
Tim Ward
96cfe58a5b Create TypedPropertiesRemoveNullPropertyInitializationRectorTest.php 2020-06-15 11:00:25 +02:00
Tim Ward
f54fd18b98 Delete typed_properties.php.inc 2020-06-15 11:00:25 +02:00
Tim Ward
58aa6bf001 Move TypedPropertyClass
To its own fixture folder
2020-06-15 11:00:25 +02:00
Tim Ward
bc037a0002 Add new fixture to test new feature
Verifies that null isn't removed as a default value for properties that are typed to nullable.
2020-06-15 11:00:25 +02:00
Tim Ward
3bea6c8341 Don't remove null if the property is type hinted to nullable 2020-06-15 11:00:25 +02:00
TomasVotruba
093f425c4d decouple reporting package 2020-05-26 14:36:11 +02:00
TomasVotruba
c92b572277 skip recursive call for method call name 2020-05-22 10:53:53 +02:00
TomasVotruba
0c67709fd0 [Legacy] Add FunctionToStaticMethodRector 2020-05-13 15:50:30 +02:00
TomasVotruba
d687bf7dba styling 2020-05-06 23:36:28 +02:00
TomasVotruba
9c65e7ac75 [SOLID] Add RepeatedLiteralToClassConstantRector 2020-05-06 23:36:28 +02:00
TomasVotruba
491a417842 various @todo resolved 2020-05-06 17:37:27 +02:00
TomasVotruba
b11ca167b0 keep comments removed with related-stmt 2020-05-06 12:59:08 +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
d539160980 make few rules silent on no change to prevent false positive reports on changed nodes 2020-05-03 13:18:59 +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
c64a71ecad phsptan fixes 2020-04-25 16:45:36 +02:00
TomasVotruba
d865f69793 [DX] Add validate fixture suffix 2020-04-23 21:36:19 +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
7b8b482a96 fix RemoveCodeAfterReturnRector for arrow function 2020-04-16 15:32:58 +02:00
TomasVotruba
58337e5d0e [NodeNestingScope] Decopule new package 2020-04-14 10:52:20 +02:00
TomasVotruba
a7f5abe2f1 [DeadCode] Add RemoveUnusedAssignVariableRector 2020-04-14 10:45:04 +02:00
TomasVotruba
3c78a24f0e remove unused dependency 2020-04-13 11:50:07 +02:00
TomasVotruba
01be8d1eee [DeadCode] Fix RemoveUnusedDoctrineEntityMethodAndPropertyRector for id 2020-04-10 00:51:36 +02:00
TomasVotruba
30bfba7d3c check for array at UselessIfCondBeforeForeachDetector 2020-04-08 17:17:53 +02:00
TomasVotruba
9a7bd481e0 fix conflicting class name 2020-04-05 00:34:30 +02:00
TomasVotruba
7f2aef3d7d clear commander from AbstractRector 2020-03-31 17:49:26 +02:00
TomasVotruba
9a9f777513 [DeadCode] Add RemoveDeadRecursiveClassMethodRector 2020-03-31 15:17:42 +02:00
TomasVotruba
626287ec76 apply privatization 2020-03-29 00:06:05 +01:00
TomasVotruba
7474518b96 use just one type of printing 2020-03-28 16:27:26 +01:00
TomasVotruba
9d4be977c4 remove ctor dependency on property/assign removal 2020-03-26 22:58:28 +01:00
TomasVotruba
5995db8262 add else case 2020-03-26 22:14:10 +01:00
TomasVotruba
6a8aa9b017 add count() > 0 case 2020-03-26 22:09:35 +01:00
TomasVotruba
0fe761f8ff Add empty() check to RemoveUnusedNonEmptyArrayBeforeForeachRector 2020-03-26 21:37:37 +01:00
Tomas Votruba
8406192dca
[DeadCode] Add RemoveAssignOfVoidReturnFunctionRector (#3068) 2020-03-25 22:51:12 +01:00
Tomas Votruba
5204ce1523
[DeadCode] Add RemoveUnusedNonEmptyArrayBeforeForeachRector (#3066) 2020-03-25 19:00:26 +01:00
TomasVotruba
6a0551f004 [DeadCode] Add RemoveUnusedFunctionRector 2020-03-25 12:50:51 +01:00
TomasVotruba
11114def28 add remove* method 2020-03-19 13:56:33 +01:00