Tomas Votruba
5f3b4bde1f
[Naming] Allow does in MakeIsserClassMethodNameStartWithIsRector ( #4486 )
2020-10-26 10:22:20 +00:00
Tomas Votruba
b2c9e3b127
[DeadCode] Make RemoveUnusedPrivateConstantRector skip enum ( #4419 )
2020-10-15 13:04:58 +00:00
Tomas Votruba
c84690baa6
[DeadCode] Various improvements ( #4417 )
2020-10-15 14:15:01 +02:00
Abdul Malik Ikhsan
0680e70035
[naming] move UnderscoreToCamelCaseLocalVariableNameRector to Naming Set ( #4346 )
2020-10-04 12:48:43 +02:00
Igor
24f499c9d8
[Naming] Apply ParamRenamer without conflict resolution for Naming set ( #4335 )
2020-10-03 21:18:12 +02:00
Tomas Votruba
8ae3868a57
[Restoration] Add RestoreFullyQualifiedNameRector ( #4336 )
...
* [Restoration] Add RestoreFullyQualifiedNameRector
* update docs
* use service aware test case for PHPStan rules
* improve FullyQualifiedNameMatcher
* cs fixes
* add return doc resolution
* composer: bump to symfony 4.4/5.1
2020-10-01 19:45:29 +00:00
Igor
6350692b98
[Naming] Move UnderscoreToCamelCaseVariableNameRector to Naming set ( #4312 )
2020-09-28 22:35:45 +02:00
Igor
ccb086aab7
[Naming] Make UnderscoreToCamelCasePropertyNameRector work with PropertyRenamer ( #4283 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-28 20:29:37 +02:00
Igor
52f02d8c91
[Naming] Make bool property respect is/has/was naming ( #4215 )
2020-09-22 20:22:10 +00:00
Igor
19f700ba4e
[Naming] Factory to create PropertyRename ( #4255 )
...
* [Naming] Use factory to create PropertyRename
* Ignore new phpstan issues
* Move fixture to FixtureBasic to solve CI issue
* fix setUp vs dataProvider race condition
* fix autoload
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-21 20:45:43 +00:00
Igor
f2ecdeb0b1
[Naming] Foreach over "data", renames to "datum" ( #4221 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-15 10:23:13 +02:00
dobryy
f69ea0e023
[Naming] Rename foreach value variable to match method return type ( #4130 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-09 10:52:43 +02:00
dobryy
4e91b78c7b
[Naming] Rename the rule to make it correspond with what rule does ( #4076 )
...
* [Naming] Rename the rule to make it correspond with what rule does
* [Naming] Update doc
2020-08-30 21:01:33 +02:00
Tomas Votruba
c1653070f5
[phpstan] Add rule for complex config ( #4015 )
...
* [phpstan] Add ForbiddenComplexArrayConfigInSetRule
* add MethodCallRename value object
* [SymfonyPhpConfig] Add array to value object configuration rule
* apply first MethodCallRename value object
2020-08-24 22:26:14 +00:00
TomasVotruba
6f53f55798
fix cs
2020-08-22 19:13:22 +02:00
Tomas Votruba
766853315e
[Naming] Add MakeIsserClassMethodNameStartWithIsRector ( #4005 )
2020-08-22 19:04:25 +02:00
Tomas Votruba
9164d46a3b
[Naming] Add MakeGetterClassMethodNameStartWithGetRector ( #4003 )
...
* [Naming] Add MakeGetterClassMethodNameStartWithGetRector
* [rector] [Naming] Add MakeGetterClassMethodNameStartWithGetRector
* [cs] [Naming] Add MakeGetterClassMethodNameStartWithGetRector
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-22 15:46:09 +00:00
dobryy
857fd25168
RenameParamToMatchTypeRector doesn't skip variable that is used in callback function use
statement ( #3970 )
...
* Include use in rename
* [rector] Include use in rename
* [rector] [rector] Include use in rename
* [cs] [rector] Include use in rename
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-21 17:13:56 +00:00
Tomas Votruba
7212366606
[Naming] Decouple RenameParamToMatchTypeRector ( #3906 )
...
* [Naming] Decouple RenameParamToMatchTypeRector
* remove overrlaping useless test fixtures
* [rector] remove overrlaping useless test fixtures
* [cs] remove overrlaping useless test fixtures
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-04 18:30:31 +00:00
Tomas Votruba
b61d22d56e
[Naming] Allow uuid to have name id ( #3883 )
...
* [Naming] Allow uuid to have name id
* add REPOSITORY_AS_SERVICE set
* [rector] add REPOSITORY_AS_SERVICE set
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-03 17:52:40 +00:00
TomasVotruba
110316f471
[Naming] fix tag rename in RenamePropertyToMatchTypeRector
2020-07-27 11:16:36 +02:00
TomasVotruba
4656aa0758
add missed param variable rename
2020-07-27 10:51:44 +02:00
TomasVotruba
1a82613c3f
rename ValidateFixtureCommand to more explicit ValidateFixtureContent
2020-07-27 10:51:10 +02:00
TomasVotruba
791fe51b4a
fix variable rename on static call
2020-07-20 01:23:11 +02:00
TomasVotruba
14474809d9
cover nullable type
2020-07-19 20:48:56 +02:00
TomasVotruba
cb13e7116e
skip dynamic name
2020-07-19 20:21:52 +02:00
TomasVotruba
9fbc8b5a37
decouple NamingConventionAnalyzer
2020-07-19 19:29:31 +02:00
TomasVotruba
25d5dfb613
skip any class type with children, to prevent narrow naming
2020-07-19 18:02:11 +02:00
TomasVotruba
36f6954c28
skip starts/ends with convention naming
2020-07-19 17:23:51 +02:00
TomasVotruba
133683dc3d
[Naming] Skip return without type and with args
2020-07-19 17:23:38 +02:00
TomasVotruba
af6d35dc4d
skip call() based conventions
2020-07-19 14:30:07 +02:00
TomasVotruba
8b831a75b8
skip non-call expressions, as they create something new and thus have different name
2020-07-19 14:18:07 +02:00
TomasVotruba
fce6ed59a4
decopule Php74Test to own class to simplify scope
2020-07-19 14:18:07 +02:00
TomasVotruba
6912fac08b
skip array return types
2020-07-19 13:53:57 +02:00
TomasVotruba
039b871cbf
remove failing docblock test case
2020-07-19 13:48:16 +02:00
dobryy
3692798de6
[Naming] Name variable after get method
2020-07-19 10:23:32 +02:00
TomasVotruba
395ced5f57
fix RenamePropertyToMatchTypeRector for nested params
2020-07-06 23:47:33 +02:00
TomasVotruba
dad1812f79
[Naming] Make rename property/variable skip date time at convention
2020-07-06 22:48:33 +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
477308c030
[Naming] Add RenameVariableToMatchNewTypeRector
2020-06-29 23:09:51 +02:00
TomasVotruba
7f49658112
change test(string ) to test(SmartFileInfo ) in tests
2020-06-25 20:02:36 +02:00
TomasVotruba
ffeb6c9f53
[PSR-4] Add test for NormalizeNamespaceByPSR4ComposerAutoloadRector
2020-05-14 00:35:00 +02:00
TomasVotruba
163b7831cb
add support for nullable type
2020-05-03 13:26:26 +02:00
TomasVotruba
e2240a0eca
fix suffix renamer
2020-05-03 13:12:38 +02:00
TomasVotruba
3d5c07f191
add support for alias in PropertyNaming
2020-05-03 13:00:29 +02:00
TomasVotruba
8d1b254715
[Naming] Fix duplicate name on already existing
2020-05-03 12:53:25 +02:00
TomasVotruba
00b3184eb3
[Naming] Add RenamePropertyToMatchTypeRector
2020-05-02 22:36:11 +02:00