Commit Graph

413 Commits

Author SHA1 Message Date
Tomas Votruba
d56e7982d0 Updated Rector to commit dedd4b55fe
dedd4b55fe make node_helper.php safe for similar names
2021-05-09 20:15:43 +00:00
Tomas Votruba
0ac0e54b02
[Naming] Removing underscore rules, rather handle with coding standards (#5868) 2021-03-15 23:24:43 +00:00
Abdul Malik Ikhsan
d7592f59ec
[Naming] Register RenameForeachValueVariableToMatchExprVariableRector to naming config set (#5696)
* [Naming] Register RenameForeachValueVariableToMatchExprVariableRector to naming config set

* fix property fetch not from this

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* fix

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* fixture fix

* phpstan

* [ci-review] Rector Rectify

* phpstan

* extract to separate method for collect assigns by name

* adding InflectorSingularResolver service

* skip single prefix and length >= 40

* add failing fixture to skip plural camel case

* use regex to get camel cases

* implemented singularize camel cased

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* phpstan

* handle singular verb news -> new

* [ci-review] Rector Rectify

* fixture fix

* handle has

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* phpstan

* phpstan

* handle left side By

* [ci-review] Rector Rectify

* re-use resolve call

* [ci-review] Rector Rectify

* phpstan

* [ci-review] Rector Rectify

* final touch

* final touch

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* use previous By in the middle

* update $childClassReflection->hasProperty($propertyName)

* [ci-review] Rector Rectify

* catchKeys

* regex fix

* fixture

* [ci-review] Rector Rectify

* try use check array

* Revert "try use check array"

This reverts commit adb9f767f2.

* use files

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-05 11:55:40 +01: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
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
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
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
TomasVotruba
2f927842a7 move sets to single /set directory 2020-07-21 00:46:53 +02:00