510 Commits

Author SHA1 Message Date
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
172653b606
drop EnsureDataProviderInDocBlockRector, job for coding standards (#3938) 2020-08-10 10:40:22 +02:00
dobryy
05ece4e8d1
[Order] Order properties by visibility (#3929) 2020-08-08 00:21:17 +02:00
Tomas Votruba
ec28719c6c
make use of NodeConnectingVisitor + improve generate Rector docs (#3925) 2020-08-07 11:30:05 +02:00
Tomas Votruba
42caae413d
drop SimpleArrayCallableToStringRector, as it makes code magical and harder to proces (#3920) 2020-08-06 09:48:34 +00:00
Tomas Votruba
4c05dcd9d0
Rename StaticCallToAnotherServiceConstructorInjectionRector to StaticCallToMethodCall (#3909) 2020-08-05 00:56:59 +02: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
b2054a32fc
Provide existing expression to get type (#3899)
* add support to provide existing expression instead of addgin a property with type

* [rector] add support to provide existing expression instead of addgin a property with type

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-04 13:12:43 +00:00
Tomas Votruba
3ddf965146
FunctionTo* correction renames, add PHPStan rule to check correct category of rule (#3896)
* rename Function* to Func* rector rule

* [Utils] Add RequireRectorCategoryByGetNodeTypesRule

* [PHPUnit] Rename SpecificMethod to MethodCall category to respect subscriberd nodes

* [rector] [PHPUnit] Rename SpecificMethod to MethodCall category to respect subscriberd nodes

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-04 10:02:17 +00:00
Tomas Votruba
7cda57615c
rename FunctionToStaticCallRector to FuncCallToStaticCallRector (#3895)
* rename FunctionToStaticCallRector to FuncCallToStaticCallRector

* rename FunctionToNewRector to FuncCallToNewRector

* remove RenameFuncCallToStaticCallRector, duplicate of FuncCallToStaticCallRector
2020-08-04 08:25:41 +00:00
Tomas Votruba
97de8eb625
[Generic] FuncCallToMethodCall only in case of parent class (#3894)
* [Generic] Improve FuncCallToMethodCallRector

* [rector] [Generic] Improve FuncCallToMethodCallRector

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-03 23:58:03 +00:00
TomasVotruba
5789ef39d5 update docs 2020-08-04 00:21:59 +02: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
91bda1b75b
[NetteCodeQuality] Get component (#3870) 2020-08-02 11:39:52 +02:00
Tomas Votruba
fa2caf77ed
[NetteCodeQuality] Add ArrayAccessSetControlToAddComponentMethodCallRector (#3867) 2020-08-02 00:18:40 +02:00
Tomas Votruba
a84528af9e
[Docs] Show constants over values (#3866)
* [docs] decouple RectorCodeSamplePrinter

* decopule printers

* make sure constnat are used in docs

* update docs
2020-08-01 20:55:31 +00:00
TomasVotruba
552a3a9032 update docs 2020-08-01 18:26:17 +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
Marek Šimeček
ab8d290b14
method call remover rector (#3850)
Co-authored-by: Marek Šimeček <marek.simecek@footshop.cz>
2020-08-01 11:49:32 +02:00
TomasVotruba
ff8d6d265b [MagicDisclosure] fluent removal improvements 2020-07-31 19:04:51 +02:00
TomasVotruba
b9fd318ac2 skip on method call 2020-07-30 22:16:38 +02:00
TomasVotruba
dc14ddd0b9 [PHP 8.0] Add ChangeSwitchToMatchRector 2020-07-30 18:19:53 +02:00
TomasVotruba
55b60ead93 improve configured code samples to use constants over direct values 2020-07-30 17:46:36 +02:00
TomasVotruba
0647a0e922 update docs to use call() 2020-07-30 17:42:01 +02:00
TomasVotruba
fe72e003ed use constants in configs 2020-07-30 13:53:53 +02:00
dobryy
e6ce370875 [DX] Update README and other docs files to use PHP syntax for configs 2020-07-29 19:18:07 +02:00
TomasVotruba
d4fc22bd55 fix typo 2020-07-29 10:33:10 +02:00
TomasVotruba
1e7ad43b4d rename CreateRector command to only Create 2020-07-29 02:27:21 +02:00
TomasVotruba
7c01151ec6 Move Core Rector rules to Generic namespace, to prevent mixup with Core code 2020-07-29 02:05:52 +02:00
TomasVotruba
2eddb274c2 use standard __ for vars 2020-07-28 23:54:13 +02:00
Tomas Votruba
1743aa969c
Merge pull request #3808 from rectorphp/case-class 2020-07-27 20:46:15 +02:00
TomasVotruba
8c31bd27e4 [CodeQuality] Add case class name fix 2020-07-27 20:45:41 +02:00
dobryy
6547082ddd [Order] Order any param (Nullable or with default value) that has type of Object 2020-07-27 16:39:34 +02:00
TomasVotruba
d94e529f29 [Nette] Improve AddDatePickerToDateControlRector 2020-07-27 10:44:51 +02:00
TomasVotruba
c28a5a9746 [Celebrity] Merge to code-quality 2020-07-27 10:18:03 +02:00
TomasVotruba
86d8666438 [Nette] move quality rules to nette-code-quality directory 2020-07-26 18:48:18 +02:00
TomasVotruba
0650075005 [Nette] Add ChangeControlArrayAccessToAnnotatedControlVariableRector 2020-07-26 15:54:46 +02:00
dobryy
99494d4c32 [Order] Order __constructor dependencies by type alphabetically 2020-07-26 15:11:28 +02:00
TomasVotruba
dec0975c22 [PHP 8.0] Add ClassPropertyAssignToConstructorPromotionRector 2020-07-26 11:42:14 +02:00
TomasVotruba
350a1be7ba [Nette] Improve AddDatePickerToDateControlRector 2020-07-25 16:23:30 +02:00
TomasVotruba
0c750b7e93 update docs 2020-07-25 12:46:48 +02:00
TomasVotruba
c0fd5a3633 improve docs 2020-07-24 17:28:43 +02:00
TomasVotruba
0188d802d2 use SmartFileSystem over Nette FileSystem 2020-07-24 14:39:10 +02:00
TomasVotruba
8d556bf2fc update docs with PHP snippets 2020-07-24 13:49:10 +02:00
TomasVotruba
78a0331708 [SymfonyPhpConfig] Add AddEmptyLineBetweenCallsInPhpConfigRector 2020-07-22 23:50:58 +02:00
TomasVotruba
d4f6c497a7 [Nette] Add form dim access to standalone node control 2020-07-22 21:38:34 +02:00
Jonathan Goode
d0b791d823 Create WrapEncapsedVariableInCurlyBracesRector 2020-07-21 19:06:38 +01:00
Jonathan Goode
7da3310cf6 Move existing Rector from the coding-style set to the php70 set 2020-07-21 10:23:25 +01:00
TomasVotruba
2452ce02be fix laravel set path 2020-07-21 10:02:50 +02:00
Jonathan Goode
287af13177 Create WrapVariableVariableNameInCurlyBracesRector 2020-07-20 18:23:19 +01:00