10001 Commits

Author SHA1 Message Date
dobryy
d893ee7209
[Order] Order first level class statements (#3968)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-16 12:08:37 +02:00
TomasVotruba
3d5585aa74 add changeItem() 2020-08-16 01:53:21 +02:00
TomasVotruba
5a35e0a069 add get options to ColumnTagValueNode 2020-08-16 01:43:02 +02:00
TomasVotruba
4562e9b30e fix php snippet detection 2020-08-16 01:35:22 +02:00
TomasVotruba
abbb287d0b update rector recipe 2020-08-16 01:29:16 +02:00
TomasVotruba
96c4272286 fix path 2020-08-16 00:54:02 +02:00
Tomas Votruba
664388561d
Recipe array to object (#3966)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-16 00:49:15 +02:00
Mark Sch
2d7469efb8
Add AssertEqualsToSameRector (#3958) 2020-08-15 19:35:07 +02:00
Tomas Votruba
6751ff37e8
make sure recipe is loaded (#3964) 2020-08-15 11:39:08 +00:00
Tomas Votruba
a7a72e2fb3
add test case for 3rd party generator + fix it (#3963)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-15 12:39:52 +02:00
Michał Włodarczyk
e91aed6cdc
Fix sample configuration generation (#3957) 2020-08-15 11:25:01 +02:00
Tomas Votruba
9946e88c9a
[RectorGenerator] prevent incorrect package configuration (#3962)
* preven incorrect package configuration

* update create-recipe to rector-recipe, with prefix and better discoverability

* [rector] update create-recipe to rector-recipe, with prefix and better discoverability

* [cs] update create-recipe to rector-recipe, with prefix and better discoverability

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-15 09:14:54 +00:00
TomasVotruba
94064a3dd1 fix template paths for package 2020-08-14 17:44:42 +02:00
TomasVotruba
e55d2b7bf6 add missing easy-testing 2020-08-14 17:36:24 +02:00
Tomas Votruba
33d992497a
[Doctrine] Add constructor getRepository to service (#3954) 2020-08-13 01:04:23 +02:00
Tomas Votruba
4fce95c509
add easy-ci (#3953) 2020-08-12 22:59:25 +02:00
Tomas Votruba
9f9194188f
add new ManagerRegistry namespace (#3952) 2020-08-12 20:05:04 +00:00
TomasVotruba
27daba1fb3 fix path 2020-08-12 20:32:35 +02:00
Tomas Votruba
74fc11088d
move Polyfill to rules (#3951) 2020-08-12 18:30:42 +00:00
Tomas Votruba
8784a81ff7
[Fluent] Add factory case (#3950) 2020-08-12 20:24:52 +02:00
Tomas Votruba
89537b830f
use symplify rule (#3949) 2020-08-12 13:07:43 +00:00
Tomas Votruba
f71b242924
[Defluent] Allow DateTime to be fluent (#3947)
* ignore prefixed conflcits

* note

* skip date-time from defluencing

* drop parameter name guard, not needed anymore

* make use of addNodesAfterNode()
2020-08-12 12:32:45 +00:00
Tomas Votruba
c25cd2e178
misc (#3946)
* ignore prefixed conflcits

* note
2020-08-12 10:03:15 +00:00
Tomas Votruba
106fb1101a
service entity repository combo (#3945)
* service entity repo combo

* apply cs, add tests, fixes

* update doc parser

* [Generic] Add RemoveAnnotationRector

* add nullsafe nodes to docs

* drop AddEmptyLineBetweenCallsInPhpConfigRector, not that useful

* namespace and phpstan fix

* [ci] merge PHPStan compat to one job, no gain split attention

* [rector] [ci] merge PHPStan compat to one job, no gain split attention

* [cs] [ci] merge PHPStan compat to one job, no gain split attention

Co-authored-by: Marek Šimeček <marek.simecek@footshop.cz>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-12 09:44:34 +00:00
Markus Podar
26343461cd
README: fix typo (#3944)
Seems the formatting got off or something
2020-08-12 11:09:31 +02:00
dobryy
a3be7e03ca
[DX] Rename namespaces of Rector rules to respect node, instead of domain (#3911) 2020-08-12 11:08:59 +02:00
Tomas Votruba
7a603dde2d
[TypeDeclaration] Add nested key support (#3941)
* [TypeDeclaration] Add nested key support

* [rector] [TypeDeclaration] Add nested key support

* [cs] [TypeDeclaration] Add nested key support

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-11 11:58:03 +00: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
172653b606
drop EnsureDataProviderInDocBlockRector, job for coding standards (#3938) 2020-08-10 10:40:22 +02:00
dobryy
0f63ef4b1c
[Order] Visibility rules refactoring (#3933)
* [Order] Visibility rules refactoring

* [Order] Import missed FQCN

* phpstan iterable types fixes
2020-08-09 19:21:31 +02:00
dobryy
86e1ab7e0a
fixture for the issue #3931 (#3937) 2020-08-09 00:21:45 +02:00
dobryy
05ece4e8d1
[Order] Order properties by visibility (#3929) 2020-08-08 00:21:17 +02:00
dobryy
29d44284cc
[Order] Order class methods by visibility (#3923)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-07 18:23:40 +02:00
Tomas Votruba
49e28b271a
update create-rector.php.dist (#3926) 2020-08-07 11:35:11 +02:00
Tomas Votruba
ec28719c6c
make use of NodeConnectingVisitor + improve generate Rector docs (#3925) 2020-08-07 11:30:05 +02:00
Tomas Votruba
734d11f6c9
[SOLID] Skip func calls that change variable in ChangeReadOnlyVariableWithDefaultValueToConstantRector (#3916) 2020-08-07 00:25:25 +00:00
Tomas Votruba
7da338b953
[CodingStyle] Make ConsistentPregDelimiterRector configurable (#3924) 2020-08-06 23:55:56 +02:00
Tomas Votruba
38d13b480a
make ConsistentPregDelimiterRector configurable (#3922) 2020-08-06 19:13:59 +02:00
Tomas Votruba
0f25a84740
[CodeQuality] Add argument support to ArrayThisCallToThisMethodCallRector (#3921)
* make array method call to closure

* [CodeQuality] Add ArrayThisCallToThisMethodCallRector
v0.7.63
2020-08-06 10:32:51 +00:00
Tomas Votruba
42caae413d
drop SimpleArrayCallableToStringRector, as it makes code magical and harder to proces (#3920) 2020-08-06 09:48:34 +00:00
Zing
c60fad6976
Fix set path was not found (#3918) 2020-08-06 09:11:41 +02:00
Tomas Votruba
6b0249a025
drop slevomat cs to prevent breaking build for last months (#3917) 2020-08-05 22:57:39 +00:00
TomasVotruba
2d8cce7da7 require phpdoc-parser 0.4.9 2020-08-05 23:24:24 +02:00
dobryy
411d76f9a9
[Order] Make OrderPrivateMethodsByUseRector process file in one run u… (#3889)
* [Order] Make OrderPrivateMethodsByUseRector process file in one run using while loop

* [Order] Enable rule in CI

* [rector] [Order] Enable rule in CI

* [cs] [Order] Enable rule in CI

* [Order] Use constant for number of max attempts and throw exception when exceeded.

* [rector] [Order] Use constant for number of max attempts and throw exception when exceeded.

* [cs] [Order] Use constant for number of max attempts and throw exception when exceeded.

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-05 22:45:36 +02:00
TomasVotruba
c7731e63e3 compiler: remove conflicting dev deps v0.7.62 2020-08-05 16:33:37 +02:00
TomasVotruba
e9e7a5dc89 make use SmartFileSystem is available 2020-08-05 16:30:30 +02:00
Tomas Votruba
5e0dfbd77a
re-use param in constructor (#3913) 2020-08-05 13:37:40 +00:00
Tomas Votruba
93905cb64c
cleanup (#3912)
* skip duplicated test

* assert for object configuration in StaticCallToMethodCallRectorů

* [rector] assert for object configuration in StaticCallToMethodCallRectorů

* [cs] assert for object configuration in StaticCallToMethodCallRectorů

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-05 07:58:27 +00:00
dobryy
056e50018c
[Order] Add test for StmtOrder (#3884)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-05 09:47:09 +02:00