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
Tom Pavelec
36b24b2bfc
fix: swapped naming of camel and pascal cases ( #4047 )
2020-08-28 18:07:15 +02:00
Tomas Votruba
dbda0beee8
[DX] Last value objects ( #4035 )
...
* [DX] Add CallToFluent
* [DX] Add ArrayToFluentCall
* [DX] Add FactoryMethod
2020-08-26 14:25:28 +00:00
Tomas Votruba
dfe158e2da
[DX] Various value objects added ( #4034 )
...
* [DX] Add TypeToStaticCall
* [DX] Add ClassConstantRename
* [DX] Add IssetUnsetToMethodCall
* [DX] Add MethodToYield
* drop unamtained shopware sets
* [DX] Add RenamedAnnotationInType
* [DX] Add MethodCallWrap
* [DX] Add RenamedProperty
* [DX] Add StringToClassConstant
* [DX] Add ArgumentSwap
* simplify rename function rector
* [DX] Add RemovedFunctionArgument
* [DX] Add MethodCallToService
* [DX] Add UnprefixedMethodToGetSet
* [DX] Add PseudoNamespaceToNamespaceRector
* [DX] Add FunctionArgumentSwap
* [DX] Add StaticCallToFunction
* [DX] Add ParentCallToProperty
* [DX] Add ParentDependency
* [DX] Add CallWithParamRename
* [DX] Added MethodCallRenameWithAddedArguments
* [DX] Add PropertyToMethodCall
* [DX] Add PropertyToMethodCall
* [rector] [DX] Add PropertyToMethodCall
* [cs] [DX] Add PropertyToMethodCall
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-26 10:54:53 +00:00
Tomas Votruba
41b679cb2a
[DX] Replacing arrays with objects ( #4008 )
...
* [phpstan] Add forbidden array destruct to prevent array mess
* use ArrayCallable value object
* add OpeningAndClosingSpace
* drop ConstructorInjectionToActionInjectionRector, antipattern
* use value objects
* [rector] use value objects
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-23 09:39:09 +00:00
dobryy
2e7bdca4e2
[DX] Rename namespaces respect node type ( #3973 )
2020-08-18 17:57:30 +02:00
Tomas Votruba
1c4b510513
PHPStan: require iterable types ( #3936 )
...
* phpstan: require iterable types
* add link on relative path and line
* fix missing class type
* typed array in Rector code + add data provide support resolver
* remove duplicated set
* drop unused yaml ecs config
* add out-of-the-box directory for 3rd party packages
* static fixes
* [rector] static fixes
* [cs] static fixes
* [rector] [cs] static fixes
* generic types
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-11 10:59:04 +00:00
dobryy
e4af8cc721
[Order] Order constants by visibility ( #3934 )
...
* [Order] Order constants by visibility
* phpstan iterable types fixes
* Fix PHPStan issue (unrelated to PR)
* Doc Update
2020-08-10 21:59:40 +00:00
Tomas Votruba
e35131524c
[Nette 3.0] Various rules updates ( #3878 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-03 09:26:01 +02:00
Tomas Votruba
55acb3578a
[MagicDisclosure] Add SetterOnSetterMethodCallToStandaloneAssignRector ( #3860 )
...
* [MagicDisclosure] Add MethodCallOnSetterMethodCallToStandaloneAssignRector
* merge ChainMethodCallManipulator to ChainMethodCallNodeAnalyzer for better DX
* [MagicDisclosure] Add in arg defluent
* rebase
2020-08-01 11:41:16 +00:00
Tomas Votruba
76b4ab7586
[Defluent] New set + various improvements ( #3853 )
...
* remove dead-else branch
* add defluent set
* fix type to match
* use constants over strings
* fixup! use constants over strings
* Add fluent as arg support to DefluentMethodCallRector
Co-authored-by: rector-bot <tomas@getrector.org>
2020-07-31 23:08:16 +00:00
TomasVotruba
fe72e003ed
use constants in configs
2020-07-30 13:53:53 +02:00
TomasVotruba
853b515870
add ConfigurableRectorInterface
2020-07-29 21:02:29 +02:00
TomasVotruba
7ed4cb19c4
simplify config globs
2020-07-25 20:14:28 +02:00
TomasVotruba
c2c1066374
[rector] apply on rules
2020-07-19 20:52:42 +02:00
TomasVotruba
0944b75f7e
correct namespace in configs
2020-07-18 11:58:17 +02:00
TomasVotruba
0c816d60f8
[config] switch rules config from YAML to PHP
2020-07-16 12:48:54 +02:00
TomasVotruba
3c3c3a9530
remove func call from methods calls
2020-07-06 01:59:41 +02:00
TomasVotruba
a8a6e7bcad
rename file to fileInfo
2020-06-30 01:45:05 +02:00
TomasVotruba
7f49658112
change test(string ) to test(SmartFileInfo ) in tests
2020-06-25 20:02:36 +02:00
TomasVotruba
c504062ec2
add typed property if on PHP 7.4
2020-06-24 15:09:50 +02:00
Edgaras Janušauskas
bfcf17c0fc
Add ArrayToFluentCallRector
2020-06-12 15:09:24 +03:00
TomasVotruba
b0bd524e53
apply constant decouple
2020-05-06 23:40:31 +02:00
TomasVotruba
491a417842
various @todo resolved
2020-05-06 17:37:27 +02:00
TomasVotruba
c64a71ecad
phsptan fixes
2020-04-25 16:45:36 +02:00
TomasVotruba
4c4e56b168
make use of isStaticCallNamed()
2020-04-05 00:52:49 +02:00
TomasVotruba
144f8cad12
apply rules
2020-03-29 19:09:04 +02:00
TomasVotruba
c011720d4f
add param name to docs
2020-02-23 21:58:25 +01:00
TomasVotruba
bc24bb12ff
prevent getName() on StaticCall or MethodCall
2020-02-21 16:41:33 +01:00
TomasVotruba
3e5dd77bb6
move Rector-rule based packages from /packages to /rules
2020-02-11 13:41:37 +01:00