add @see annotations

This commit is contained in:
Tomas Votruba 2019-09-03 11:11:45 +02:00
parent 1fdeffe2e1
commit 79ffad4a0b
327 changed files with 757 additions and 41 deletions

View File

@ -17,6 +17,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\Architecture\Tests\Rector\Class_\ConstructorInjectionToActionInjectionRector\ConstructorInjectionToActionInjectionRectorTest
*/
final class ConstructorInjectionToActionInjectionRector extends AbstractRector
{
/**

View File

@ -51,6 +51,9 @@ use Rector\BetterPhpDocParser\Attributes\Contract\Ast\AttributeAwareNodeInterfac
use Rector\Exception\NotImplementedYetException;
use Rector\Exception\ShouldNotHappenException;
/**
* @see \Rector\BetterPhpDocParser\Tests\Attributes\Ast\AttributeAwareNodeFactoryTest
*/
final class AttributeAwareNodeFactory
{
/**

View File

@ -15,6 +15,9 @@ use Rector\BetterPhpDocParser\Attributes\Attribute\Attribute;
use Rector\BetterPhpDocParser\Attributes\Contract\Ast\AttributeAwareNodeInterface;
use Rector\DoctrinePhpDocParser\Contract\Ast\PhpDoc\DoctrineRelationTagValueNodeInterface;
/**
* @see \Rector\BetterPhpDocParser\Tests\PhpDocInfo\PhpDocInfo\PhpDocInfoTest
*/
final class PhpDocInfo
{
/**

View File

@ -9,6 +9,9 @@ use PHPStan\PhpDocParser\Ast\Type\NullableTypeNode;
use PHPStan\PhpDocParser\Ast\Type\TypeNode;
use PHPStan\PhpDocParser\Ast\Type\UnionTypeNode;
/**
* @see \Rector\BetterPhpDocParser\Tests\PhpDocParser\TypeNodeAnalyzerTest
*/
final class TypeNodeAnalyzer
{
public function containsArrayType(TypeNode $typeNode): bool

View File

@ -14,6 +14,9 @@ use Rector\BetterPhpDocParser\Attributes\Contract\Ast\AttributeAwareNodeInterfac
use Rector\BetterPhpDocParser\Data\StartEndInfo;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
/**
* @see \Rector\BetterPhpDocParser\Tests\PhpDocInfo\PhpDocInfoPrinter\PhpDocInfoPrinterTest
*/
final class PhpDocInfoPrinter
{
/**

View File

@ -13,6 +13,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://book.cakephp.org/3.0/en/appendices/3-4-migration-guide.html#deprecated-combined-get-set-methods
* @see https://github.com/cakephp/cakephp/commit/326292688c5e6d08945a3cafa4b6ffb33e714eea#diff-e7c0f0d636ca50a0350e9be316d8b0f9
* @see \Rector\CakePHP\Tests\Rector\MethodCall\ModalToGetSetRector\ModalToGetSetRectorTest
*/
final class ModalToGetSetRector extends AbstractRector
{

View File

@ -14,6 +14,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://stackoverflow.com/questions/5998309/logical-operators-or-or
* @see https://stackoverflow.com/questions/9454870/php-xor-how-to-use-with-if
* @see \Rector\Celebrity\Tests\Rector\BooleanOp\LogicalToBooleanRector\LogicalToBooleanRectorTest
*/
final class LogicalToBooleanRector extends AbstractRector
{

View File

@ -22,6 +22,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://stackoverflow.com/questions/5577003/using-settype-in-php-instead-of-typecasting-using-brackets-what-is-the-differen/5577068#5577068
* @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3709
* @see \Rector\Celebrity\Tests\Rector\FuncCall\SetTypeToCastRector\SetTypeToCastRectorTest
*/
final class SetTypeToCastRector extends AbstractRector
{

View File

@ -11,6 +11,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://stackoverflow.com/a/4294663/1348344
* @see \Rector\Celebrity\Tests\Rector\NotEqual\CommonNotEqualRector\CommonNotEqualRectorTest
*/
final class CommonNotEqualRector extends AbstractRector
{

View File

@ -25,6 +25,7 @@ use Rector\RectorDefinition\RectorDefinition;
* @see https://www.php.net/manual/en/language.types.callable.php#117260
* @see https://3v4l.org/MsMbQ
* @see https://3v4l.org/KM1Ji
* @see \Rector\CodeQuality\Tests\Rector\Array_\CallableThisArrayToAnonymousFunctionRector\CallableThisArrayToAnonymousFunctionRectorTest
*/
final class CallableThisArrayToAnonymousFunctionRector extends AbstractRector
{

View File

@ -10,6 +10,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Assign\CombinedAssignRector\CombinedAssignRectorTest
*/
final class CombinedAssignRector extends AbstractRector
{
/**

View File

@ -16,6 +16,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://robots.thoughtbot.com/clearer-conditionals-using-de-morgans-laws
* @see https://stackoverflow.com/questions/20043664/de-morgans-law
* @see \Rector\CodeQuality\Tests\Rector\BinaryOp\SimplifyDeMorganBinaryRector\SimplifyDeMorganBinaryRectorTest
*/
final class SimplifyDeMorganBinaryRector extends AbstractRector
{

View File

@ -16,6 +16,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://3v4l.org/EZ2P4
* @see https://3v4l.org/egtb5
* @see \Rector\CodeQuality\Tests\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector\SimplifyEmptyArrayCheckRectorTest
*/
final class SimplifyEmptyArrayCheckRector extends AbstractRector
{

View File

@ -22,6 +22,7 @@ use Rector\RectorDefinition\RectorDefinition;
* @see https://3v4l.org/GL6II
* @see https://3v4l.org/eTrhZ
* @see https://3v4l.org/C554W
* @see \Rector\CodeQuality\Tests\Rector\Class_\CompleteDynamicPropertiesRector\CompleteDynamicPropertiesRectorTest
*/
final class CompleteDynamicPropertiesRector extends AbstractRector
{

View File

@ -9,6 +9,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Concat\JoinStringConcatRector\JoinStringConcatRectorTest
*/
final class JoinStringConcatRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -12,6 +12,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Equal\UseIdenticalOverEqualWithSameTypeRector\UseIdenticalOverEqualWithSameTypeRectorTest
*/
final class UseIdenticalOverEqualWithSameTypeRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -23,6 +23,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\For_\ForToForeachRector\ForToForeachRectorTest
*/
final class ForToForeachRector extends AbstractRector
{
/**

View File

@ -21,6 +21,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Foreach_\ForeachToInArrayRector\ForeachToInArrayRectorTest
*/
final class ForeachToInArrayRector extends AbstractRector
{
/**

View File

@ -16,6 +16,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Foreach_\SimplifyForeachToArrayFilterRector\SimplifyForeachToArrayFilterRectorTest
*/
final class SimplifyForeachToArrayFilterRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -17,6 +17,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Foreach_\SimplifyForeachToCoalescingRector\SimplifyForeachToCoalescingRectorTest
*/
final class SimplifyForeachToCoalescingRector extends AbstractRector
{
/**

View File

@ -15,6 +15,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://stackoverflow.com/a/16319909/1348344
* @see https://3v4l.org/8GJEs
* @see \Rector\CodeQuality\Tests\Rector\FuncCall\CompactToVariablesRector\CompactToVariablesRectorTest
*/
final class CompactToVariablesRector extends AbstractRector
{

View File

@ -9,6 +9,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\FuncCall\InArrayAndArrayKeysToArrayKeyExistsRector\InArrayAndArrayKeysToArrayKeyExistsRectorTest
*/
final class InArrayAndArrayKeysToArrayKeyExistsRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -10,6 +10,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\FuncCall\IsAWithStringWithThirdArgumentRector\IsAWithStringWithThirdArgumentRectorTest
*/
final class IsAWithStringWithThirdArgumentRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -8,6 +8,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\FuncCall\SimplifyFuncGetArgsCountRector\SimplifyFuncGetArgsCountRectorTest
*/
final class SimplifyFuncGetArgsCountRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -8,6 +8,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\FuncCall\SimplifyInArrayValuesRector\SimplifyInArrayValuesRectorTest
*/
final class SimplifyInArrayValuesRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -13,6 +13,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see http://php.net/manual/en/function.preg-match.php#105924
* @see \Rector\CodeQuality\Tests\Rector\FuncCall\SimplifyRegexPatternRector\SimplifyRegexPatternRectorTest
*/
final class SimplifyRegexPatternRector extends AbstractRector
{

View File

@ -9,6 +9,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\FuncCall\SimplifyStrposLowerRector\SimplifyStrposLowerRectorTest
*/
final class SimplifyStrposLowerRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -11,6 +11,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\FuncCall\SingleInArrayToCompareRector\SingleInArrayToCompareRectorTest
*/
final class SingleInArrayToCompareRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -11,6 +11,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\FuncCall\StrlenZeroToIdenticalEmptyStringRector\StrlenZeroToIdenticalEmptyStringRectorTest
*/
final class StrlenZeroToIdenticalEmptyStringRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -13,6 +13,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://3v4l.org/GoEPq
* @see \Rector\CodeQuality\Tests\Rector\Identical\BooleanNotIdenticalToNotIdenticalRector\BooleanNotIdenticalToNotIdenticalRectorTest
*/
final class BooleanNotIdenticalToNotIdenticalRector extends AbstractRector
{

View File

@ -16,6 +16,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Identical\GetClassToInstanceOfRector\GetClassToInstanceOfRectorTest
*/
final class GetClassToInstanceOfRector extends AbstractRector
{
/**

View File

@ -17,6 +17,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Identical\SimplifyArraySearchRector\SimplifyArraySearchRectorTest
*/
final class SimplifyArraySearchRector extends AbstractRector
{
/**

View File

@ -12,6 +12,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Identical\SimplifyBoolIdenticalTrueRector\SimplifyBoolIdenticalTrueRectorTest
*/
final class SimplifyBoolIdenticalTrueRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -14,6 +14,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Identical\SimplifyConditionsRector\SimplifyConditionsRectorTest
*/
final class SimplifyConditionsRector extends AbstractRector
{
/**

View File

@ -13,6 +13,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\If_\ConsecutiveNullCompareReturnsToNullCoalesceQueueRector\ConsecutiveNullCompareReturnsToNullCoalesceQueueRectorTest
*/
final class ConsecutiveNullCompareReturnsToNullCoalesceQueueRector extends AbstractRector
{
/**

View File

@ -27,6 +27,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://www.reddit.com/r/PHP/comments/aqk01p/is_there_a_situation_in_which_if_countarray_0/
* @see https://3v4l.org/UCd1b
* @see \Rector\CodeQuality\Tests\Rector\If_\ExplicitBoolCompareRector\ExplicitBoolCompareRectorTest
*/
final class ExplicitBoolCompareRector extends AbstractRector
{

View File

@ -14,6 +14,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\If_\SimplifyIfElseToTernaryRector\SimplifyIfElseToTernaryRectorTest
*/
final class SimplifyIfElseToTernaryRector extends AbstractRector
{
/**

View File

@ -17,6 +17,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\If_\SimplifyIfIssetToNullCoalescingRector\SimplifyIfIssetToNullCoalescingRectorTest
*/
final class SimplifyIfIssetToNullCoalescingRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -11,6 +11,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\If_\SimplifyIfNotNullReturnRector\SimplifyIfNotNullReturnRectorTest
*/
final class SimplifyIfNotNullReturnRector extends AbstractRector
{
/**

View File

@ -17,6 +17,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\If_\SimplifyIfReturnBoolRector\SimplifyIfReturnBoolRectorTest
*/
final class SimplifyIfReturnBoolRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -13,6 +13,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://3v4l.org/ji8bX
* @see \Rector\CodeQuality\Tests\Rector\LogicalAnd\AndAssignsToSeparateLinesRector\AndAssignsToSeparateLinesRectorTest
*/
final class AndAssignsToSeparateLinesRector extends AbstractRector
{

View File

@ -16,6 +16,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see Based on https://github.com/slevomat/coding-standard/blob/master/SlevomatCodingStandard/Sniffs/Variables/UselessVariableSniff.php
* @see \Rector\CodeQuality\Tests\Rector\Return_\SimplifyUselessVariableRector\SimplifyUselessVariableRectorTest
*/
final class SimplifyUselessVariableRector extends AbstractRector
{

View File

@ -9,6 +9,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Ternary\SimplifyDuplicatedTernaryRector\SimplifyDuplicatedTernaryRectorTest
*/
final class SimplifyDuplicatedTernaryRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -11,6 +11,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Ternary\SimplifyTautologyTernaryRector\SimplifyTautologyTernaryRectorTest
*/
final class SimplifyTautologyTernaryRector extends AbstractRector
{
/**

View File

@ -11,6 +11,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see http://php.net/manual/en/language.operators.comparison.php#language.operators.comparison.ternary
* @see https://stackoverflow.com/a/1993455/1348344
* @see \Rector\CodeQuality\Tests\Rector\Ternary\TernaryToElvisRector\TernaryToElvisRectorTest
*/
final class TernaryToElvisRector extends AbstractRector
{

View File

@ -14,6 +14,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodeQuality\Tests\Rector\Ternary\UnnecessaryTernaryExpressionRector\UnnecessaryTernaryExpressionRectorTest
*/
final class UnnecessaryTernaryExpressionRector extends AbstractRector
{
/**

View File

@ -8,6 +8,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\Assign\SplitDoubleAssignRector\SplitDoubleAssignRectorTest
*/
final class SplitDoubleAssignRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -10,6 +10,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\Catch_\CatchExceptionNameMatchingTypeRector\CatchExceptionNameMatchingTypeRectorTest
*/
final class CatchExceptionNameMatchingTypeRector extends AbstractRector
{
/**

View File

@ -11,6 +11,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\ClassConst\SplitGroupedConstantsAndPropertiesRector\SplitGroupedConstantsAndPropertiesRectorTest
*/
final class SplitGroupedConstantsAndPropertiesRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -10,6 +10,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\ClassConst\VarConstantCommentRector\VarConstantCommentRectorTest
*/
final class VarConstantCommentRector extends AbstractRector
{
/**

View File

@ -19,6 +19,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://medium.com/tech-tajawal/use-memory-gently-with-yield-in-php-7e62e2480b8d
* @see https://3v4l.org/5PJid
* @see \Rector\CodingStyle\Tests\Rector\ClassMethod\ReturnArrayClassMethodToYieldRector\ReturnArrayClassMethodToYieldRectorTest
*/
final class ReturnArrayClassMethodToYieldRector extends AbstractRector
{

View File

@ -16,6 +16,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://medium.com/tech-tajawal/use-memory-gently-with-yield-in-php-7e62e2480b8d
* @see https://3v4l.org/5PJid
* @see \Rector\CodingStyle\Tests\Rector\ClassMethod\YieldClassMethodToArrayClassMethodRector\YieldClassMethodToArrayClassMethodRectorTest
*/
final class YieldClassMethodToArrayClassMethodRector extends AbstractRector
{

View File

@ -13,6 +13,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see http://php.net/manual/en/function.implode.php#refsect1-function.implode-description
* @see https://3v4l.org/iYTgh
* @see \Rector\CodingStyle\Tests\Rector\FuncCall\ConsistentImplodeRector\ConsistentImplodeRectorTest
*/
final class ConsistentImplodeRector extends AbstractRector
{

View File

@ -12,6 +12,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\FuncCall\ConsistentPregDelimiterRector\ConsistentPregDelimiterRectorTest
*/
final class ConsistentPregDelimiterRector extends AbstractRector
{
/**

View File

@ -12,6 +12,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\FuncCall\SimpleArrayCallableToStringRector\SimpleArrayCallableToStringRectorTest
*/
final class SimpleArrayCallableToStringRector extends AbstractRector
{
/**

View File

@ -16,6 +16,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\Identical\IdenticalFalseToBooleanNotRector\IdenticalFalseToBooleanNotRectorTest
*/
final class IdenticalFalseToBooleanNotRector extends AbstractRector
{
/**

View File

@ -17,6 +17,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\If_\NullableCompareToNullRector\NullableCompareToNullRectorTest
*/
final class NullableCompareToNullRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -12,6 +12,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\Include_\FollowRequireByDirRector\FollowRequireByDirRectorTest
*/
final class FollowRequireByDirRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -12,6 +12,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\String_\SplitStringClassConstantToClassConstFetchRector\SplitStringClassConstantToClassConstFetchRectorTest
*/
final class SplitStringClassConstantToClassConstFetchRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -9,6 +9,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\String_\SymplifyQuoteEscapeRector\SymplifyQuoteEscapeRectorTest
*/
final class SymplifyQuoteEscapeRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -16,6 +16,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\Switch_\BinarySwitchToIfElseRector\BinarySwitchToIfElseRectorTest
*/
final class BinarySwitchToIfElseRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -24,6 +24,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\CodingStyle\Tests\Rector\Use_\RemoveUnusedAliasRector\RemoveUnusedAliasRectorTest
*/
final class RemoveUnusedAliasRector extends AbstractRector
{
/**

View File

@ -11,6 +11,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://3v4l.org/SG0Wu
* @see \Rector\DeadCode\Tests\Rector\Array_\RemoveDuplicatedArrayKeyRector\RemoveDuplicatedArrayKeyRectorTest
*/
final class RemoveDuplicatedArrayKeyRector extends AbstractRector
{

View File

@ -22,6 +22,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\Assign\RemoveDoubleAssignRector\RemoveDoubleAssignRectorTest
*/
final class RemoveDoubleAssignRector extends AbstractRector
{
/**

View File

@ -8,6 +8,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\BooleanAnd\RemoveAndTrueRector\RemoveAndTrueRectorTest
*/
final class RemoveAndTrueRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -9,6 +9,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\ClassConst\RemoveUnusedPrivateConstantRector\RemoveUnusedPrivateConstantRectorTest
*/
final class RemoveUnusedPrivateConstantRector extends AbstractRector
{
/**

View File

@ -8,6 +8,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\ClassMethod\RemoveDeadConstructorRector\RemoveDeadConstructorRectorTest
*/
final class RemoveDeadConstructorRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -18,6 +18,9 @@ use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
use ReflectionMethod;
/**
* @see \Rector\DeadCode\Tests\Rector\ClassMethod\RemoveDelegatingParentCallRector\RemoveDelegatingParentCallRectorTest
*/
final class RemoveDelegatingParentCallRector extends AbstractRector
{
/**

View File

@ -11,6 +11,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\ClassMethod\RemoveEmptyClassMethodRector\RemoveEmptyClassMethodRectorTest
*/
final class RemoveEmptyClassMethodRector extends AbstractRector
{
/**

View File

@ -14,6 +14,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\ClassMethod\RemoveOverriddenValuesRector\RemoveOverriddenValuesRectorTest
*/
final class RemoveOverriddenValuesRector extends AbstractRector
{
/**

View File

@ -17,6 +17,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://www.php.net/manual/en/function.compact.php
* @see \Rector\DeadCode\Tests\Rector\ClassMethod\RemoveUnusedParameterRector\RemoveUnusedParameterRectorTest
*/
final class RemoveUnusedParameterRector extends AbstractRector
{

View File

@ -13,6 +13,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\ClassMethod\RemoveUnusedPrivateMethodRector\RemoveUnusedPrivateMethodRectorTest
*/
final class RemoveUnusedPrivateMethodRector extends AbstractRector
{
/**

View File

@ -10,6 +10,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\Concat\RemoveConcatAutocastRector\RemoveConcatAutocastRectorTest
*/
final class RemoveConcatAutocastRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -9,6 +9,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\Expression\SimplifyMirrorAssignRector\SimplifyMirrorAssignRectorTest
*/
final class SimplifyMirrorAssignRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -13,6 +13,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\For_\RemoveDeadIfForeachForRector\RemoveDeadIfForeachForRectorTest
*/
final class RemoveDeadIfForeachForRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -8,6 +8,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\Foreach_\RemoveUnusedForeachKeyRector\RemoveUnusedForeachKeyRectorTest
*/
final class RemoveUnusedForeachKeyRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -13,6 +13,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\FunctionLike\RemoveCodeAfterReturnRector\RemoveCodeAfterReturnRectorTest
*/
final class RemoveCodeAfterReturnRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -12,6 +12,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\FunctionLike\RemoveDeadReturnRector\RemoveDeadReturnRectorTest
*/
final class RemoveDeadReturnRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -9,6 +9,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\If_\RemoveAlwaysTrueIfConditionRector\RemoveAlwaysTrueIfConditionRectorTest
*/
final class RemoveAlwaysTrueIfConditionRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -11,6 +11,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\Instanceof_\RemoveDuplicatedInstanceOfRector\RemoveDuplicatedInstanceOfRectorTest
*/
final class RemoveDuplicatedInstanceOfRector extends AbstractRector
{
/**

View File

@ -17,6 +17,9 @@ use Rector\RectorDefinition\RectorDefinition;
use Rector\Reflection\FunctionReflectionResolver;
use ReflectionFunction;
/**
* @see \Rector\DeadCode\Tests\Rector\MethodCall\RemoveDefaultArgumentValueRector\RemoveDefaultArgumentValueRectorTest
*/
final class RemoveDefaultArgumentValueRector extends AbstractRector
{
/**

View File

@ -16,6 +16,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://3v4l.org/I0BGs
* @see \Rector\DeadCode\Tests\Rector\Plus\RemoveDeadZeroAndOneOperationRector\RemoveDeadZeroAndOneOperationRectorTest
*/
final class RemoveDeadZeroAndOneOperationRector extends AbstractRector
{

View File

@ -16,6 +16,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://3v4l.org/I0BGs
* @see \Rector\DeadCode\Tests\Rector\Plus\RemoveZeroAndOneBinaryRector\RemoveZeroAndOneBinaryRectorTest
*/
final class RemoveZeroAndOneBinaryRector extends AbstractRector
{

View File

@ -10,6 +10,9 @@ use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
use function strtolower;
/**
* @see \Rector\DeadCode\Tests\Rector\Property\RemoveNullPropertyInitializationRector\RemoveNullPropertyInitializationRectorTest
*/
final class RemoveNullPropertyInitializationRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -16,6 +16,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\Property\RemoveUnusedPrivatePropertyRector\RemoveUnusedPrivatePropertyRectorTest
*/
final class RemoveUnusedPrivatePropertyRector extends AbstractRector
{
/**

View File

@ -11,6 +11,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\StaticCall\RemoveParentCallWithoutParentRector\RemoveParentCallWithoutParentRectorTest
*/
final class RemoveParentCallWithoutParentRector extends AbstractRector
{
/**

View File

@ -13,6 +13,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DeadCode\Tests\Rector\Stmt\RemoveDeadStmtRector\RemoveDeadStmtRectorTest
*/
final class RemoveDeadStmtRector extends AbstractRector
{
public function getDefinition(): RectorDefinition

View File

@ -25,6 +25,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @sponsor Thanks https://spaceflow.io/ for sponsoring this rule - visit them on https://github.com/SpaceFlow-app
* @see \Rector\Doctrine\Tests\Rector\Class_\AddUuidMirrorForRelationPropertyRector\AddUuidMirrorForRelationPropertyRectorTest
*/
final class AddUuidMirrorForRelationPropertyRector extends AbstractRector
{

View File

@ -14,6 +14,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @sponsor Thanks https://spaceflow.io/ for sponsoring this rule - visit them on https://github.com/SpaceFlow-app
* @see \Rector\Doctrine\Tests\Rector\Class_\AddUuidToEntityWhereMissingRector\AddUuidToEntityWhereMissingRectorTest
*/
final class AddUuidToEntityWhereMissingRector extends AbstractRector
{

View File

@ -19,6 +19,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\Doctrine\Tests\Rector\Class_\ManagerRegistryGetManagerToEntityManagerRector\ManagerRegistryGetManagerToEntityManagerRectorTest
*/
final class ManagerRegistryGetManagerToEntityManagerRector extends AbstractRector
{
/**

View File

@ -9,6 +9,9 @@ use Rector\Rector\AbstractRector;
use Rector\RectorDefinition\CodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\Doctrine\Tests\Rector\MethodCall\EntityAliasToClassConstantReferenceRector\EntityAliasToClassConstantReferenceRectorTest
*/
final class EntityAliasToClassConstantReferenceRector extends AbstractRector
{
/**

View File

@ -12,6 +12,9 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
use Rector\RectorDefinition\ConfiguredCodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DomainDrivenDesign\Tests\Rector\ObjectToScalarDocBlockRector\ObjectToScalarDocBlockRectorTest
*/
final class ObjectToScalarDocBlockRector extends AbstractObjectToScalarRector
{
public function getDefinition(): RectorDefinition

View File

@ -12,6 +12,9 @@ use Rector\NodeTypeResolver\Node\AttributeKey;
use Rector\RectorDefinition\ConfiguredCodeSample;
use Rector\RectorDefinition\RectorDefinition;
/**
* @see \Rector\DomainDrivenDesign\Tests\Rector\ObjectToScalarRector\ObjectToScalarRectorTest
*/
final class ObjectToScalarRector extends AbstractObjectToScalarRector
{
public function getDefinition(): RectorDefinition

View File

@ -14,6 +14,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://github.com/ongr-io/ElasticsearchDSL/blob/5.x/CHANGELOG.md
* @see \Rector\ElasticSearchDSL\Tests\Rector\MethodCall\MigrateFilterToQueryRector\MigrateFilterToQueryRectorTest
*/
final class MigrateFilterToQueryRector extends AbstractRector
{

View File

@ -12,6 +12,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://github.com/guzzle/guzzle/blob/master/UPGRADING.md#updates-to-http-messages
* @see https://github.com/guzzle/guzzle/commit/244bf0228e7e09740c9fb2d2fe77956a2c793eaa
* @see \Rector\Guzzle\Tests\Rector\MethodCall\MessageAsArrayRector\MessageAsArrayRectorTest
*/
final class MessageAsArrayRector extends AbstractRector
{

View File

@ -15,6 +15,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://github.com/laravel/framework/blob/78828bc779e410e03cc6465f002b834eadf160d2/src/Illuminate/Foundation/helpers.php#L959
* @see https://gist.github.com/barryvdh/bb6ffc5d11e0a75dba67
* @see \Rector\Laravel\Tests\Rector\FuncCall\HelperFunctionToConstructorInjectionRector\HelperFunctionToConstructorInjectionRectorTest
*/
final class HelperFunctionToConstructorInjectionRector extends AbstractRector
{

View File

@ -15,6 +15,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://medium.freecodecamp.org/moving-away-from-magic-or-why-i-dont-want-to-use-laravel-anymore-2ce098c979bd
* @see https://laravel.com/docs/5.7/facades#facades-vs-dependency-injection
* @see \Rector\Laravel\Tests\Rector\StaticCall\FacadeStaticCallToConstructorInjectionRector\FacadeStaticCallToConstructorInjectionRectorTest
*/
final class FacadeStaticCallToConstructorInjectionRector extends AbstractRector
{

View File

@ -16,6 +16,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://github.com/laravel/framework/pull/27276
* @see \Rector\Laravel\Tests\Rector\StaticCall\MinutesToSecondsInCacheRector\MinutesToSecondsInCacheRectorTest
*/
final class MinutesToSecondsInCacheRector extends AbstractRector
{

View File

@ -11,6 +11,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://laravel.com/docs/5.7/upgrade
* @see \Rector\Laravel\Tests\Rector\StaticCall\Redirect301ToPermanentRedirectRector\Redirect301ToPermanentRedirectRectorTest
*/
final class Redirect301ToPermanentRedirectRector extends AbstractRector
{

View File

@ -17,6 +17,7 @@ use Rector\RectorDefinition\RectorDefinition;
/**
* @see https://github.com/laravel/framework/pull/27276
* @see \Rector\Laravel\Tests\Rector\StaticCall\RequestStaticValidateToInjectRector\RequestStaticValidateToInjectRectorTest
*/
final class RequestStaticValidateToInjectRector extends AbstractRector
{

Some files were not shown because too many files have changed in this diff Show More