46 Commits

Author SHA1 Message Date
Jeroen Smit
8cecdb8a1a Run rector on self including some manual formatting 2020-01-19 20:45:01 +01:00
Jeroen Smit
4d986dd23c Added more logic for if statement splitting 2020-01-19 10:11:17 +01:00
TomasVotruba
1b6f616cf9 import names 2020-01-12 23:34:34 +01:00
TomasVotruba
a38d61f00c [SOLID] Add ChangeIfElseValueAssignToEarlyReturnRector 2020-01-06 01:42:15 +01:00
TomasVotruba
e12544ae5f improve various tests 2020-01-05 19:05:33 +01:00
TomasVotruba
6cf187d37a [SOLID] Add ChangeNestedIfsToEarlyReturnRector 2020-01-05 18:20:13 +01:00
TomasVotruba
9e67d30e84 [DeadCode] Add RemoveUnusedClassesRector 2020-01-05 00:03:42 +01:00
TomasVotruba
83aebb7f77 [DeadCode] Add RemoveUnusedElseAfterThrowRector 2019-12-30 11:57:16 +01:00
Tomáš Votruba
08eb92d154
Merge pull request #2373 from rectorphp/compiler
Another attempt to add Compiler + upgrade to PHPStan 0.12
2019-12-09 15:26:53 +01:00
Jeroen Smit
0a5f555f27 Make sure array keys start at 0 2019-12-09 06:55:58 +01:00
TomasVotruba
290d0b4ee5 fixup! Merge pull request #2409 from rectorphp/phalcon-round-2 2019-12-08 18:01:29 +01:00
TomasVotruba
a3693df310 use exclude as list 2019-11-22 20:10:39 +01:00
Tomas Votruba
8d57420bd6 use yieldFilesFromDirectory() in tests instead of explicid fixture naming 2019-11-05 18:02:26 +01:00
Tomas Votruba
1620cf0211 apply code-quality 2019-10-30 15:38:30 +01:00
Tomas Votruba
40c49710e9 [cs] reoder private methods by call order 2019-10-30 10:49:07 +01:00
Tomas Votruba
20921aeb8e make use of TypeUtils 2019-10-14 19:06:14 +02:00
Tomas Votruba
acfd930f54 apply PSR-12 2019-10-13 08:09:08 +02:00
Tomas Votruba
0dcd2b0014 [Solid] Add UseInterfaceOverImplementationInConstructorRector 2019-10-09 01:41:51 +01:00
Tomas Votruba
0da741a9a3 drop @return type from Iterator in tests 2019-09-27 14:40:09 +02:00
Tomas Votruba
ca7d0cba15 use PHP highlight for herenow doc 2019-09-18 09:14:06 +02:00
Tomas Votruba
4c9ecba04c [tests] switch testFiles to data providers 2019-09-12 10:18:26 +02:00
Tomas Votruba
82efb89940 use object types over strings 2019-09-06 12:29:55 +02:00
Tomas Votruba
79ffad4a0b add @see annotations 2019-09-03 14:05:21 +02:00
Tomas Votruba
2e97a3d315 make use of getProperties() 2019-09-01 21:45:26 +02:00
Tomas Votruba
3883bbb001 RemoveUnusedPrivatePropertyRector should skip entities [closes #1922] 2019-08-29 21:31:01 +02:00
Tomas Votruba
6d0bf0b44b add makeFinal() method 2019-08-25 12:29:15 +02:00
Tomas Votruba
f720d1face Fix missing args in PreferThisOrSelfMethodCallRector 2019-08-24 01:10:20 +02:00
Christian Scheb
e42527ddc8 Detect parent constant visibility when it is declared in a super-superclass 2019-08-21 21:58:39 +02:00
Tomas Votruba
f9773142b2 cs fixes 2019-08-18 01:34:42 +02:00
Christian Scheb
1836cba680 Refactored 2019-08-17 13:45:29 +02:00
Christian Scheb
e462f6cfd9 Consider parent constant's visibility 2019-08-17 13:36:48 +02:00
Christian Scheb
61c40190fc Add test case for overriding constants 2019-08-17 13:36:48 +02:00
Tomas Votruba
27b0218b95 skip differnt return in FluentReplaceRector 2019-08-15 00:18:30 +02:00
Christian Scheb
eefbe071fb Use a dedicated service to resolve class constant fetches after parsing 2019-08-12 22:17:34 +02:00
Christian Scheb
583e525d09 Add test case when a constant is made private that should be public 2019-08-12 21:27:05 +02:00
Christian Scheb
423559449b Constants declared in interfaces have to be public 2019-08-11 15:08:35 +02:00
Tomas Votruba
6fdf08ab3c [SOLID] Fix PrivatizeLocalClassConstantRector for used constant from single class [closes #1634] 2019-07-09 18:51:04 +02:00
Tomas Votruba
0735925796 [SOLID] Add AbstractChildlessUnusedClassesRector 2019-05-26 14:24:23 +02:00
Tomas Votruba
25258e1028 fix cs 2019-05-01 00:49:59 +02:00
Tomas Votruba
0973ceb8be apply import on packages 2019-04-17 22:28:45 +02:00
Tomas Votruba
998f10bf26 move node adding responsibility from NodeCollectorNodeVisitor to ParsedNodesByType 2019-04-14 00:20:05 +02:00
Tomas Votruba
30536957e0 merge collected nodes to ParsedNodesByType 2019-04-14 00:20:05 +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
68b5b7edea fixup! [SOLID] Add PrivatizeLocalClassConstantRector 2019-04-10 16:10:02 +02:00
Tomas Votruba
aba4a3cb02 [SOLID] Add PrivatizeLocalClassConstantRector 2019-04-10 15:15:13 +02:00
Tomas Votruba
c1d0bd1556 [SOLID] Add FinalizeClassesWithoutChildrenRector 2019-04-07 14:22:24 +02:00