Commit Graph

378 Commits

Author SHA1 Message Date
Tomas Votruba
b419f625c7 add Laravel 5.0, 5.1 and 5.2 sets 2019-03-09 14:41:11 +00:00
Tomas Votruba
a7073c2935 rename AnnotationReplacerRector to RenameAnnotationRector 2019-03-09 13:15:14 +00:00
Tomas Votruba
ccf8fccf9f rename ConstantReplacerRector to RenameConstantRector 2019-03-09 13:08:21 +00:00
Tomas Votruba
63629492a3 rename PropertyNameReplacerRector to RenamePropertyRector 2019-03-09 13:04:33 +00:00
Tomas Votruba
c6628917f2 rename StaticMethodReplacerRector to RenameStaticMethodRector 2019-03-09 12:56:58 +00:00
Tomas Votruba
2cfea9d710 rename ClassReplacerRector to RenameClassRector 2019-03-09 12:56:58 +00:00
Tomas Votruba
7890135aff rename FunctionReplaceRector to RenameFunctionRector 2019-03-09 12:56:58 +00:00
Tomas Votruba
f13843396e add remove options argument to laravel57 2019-03-09 00:09:41 +00:00
Tomas Votruba
4a27d61ccd [Laravel] Add Redirect301ToPermanentRedirect 2019-03-08 23:30:29 +00:00
Tomas Votruba
e1e19db873 add argument adder Laravel rules 2019-03-08 20:56:34 +00:00
Tomas Votruba
7dfb31550c add Laravel configs 2019-03-08 20:20:36 +00:00
Tomáš Votruba
4b92a02b46
Merge pull request #1145 from rectorphp/symfony-cookie
[Symfony 4.2] Add Cookie to create() deprecations
2019-03-05 11:19:29 +00:00
Tomáš Votruba
a386af1912
Merge pull request #1148 from shyim/shopware/view-setter
Add Shopware Rector config
2019-03-05 09:24:53 +00:00
Shyim
ec82920647
Update shopware55.yaml 2019-03-05 08:17:18 +01:00
Soner Sayakci
9f53a3b7d4 Add Shopware Rector config 2019-03-04 22:27:25 +01:00
Tomas Votruba
b49af77c9b [Symfony 4.2] Add Cookie to create() deprecations 2019-03-04 14:26:26 +01:00
Tomas Votruba
708029e7a3 [Laravel] Add RequestStaticValidateToInjectRector 2019-03-04 13:13:31 +01:00
Tomas Votruba
0311a5211f [Laravel 5.8] Add schema property rename 2019-03-04 09:35:40 +01:00
Tomas Votruba
e3e6972b93 [Laravel 5.8] Add The Repository and Store Contracts change 2019-03-04 09:35:40 +01:00
Tomas Votruba
2769f7a25d [Laravel] Add MinutesToSecondsInCacheRector 2019-03-04 09:35:40 +01:00
Tomas Votruba
22c833e302 add Laravel 58 set 2019-03-04 00:08:52 +01:00
Tomas Votruba
720199d48f init laravel level 2019-03-03 23:45:46 +01:00
Tomas Votruba
2a2703a0bc [DeadCode] Add RemoveDeadConstructorRector 2019-02-27 12:35:13 +01:00
Tomas Votruba
3302c21b5f [CodingStyle] Add SymplifyQuoteEscapeRector 2019-02-27 12:23:55 +01:00
Tomas Votruba
4a5b33ed55 [CodeQuality] Add SimplifyBoolIdenticalTrueRector 2019-02-27 00:24:12 +01:00
Tomas Votruba
2ae3f7252a [CodeQuality] Add SimplifyDuplicatedTernaryRector 2019-02-26 18:12:03 +01:00
Tomas Votruba
5a7f89dbef [PHP 7.2] Add StringifyDefineRector 2019-02-26 01:21:59 +01:00
Tomas Votruba
b401be37e5 Add PhpVersionProvider 2019-02-24 11:38:22 +01:00
Tomas Votruba
59e76e887b correct Celebrity config 2019-02-23 13:10:45 +01:00
Tomas Votruba
f31071cec2 extend LogicalOrToBooleanOrRector to AND and rename to LogicalToBooleanRector 2019-02-23 12:45:42 +01:00
Tomas Votruba
b951e3e8d0 move LogicalOrToBooleanOrRector to celebrity level 2019-02-23 11:54:57 +01:00
Tomas Votruba
6588449aa7 add VarToPublicPropertyRector 2019-02-23 09:38:31 +01:00
Tomas Votruba
2bc71c3949 move SetTypeToCastRector to celebrity level 2019-02-23 09:38:31 +01:00
Tomas Votruba
47a4267846 add celebrity level config 2019-02-23 09:38:31 +01:00
Tomas Votruba
bfff23fbb2 use AbstractHttpKernelTest case and local Kernel over ContainerFactory 2019-02-23 00:49:32 +01:00
Tomas Votruba
c5ee28cc2d Add "dump-node-help" command 2019-02-23 00:49:32 +01:00
Tomas Votruba
878f68d3db include doctrine set 2019-02-22 15:12:02 +01:00
Tomas Votruba
6e1099f82d complete Doctrine and Kdyby migrations to nette-to-symfony set 2019-02-22 15:10:55 +01:00
Tomas Votruba
5ba6417aec [DeadCode] Add RemoveCodeAfterReturnRector 2019-02-20 15:02:07 +01:00
Tomas Votruba
c105f3b7ae [CodeQuality] Add UseIdenticalOverEqualWithSameTypeRector 2019-02-20 14:33:50 +01:00
Tomáš Votruba
c6ca92d97e
Merge pull request #1077 from rectorphp/spageti
Add Spageti note
2019-02-20 05:29:59 -08:00
Tomas Votruba
a88ff23103 remove old rector name from config 2019-02-20 13:53:14 +01:00
Tomas Votruba
0b31eebd0c [PHP] Add ContinueToBreakInSwitchRector 2019-02-20 12:36:58 +01:00
Tomas Votruba
2c93adc0d9 [PHP] RemoveReferenceFromCallRector 2019-02-20 01:04:27 +01:00
Tomas Votruba
724087521c [CodeQuality] Add CommonNotEqualRector 2019-02-19 18:26:22 +01:00
Tomáš Votruba
4ea85ae44a
Merge pull request #1072 from rectorphp/mysqli
[PHP Mysql to Mysqli] Add ConstantReplacerRector
2019-02-19 08:15:08 -08:00
Tomas Votruba
2b88b06dd4 add mktime deprecation 2019-02-19 17:12:33 +01:00
Tomas Votruba
59bba92f5c add define test [closes #1068] 2019-02-19 16:52:08 +01:00
Tomas Votruba
9fdf6c9336 Add SwapFuncCallArgumentsRector 2019-02-19 16:52:08 +01:00
Tomas Votruba
683cb08846 add MysqlPConnectToMysqliConnectRector 2019-02-19 16:52:07 +01:00
Tomas Votruba
1780e9b44b move mysql-to-mysqli migration to own package 2019-02-19 16:05:34 +01:00
Tomas Votruba
d7038ec3e2 Add ConstantReplacerRector 2019-02-19 15:53:31 +01:00
Tomas Votruba
52608c5575 [PHP 5.2] Add var to public property 2019-02-19 08:22:45 +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
8515839d8f [CodeQuality] Add ExplicitBoolCompareRector 2019-02-18 00:23:57 +01:00
Tomas Votruba
64a901fa40 split configs to more 2019-02-17 02:24:38 +01:00
Tomas Votruba
f94ddfcd5f [CodeQuality] Add SimplifyIfIssetToNullCoalescingRector 2019-02-17 02:13:29 +01:00
Tomas Votruba
5a801624dc [NTS] Add trans() param wrapper 2019-02-17 01:24:39 +01:00
Tomas Votruba
9a17cb95be fix CakePHP 3.4 with config method 2019-02-17 00:48:27 +01:00
Tomas Votruba
4c67d7d6f9 fix symfony42 config 2019-02-16 13:10:48 +01:00
Tomas Votruba
75cb2b35c4 move level config to autodiscovery path 2019-02-09 14:14:29 +01:00
Tomas Votruba
2b78108558 [PHPUnit] Add __construct type removal [closes #1024] 2019-02-07 19:17:25 +01:00
Tomas Votruba
afc174fa80 rename ReturnTypehintRector to AddReturnTypeDeclarationRector 2019-02-04 15:50:53 +01:00
Tomas Votruba
f2c948170b add PHPUnit 8 void return types 2019-02-03 23:32:02 +01:00
Tomas Votruba
0db2b07d49 rename *.yml to *.yaml 2019-02-03 18:46:45 +01:00
Tomas Votruba
85f698b71c move config to /config dir 2019-02-03 18:30:33 +01:00
Tomas Votruba
cecd62864f remove TrailingCommaArgumentsRector, let that to token cs 2019-01-25 17:01:13 +01:00
Tomas Votruba
bd8b5cdb75 add NullCoalescingOperatorRector to PHP 7.4 [skip ci] 2019-01-22 21:43:03 +01:00
Tomas Votruba
607da366aa fix ClassReplacerRector for class to interface rename [closes #950] 2019-01-14 12:46:19 +01:00
Tomas Votruba
c18a542485 [PHP] Add RealToFloatTypeCastRector 2019-01-12 20:37:08 +01:00
Tomas Votruba
dc9532abae add ConsecutiveNullCompareReturnsToNullCoalesceQueueRector 2019-01-10 21:08:38 +01:00
Tomas Votruba
bb8652a9b0 remove NullCoalescingOperatorRector - not part of PHP itself 2019-01-08 18:56:43 +01:00
Tomas Votruba
e6a5f55f94 drop ArrayToYieldDataProviderRector instead, update docs 2019-01-03 17:39:25 +01:00
Tomas Votruba
7f50b8b5a6 Add ReturnArrayClassMethodToYieldRector 2019-01-03 17:39:25 +01:00
Tomas Votruba
ca1588309b Add YieldClassMethodToArrayClassMethodRector 2019-01-03 17:39:25 +01:00
Tomas Votruba
af1825f4de [CodeQuality] Add JoinStringConcatRector 2019-01-03 14:03:27 +01:00
Tomas Votruba
3414bd925e [CodingStyle] Add RemoveUnusedAliasRector 2019-01-02 20:22:58 +01:00
Tomas Votruba
38faba727a [CodingStyle] Add SetTypeToCastRector 2019-01-02 17:02:47 +01:00
Tomas Votruba
c5e9428490 [PHPUnit] Add UseSpecificWillMethodRector 2018-12-31 22:07:12 +01:00
Tomas Votruba
fa1263b7c8 add missing rectors to mysql_to_myslqi 2018-12-31 18:47:30 +01:00
Tomas Votruba
f0be517a16 [PHP] Add ThisCallOnStaticMethodToStaticCallRector 2018-12-31 18:47:30 +01:00
Tomas Votruba
dd5956bd9d [PHP] Add StaticCallOnNonStaticToInstanceCallRector 2018-12-31 18:28:12 +01:00
Tomas Votruba
d1b5b9743a [PHP 7.3] Add IfToSpaceshipRector 2018-12-31 17:46:34 +01:00
Tomas Votruba
e89a0c1b4d [CodeQuality] Add SimplifyIfElseToTernaryRector 2018-12-31 12:52:52 +01:00
Tomas Votruba
823c3c076b [CodeQuality] Add SingleInArrayToCompareRector [closes #858] 2018-12-31 12:22:21 +01:00
Tomas Votruba
d55cd61803 [PHP 7.4] Add MbStrrposEncodingArgumentPositionRector 2018-12-31 10:47:08 +01:00
Tomas Votruba
4b1ab008ef [Php 7.4] Add GetCalledClassToStaticClassRector 2018-12-31 10:25:07 +01:00
Tomas Votruba
d080786248 [PHP 7.4] Add ClassConstantToSelfClassRector 2018-12-31 01:55:45 +01:00
Tomas Votruba
218f4c2a50 [PHP 7.4] Add ExportToReflectionFunctionRector 2018-12-31 01:42:02 +01:00
Tomas Votruba
d016738087 [PHP 7.4] Add FilterVarToAddSlashesRector 2018-12-31 01:35:24 +01:00
Tomas Votruba
2cf31cfd81 [PHP 7.4] Add ArrayKeyExistsOnPropertyRector 2018-12-31 01:25:18 +01:00
Tomas Votruba
41b0a2601f [PHP 7.4] Add function deprecations 2018-12-31 01:25:18 +01:00
Tomas Votruba
00e25abb89 [CodeQuality] Add SimplifyForeachToArrayFilterRector 2018-12-28 18:03:15 +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
280d2bbc6d add PHP 7.3 deprecation references 2018-12-25 20:44:12 +01:00
Tomas Votruba
1c093821a3 [CodeQuality] Add SimplifyTautologyTernaryRector 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
Tomas Votruba
7a2bb9148a [DeadCode] Add RemoveUnusedForeachKeyRector 2018-12-25 20:44:12 +01:00
Tomas Votruba
b09976b828 [DeadCode] Add RemoveDuplicatedArrayKeyRector 2018-12-25 20:44:12 +01:00
Tomas Votruba
26b83be1f7 [CodingStyle] Add CompleteVarDocTypeConstantRector 2018-12-22 15:22:44 +01:00
Tomas Votruba
421b307965 rename *ScalarTypehint to *TypeDeclaration 2018-12-22 12:32:32 +01:00
Tomas Votruba
9cb3484b36 add EasyAdminBundle 2.0 level 2018-12-18 18:59:32 +01:00
Tomas Votruba
71ab6b5599 Add DeMorgan simplify Rector + update create command process 2018-12-16 22:37:30 +01:00
Tomas Votruba
caea1ec029 Add LogicalOrToBooleanorRector [closes #792] 2018-12-16 22:13:26 +01:00
Tomas Votruba
558fa593c3 Add RegexDashEscapeRector 2018-12-16 15:22:46 +01:00
Tomas Votruba
62dd290641 apply code-quality level 2018-12-15 21:08:00 +01:00
Tomas Votruba
2f92e5e111 add FunctionLikeNodeCollector, improve RemoveExtraParametersRector 2018-12-15 21:07:05 +01:00
Tomas Votruba
3376254f77 Add CreateFunctionToAnonymousFunctionRector 2018-12-15 21:07:05 +01:00
Tomas Votruba
7ed7368dac add TernaryToElvisRector 2018-12-15 21:07:05 +01:00
Tomas Votruba
daa8f01688 Add StringsAssertNakedRector 2018-12-15 21:07:05 +01:00
Tomas Votruba
8b43393e6a Add TernaryToSpaceshipRector 2018-12-15 21:07:05 +01:00
Tomas Votruba
e7e01659ef Add ParseStrWithResultArgumentRector 2018-12-15 21:07:05 +01:00
Tomas Votruba
f3398e3acb Add ReduceMultipleDefaultSwitchRector 2018-12-15 21:07:05 +01:00
Tomas Votruba
8d783a68bd Add RemoveExtraParametersRector 2018-12-15 21:07:05 +01:00
Tomas Votruba
cac89cbb9a add NullCoalescingOperatorRector 2018-12-14 22:45:07 +01:00
Tomas Votruba
f4e883f6f2 add IsObjectOnIncompleteClassRector 2018-12-14 22:31:21 +01:00
Tomas Votruba
321bc830f4 add GetClassOnNullRector 2018-12-14 22:17:56 +01:00
Tomas Votruba
3709a432ff add PHP 72 note 2018-12-14 21:03:30 +01:00
Tomas Votruba
665e58a7fa keep visually similar lines in SimplifyUselessVariableRector 2018-12-13 22:07:27 +01:00
Tomas Votruba
d376e90319 add Mysql to Mysqli set 2018-12-13 12:16:39 +01:00
Tomas Votruba
a43986832f update CakePHP 3.7 set [closes #830] 2018-12-13 01:11:14 +01:00
Tomas Votruba
2e3634f4ae add WrapReturnRector 2018-12-12 20:41:00 +01:00
Tomas Votruba
925b046f0c update Symfony 4.2 and Symfony 4.1 sets 2018-12-12 20:41:00 +01:00
Tomas Votruba
04626f4e5d add TybleStyle changes in Symfony 4 2018-12-12 18:48:58 +01:00
Tomas Votruba
4915ab1f20 use AbstractController over Controller in FrameworkBundle 2018-12-12 16:58:47 +01:00
Tomas Votruba
45248dee04 Add AssertEqualsParameterToSpecificMethodsTypeRector 2018-12-11 13:02:28 +01:00
Tomas Votruba
ef2e74a2ac add Mock class rename 2018-12-10 16:01:14 +01:00
Tomas Votruba
a59e35678c Add SpecificAssertInternalTypeRector 2018-12-10 16:01:14 +01:00
Tomas Votruba
5c7b3cdb7a make code-quality level explicit to improve overview of all Rectors + now automated with create command 2018-12-09 22:18:33 +01:00
Sullivan SENECHAL
35714c5df4
Fix doctrine rule file name 2018-12-07 11:46:01 +01:00
Tomas Votruba
68b7076fd0 remove YamlRector
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-06 01:13:36 +01:00
Tomas Votruba
de83b97c8d fix PHPStormVarAnnotationRector namespace [closes #814]
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-05 18:35:34 +01:00
Tomas Votruba
9faa7fbd4b [PHP] Add *ScalarTypehintRector + *TypeInfo
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-01 15:55:46 +01:00
Tomas Votruba
296d3a32e4 Make PseudoNamespaceToNamespaceRector config consistent with rest of Rectors [closes #781]
Signed-off-by: Tomas Votruba <tomas.vot@gmail.com>
2018-12-01 13:15:17 +01:00
Tomas Votruba
e0a399eefc [PHPStan] Add PHPStormVarAnnotationRector 2018-11-17 01:20:21 +02:00
Tomas Votruba
dabf8bac49 [PHPStan] Add RecastingRemovalRector 2018-11-08 13:52:02 +01:00
Tomas Votruba
c3558f65c4 [CodingStyle] Add NullableCompareToNullRector + add NodeFactoryTrait + cleanup 2018-11-03 18:01:19 +01:00
Tomas Votruba
d7692953a4 php72 - fix Rector name 2018-11-03 00:29:56 +01:00
Tomas Votruba
37c1301c5e [Symfony] Add RootNodeTreeBuilderRector 2018-11-02 16:43:06 +01:00
Tomas Votruba
c4aa54142f [Symfony] Add ArrayArgumentProcessRector 2018-11-02 10:31:09 +01:00
Tomas Votruba
023522acf2 Make StaticCallToFunctionRector configuration consistent with type as key 2018-10-31 20:57:26 +01:00
Joseph Frazer
e410dcf6a6
use correct rector name
The rector name is actually for a method, not a function.
2018-10-30 15:34:04 -04:00
Tomas Votruba
bc0406e763 fix incorrect WhileEachToForeachRector service name in lvl php72 [closes #742] 2018-10-30 18:45:32 +01:00
Tomas Votruba
7b669d89ba [Doctrine] Make ReplaceParentRepositoryCallsByRepositoryPropertyRector 2018-10-28 17:50:10 +01:00