10317 Commits

Author SHA1 Message Date
Tomas Votruba
d204364e39 [ci] add conditional if on forks 2020-11-03 01:14:18 +01:00
Rod Elias
9af4223bd6
Fix Xdebug spelling (#4546) 2020-11-02 21:50:07 +01:00
Tomas Votruba
84d2cc41d2
[DeadCode] Fix removal of class under (#4545)
* [DeadCode] Fix removal of class under

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
0.8.48
2020-11-02 19:01:31 +00:00
Tomas Votruba
7f05247192 fix typo 0.8.47 2020-11-02 02:13:55 +01:00
Tomas Votruba
0233a4d086 [ci] add github.head_ref 2020-11-02 00:06:52 +01:00
Tomas Votruba
7ce55d6686
move step count to own method (#4541) 0.8.46 2020-11-01 21:41:07 +01:00
Tomas Votruba
42fcff97e3 remove unused file 2020-11-01 21:33:03 +01:00
Tomas Votruba
297ec316af
move suffix filesystem 3 (#4540) 2020-11-01 21:31:13 +01:00
Tomas Votruba
bb9aec10da space bug 2020-11-01 19:20:35 +01:00
Tomas Votruba
084805774b [ci] try head ref slug 2020-11-01 18:32:57 +01:00
Tomas Votruba
5c90d522e9 [ci] allow ci-review on master to show results 2020-11-01 18:05:37 +01:00
Tomas Votruba
b4d8f40b32 [ci] add branch location to pull 2020-11-01 18:01:43 +01:00
Tomas Votruba
3cc067997b [ci] try to fix pull on forks 2020-11-01 17:58:55 +01:00
Tomas Votruba
cf48b2ea83
decouple (#4534)
* decouple

* [ci-review] Rector Rectify

* fix static

Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-01 16:03:30 +00:00
Tomas Votruba
e7c1ded364
fix linter (#4537) 2020-11-01 16:57:12 +01:00
Tomas Votruba
c03b66f7cd
move suffix filesystem 2 (#4529)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-01 16:39:04 +01:00
Krystian Marcisz
3d4762b3b5
Bump EndBug/add-and-commit version to 5.1.0 (#4536) 2020-11-01 16:26:53 +01:00
Abdul Malik Ikhsan
d876f5bf59
[CodeQuality] Fixes #4516 Skip Apply ArrayThisCallToThisMethodCallRector on array inside property (#4533) 2020-11-01 14:32:48 +01:00
Abdul Malik Ikhsan
55a0400a62
Typo Fix funciton -> function (#4532) 2020-11-01 09:51:52 +01:00
Tomas Votruba
8542a3bcbc
Move from Filesystem rules to FileNode (#4528)
* make MoveServicesBySuffixToDirectoryRector with non-filesystem rector

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Apply coding standards

* fixup! make MoveServicesBySuffixToDirectoryRector with non-filesystem rector

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-31 21:39:09 +00:00
Mark Story
4d2a0e731d
Start ruleset for CakePHP 4.2 (#4526) 2020-10-31 20:23:33 +01:00
Petr Kessler
2c5693c8cf
rector.php.dist: added missing use for commented rule (#4524)
In the example of single rule registration there is a class which is unfortunatelly missing amongst use statements - simply uncommenting the line wouldn't work.
2020-10-31 18:00:11 +01:00
Tomas Votruba
5147844615
change RenameSpecFileToTestFileRector filesystem to normal one (#4525) 2020-10-31 16:20:30 +00:00
Tomas Votruba
562c96a6c2 drop coding machines strict rules, unused 2020-10-31 14:15:22 +01:00
Pierre du Plessis
f5c673b292
Check for property fetch type in DoctrineCollectionDoctype rector (#4454) 2020-10-31 14:14:42 +01:00
Christopher Davis
341a3221b8
Add a Doctrine DBAL 2.11 Rule Set (#4517) 2020-10-31 14:11:04 +01:00
Tomas Votruba
0513315056
Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node (#4522)
* Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node

* update DecoupleClassMethodToOwnClassRector

* [ci] add rebase jobp

* disable fail fast for unit tests

* misc
2020-10-31 12:59:40 +00:00
Tommy Quissens
3bf107594e
[Downgrade PHP 7.3] Flexible Heredoc syntax (#4272) 2020-10-31 12:39:51 +01:00
Tomas Votruba
9751b9a1e8
[Decouple] Remove set, rather job for PHPStorm (#4521)
* [Decouple] Remove set, rather PHPStorm job

* update docs
2020-10-31 07:54:00 +00:00
Tomas Votruba
18d2ea2d31
[Nette] Add MoveFinalGetUserToCheckRequirementsClassMethodRector (#4520)
* [Nette] Add MoveFinalGetUserToCheckRequirementsClassMethodRector

* [Nette] Add MoveFinalGetUserToCheckRequirementsClassMethodRector

* patch final presenter to allow tests
2020-10-31 00:43:54 +00:00
Tomas Votruba
34b4d10ea2
[docs] more node cleanup (#4519)
* [TypeDeclaration] Add better return type coverage

* drop less common node snippets
2020-10-30 21:58:39 +00:00
Tomas Votruba
489efd1adf
[docs] add command for used node stats + simplify node docs, so it uses most needed examples over are nodes (e.g. /=) (#4518) 2020-10-30 22:13:56 +01:00
Tomas Votruba
3ed76c6559
[Nette] Add RemoveParentAndNameFromComponentConstructorRector (#4515)
* [Nette] Add RemoveParentAndNameFromComponentConstructorRector

* add refactorClassMethod()

* add refactorStaticCall()

* add refactorNew() method

* [Nette] Rename AddDatePickerToDateControlRector to AddNextrasDatePickerToDateControlRector

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-30 17:10:17 +00:00
Tomas Votruba
2c120e283e
Inform about useless second part in tests fixture, after -----, if it is identical (#4514)
* embed skip fixture of same before/after

* [Testing] Add exception on identical second half of the fixture, that should not change

* [ci] use composer 2 for code_analysis

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-30 13:56:55 +00:00
Tomas Votruba
b369c3da95
[ci] use composer v2 for rector_ci (#4513) 2020-10-30 14:50:38 +01:00
Tomas Votruba
b302e493dd
[SOLID] Add MoveVariableDeclarationNearReferenceRector (#4410)
* Create test cases

* Create rector

* Add closure to possible parent scopes

* Register in SOLID set

* Document the feature

* fix adding variable in closure

* move MoveVariableDeclarationNearReferenceRector to Assign category, based on getNodeTypes()

* ci: drop phpunit matcher, not much helpful

* ignore for now, many cases to cover

* prepare release

Co-authored-by: Anna Filina <afilina@gmail.com>
2020-10-30 13:25:24 +00:00
Abdul Malik Ikhsan
49b7635b27
[Performance] Bug Fix CountArrayToEmptyArrayComparisonRector for negation inside or / and operator (#4508)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-30 14:09:18 +01:00
Tomas Votruba
dc2047f70a
[TypeDeclaration] Switch from stringy types to PHPStan types (#4510)
* nette-30 config cleanup

* [TypeDeclaratoin] Move AddReturnTypeDeclarationRector from generic

* add Type support to AddReturnTypeDeclaration

* make AddParamTypeDeclarationRector use PHPStan type objects over strings

* [SymfonyPhpConfig] Add support for nested types

* drop StringTypeToPhpParserNodeMapper

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-30 11:58:35 +00:00
Tomas Votruba
63037fe924
[DynamicTypeAnalysis] Drop for too theoretical content, needs real project to test out (#4511) 2020-10-30 00:30:10 +00:00
Tomas Votruba
7da47f444b
[ci] automated rebase experiment (#4498)
* [ci] automated rebase experiment

* fixup! [ci] automated rebase experiment

* fixup! fixup! [ci] automated rebase experiment
2020-10-29 23:14:17 +01:00
Tomas Votruba
bc41ba2b2e
phpstan cleanup (#4509)
* move tag objects to ValueObject namespace

* [ci] temporarily disable weird broken monorepo split, wait for move to github actoins
2020-10-29 23:06:26 +01:00
Tomas Votruba
5d190a3d55
phpstan cleanup config (#4507) 2020-10-29 21:34:51 +00:00
Tomas Votruba
5361a304b2 fix name 2020-10-29 22:26:42 +01:00
Tomas Votruba
91a354c080
[NetteCodeQuality] Fix ChangeFormArrayAccessToAnnotatedControlVariableRector for in-closure (#4506)
* [NetteCodeQuality] Fix ChangeFormArrayAccessToAnnotatedControlVariableRector for in-closure

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* fix name

* fix unknown mixed type on fluent

* [ci-review] Rector Rectify

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-29 21:25:35 +00:00
Abdul Malik Ikhsan
a2ae659e0a
[CodeQualityStrict] Enable MoveOutMethodCallInsideIfConditionRector (#4502)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-29 21:47:12 +01:00
Abdul Malik Ikhsan
449801e1f3
Add regex uri to regex constant (#4504)
Co-authored-by: Jan Lohage <j2L4e@users.noreply.github.com>
Co-authored-by: rector-bot <tomas@getrector.org>
0.8.45
2020-10-29 19:04:33 +01:00
Tomas Votruba
252f17821e
fix non-existing method trying to get method reflection (#4505) 2020-10-29 16:45:13 +00:00
Tomas Votruba
35804361aa
[docs] decouple pages from README (#4501) 2020-10-29 10:44:07 +01:00
Abdul Malik Ikhsan
9e0b632e4e
[CodeQualityStrict] Add CountArrayToEmptyArrayComparisonRector to CodeQualityStrict (#4496)
Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-10-29 09:59:39 +01:00
Tomas Votruba
2116630748
[ci] remove old merageable file (#4497)
* [ci] remove old merageable file

* updat ecs
2020-10-28 23:26:17 +00:00