53 Commits

Author SHA1 Message Date
Tomas Votruba
5780ab30a3 [DeadCode] Fix RemoveDoubleAssignRector in catch 2019-04-26 00:17:31 +02:00
Tomas Votruba
8cd0203f50 [DeadCode] Fix RemoveOverriddenValuesRector 2019-04-26 00:05:57 +02:00
Tomas Votruba
d87837ad47 [RemovingStatic] Add StaticTypeToSetterInjectionRector 2019-04-25 16:45:09 +02:00
Tomas Votruba
5b031cbfcd [RemovingStatic] Add PHPUnitStaticToKernelTestCaseGetRector 2019-04-25 13:50:05 +02:00
Tomas Votruba
7cc4630ac4 add test case for #1286 2019-04-23 12:48:45 +02:00
Tomas Votruba
0973ceb8be apply import on packages 2019-04-17 22:28:45 +02:00
Tomas Votruba
4122e6756f [DeadCode] Skip magic methods in RemoveUnusedParameterRector [closes #1324] 2019-04-17 13:27:34 +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
a9b491d4f3 apply code-quality level 2019-04-01 12:53:07 +02:00
Tomas Votruba
614a67706b add the same if test 2019-03-31 23:22:58 +02:00
Tomas Votruba
e9c294d14e [DeadCode] cover case with if/else in RemvoeDoubleAssignRector 2019-03-31 22:45:56 +02:00
Tomas Votruba
0e7c8e331a [DeadCode] Keep method on non-final public/protected, might be overloaded 2019-03-31 22:35:21 +02:00
Tomas Votruba
cbddceb06a add different scope support to RemoveDoubleAssignRector 2019-03-31 21:33:32 +02:00
Tomas Votruba
3f2f64de22 [DeadCode] Do not remove variable that is re-assigned 2019-03-31 20:13:46 +02:00
Tomas Votruba
acec585d2d [DeadCode] Make RemoveDoubleAssignRector ignore array dim fetch, keep only variable and property 2019-03-31 15:43:56 +02:00
Tomas Votruba
b9fbb3654d apply code-quality level 2019-03-31 14:48:06 +02:00
Tomas Votruba
b7783f94e9 [DeadCode] Add RemoveDeadIfForeachForRector 2019-03-31 12:14:37 +02:00
Tomas Votruba
ea2a3a5e8d Add compact() case to RemoveUnusedParameterRector 2019-03-27 17:13:51 +01:00
Tomas Votruba
f4fa2c90fc [PhpSpecToPHPUnit] Add no-let method 2019-03-27 00:37:42 +01:00
Tomas Votruba
368a572563 [DeadCode] Improve RemoveDuplicatedArrayKeyRector to clear items, that are ignored 2019-03-26 12:38:07 +01:00
Tomas Votruba
843fe4ddc3 [DeadCode] Add RemoveDeadReturnRector 2019-03-26 12:18:11 +01:00
Tomas Votruba
f3b296dfcc add mask support to isName(), remove matchName() 2019-03-15 20:05:51 +01:00
Tomáš Votruba
ec5b50e590
Merge pull request #1207 from bendavies/RemoveUnusedPrivateMethodRector-bug
add failing test for RemoveUnusedPrivateMethodRector
2019-03-15 17:28:30 +01:00
Ben Davies
c00d5db8fb skip all methods starting in __ 2019-03-15 15:09:14 +00:00
Ben Davies
e2cd3a2805 do not remove abstract methods 2019-03-15 14:22:26 +00:00
Ben Davies
b8e4638865 add failing test for RemoveEmptyClassMethodRectorTest 2019-03-15 13:40:43 +00:00
Tomas Votruba
4fc9be383d [PhpSpecToPHPUnit] Init new package 2019-03-15 13:42:28 +01:00
Tomas Votruba
8208eff75e rename Analyzer and Maintainer to Manipulator 2019-02-27 22:54:39 +01:00
Tomas Votruba
3d4f55c172 apply code-quality level 2019-02-27 14:21:11 +01:00
Tomas Votruba
ac45d54145 apply coding-style level on Rector 2019-02-27 14:16:19 +01:00
Tomas Votruba
2a2703a0bc [DeadCode] Add RemoveDeadConstructorRector 2019-02-27 12:35:13 +01:00
Tomas Votruba
d543be5677 add test case for #1093 2019-02-23 11:36:28 +01:00
Tomas Votruba
f574c3374f use node-class based naming 2019-02-22 18:34:41 +01:00
Tomas Votruba
5ba6417aec [DeadCode] Add RemoveCodeAfterReturnRector 2019-02-20 15:02:07 +01:00
Tomas Votruba
3b428bf498 add function support to RemoveOverriddenValuesRector [closes #1062] 2019-02-19 18:16:45 +01:00
Tomas Votruba
4bb41138f0 fix for anonymous classes 2019-02-18 20:30:28 +01:00
Tomas Votruba
3a2a754c2a [DeadCode] Add RemoveUnusedPrivateMethodRector 2019-02-18 20:30:28 +01:00
Tomas Votruba
1e8443b4ab [DeadCode] Add RemoveUnusedPrivateConstantRector 2019-02-18 18:46:36 +01:00
Tomas Votruba
2bdbbe0527 [DeadCode] Add RemoveOverridenValuesRector 2019-02-18 17:02:57 +01:00
Tomas Votruba
3175a8857a apply specific bool on code 2019-02-18 00:36:58 +01:00
Tomas Votruba
6da9fc39ff Remove ctor param in RemoveUnusedParameterRector 2019-02-09 17:34:12 +01:00
Tomas Votruba
7c8a88cf73 add ResolvedNameReturnTypeExtension and apply 2019-01-25 16:06:56 +01:00
Tomas Votruba
2c878c7541 apply new static analysis 2019-01-25 16:06:56 +01:00
Tomas Votruba
25da54641b improve static code quality 2019-01-14 23:08:20 +01:00
Tomas Votruba
80e7546aae move SimplifyMirrorAssignRector to DaedCode 2018-12-28 15:52:59 +01:00
Tomas Votruba
c03b1b1fb3 [DeadCode] Add RemoveUnusedParameterRector 2018-12-25 22:31:48 +01:00
Tomas Votruba
a62c36d319 [DeadCode] Add RemoveDoubleAssignRector 2018-12-25 20:44:12 +01:00
Tomas Votruba
f238f2a310 [DeadCode] Add RemoveUnusedPrivatePropertyRector 2018-12-25 20:44:12 +01:00
Tomas Votruba
e696d65e2d [DeadCode] Add RemoveEmptyClassMethodRector 2018-12-25 20:44:12 +01:00
Tomas Votruba
ae7b463d3d [DeadCode] Add RemoveParentCallWithoutParentRector 2018-12-25 20:44:12 +01:00