2230 Commits

Author SHA1 Message Date
TomasVotruba
e29f8fafab [DeadCode] Add RemoveDuplicatedIfReturnRector 2020-02-28 00:08:53 +01:00
TomasVotruba
7fd5234a10 check for dead-code info 2020-02-26 18:29:25 +01:00
TomasVotruba
1a4bb38126 skip open source class in rmeove unused param in open-source 2020-02-26 00:54:29 +01:00
TomasVotruba
53a3b18264 skip true/false case in TernaryToBooleanOrFalseToBooleanAndRector 2020-02-25 22:06:23 +01:00
TomasVotruba
3e7e3bf7dc add project_type 2020-02-25 21:43:29 +01:00
TomasVotruba
147b51b4c9 Fix prophecy mocking arg 2020-02-25 20:59:38 +01:00
TomasVotruba
788abf5131 add has lifecycle callbacks 2020-02-25 20:46:55 +01:00
TomasVotruba
0427133ec7 [DeadCode] Skip abstract methods in RemoveUnusedParameterRector as possible 3rd party contract 2020-02-25 10:52:37 +01:00
TomasVotruba
5c3aaf2ddc skip used property 2020-02-23 23:35:24 +01:00
TomasVotruba
d074d5169a Fix FinalizeClassesWithoutChildrenRector for embedable 2020-02-23 23:25:58 +01:00
TomasVotruba
25aca8b774 [MysqlToMysqli] Add MysqlQueryMysqlErrorWithLinkRector 2020-02-23 23:13:49 +01:00
TomasVotruba
f7aefc68b8 [DeadCode] Add RemoveUnusedVariableAssignRector 2020-02-23 22:36:23 +01:00
TomasVotruba
c2b89700a3 [DeadCode] Add RemoveUnusedClassConstantRector 2020-02-23 22:07:19 +01:00
TomasVotruba
c011720d4f add param name to docs 2020-02-23 21:58:25 +01:00
TomasVotruba
671fa8a547 [Phalcon] Add DecoupleSaveMethodCallWithArgumentToAssignRector 2020-02-23 20:16:45 +01:00
TomasVotruba
09d8c406a7 improve complexity 2020-02-23 20:02:02 +01:00
TomasVotruba
77d94c41a9 improve EregToPcreTransformer complexity 2020-02-23 18:57:05 +01:00
TomasVotruba
8347a4c784 [JMS] Add RemoveJmsInjectParamsAnnotationRector and RemoveJmsServiceAnnotationRector 2020-02-23 18:44:19 +01:00
TomasVotruba
6ba1d212e0 require at least 2 iffs for nested foreach 2020-02-23 17:05:59 +01:00
TomasVotruba
cef900323f add add ShortNameAwareTagInterface 2020-02-23 16:14:23 +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
93633a4c04 [CodeQuality] Add InlineIfToExplicitIfRector 2020-02-22 13:07:36 +01:00
TomasVotruba
4d9a689431 fix name equal 2020-02-22 11:49:51 +01:00
Aerendir
aa655dbee3 Support throw from the method of an instantiated class. 2020-02-21 23:54:23 +01:00
TomasVotruba
bc24bb12ff prevent getName() on StaticCall or MethodCall 2020-02-21 16:41:33 +01:00
TomasVotruba
d0afc945e0 add links to each rule and test fixture in docs 2020-02-21 15:24:17 +01:00
TomasVotruba
5318f7c8d1 Fix incorrect regexes to preserve doc tags spacing 2020-02-21 14:49:50 +01:00
TomasVotruba
1e83e78a5e fix duplicate switch without break 2020-02-21 13:37:27 +01:00
TomasVotruba
0e61d7e96f [CodingStyle] Add CamelCaseFunctionNamingToUnderscoreRector 2020-02-21 02:50:54 +01:00
TomasVotruba
99eeeabee2 fix nested array dim fetch resolving type 2020-02-21 01:52:45 +01:00
TomasVotruba
40cd751756 keep array function static 2020-02-21 00:40:35 +01:00
Tomas Votruba
ec50ab5672
Merge pull request #2890 from Aerendir/AnnotateThrowables-support-static-methods
#2861: Support throw of static methods
2020-02-20 19:49:39 +01:00
Aerendir
3e3445a255 Closes #2889. Support static methods calls. 2020-02-20 17:16:30 +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
TomasVotruba
1ad8f08ccd [SOLID] Add ChangeReadOnlyVariableWithDefaultValueToConstantRector 2020-02-18 23:59:07 +01:00
Tomas Votruba
36ffd47763
Merge pull request #2876 from Aerendir/AnnotateThrowables-improve-tests-organization
`AnnotateThrowablesRector`: Improve organization of tests.
2020-02-18 18:59:06 +01:00
Tomas Votruba
b65a200400
Merge pull request #2883 from alfredbez/oxid-replace-deprecated-classes
[OXID] replace backwards-compatability classes in oxNew
2020-02-18 18:06:15 +01:00
alfredbez
2cd3761661 added rector to replace oxid backwards-compatability classes 2020-02-18 12:10:03 +01:00
Felix Sokoliuk
bd5e0adeac skip node when nested ternary is not a BinaryOp 2020-02-18 06:48:28 +01:00
Felix Sokoliuk
cd263606c9 add test case for non binary op nested ternary 2020-02-18 06:45:43 +01:00
Aerendir
082a3061bf Fix mispelled Docblock. 2020-02-17 17:00:37 +01:00
Aerendir
15f97ae2f3 AnnotateThrowablesRector: Improve organization of tests. 2020-02-17 16:52:59 +01:00
TomasVotruba
5a28cd22d5 Skip unpackaged args in ArraySpreadInsteadOfArrayMergeRector 2020-02-17 15:17:39 +01:00
TomasVotruba
e9897408b6 make test pass 2020-02-17 01:54:02 +01:00
TomasVotruba
868a56ad5a fix test location 2020-02-17 01:52:05 +01:00
TomasVotruba
5ebf2414c4 fix remove alwasy else for anonymous function jump 2020-02-17 01:24:19 +01:00