mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 20:00:50 +00:00
fix cs
This commit is contained in:
parent
417d89867d
commit
edd78eb310
|
@ -204,8 +204,7 @@ CODE_SAMPLE
|
|||
ConstFetch $constFetch,
|
||||
GreaterOrEqual $greaterOrEqual,
|
||||
If_ $if
|
||||
): ?ConstFetch
|
||||
{
|
||||
): ?ConstFetch {
|
||||
$value = $greaterOrEqual->right;
|
||||
if (! $value instanceof LNumber) {
|
||||
return null;
|
||||
|
@ -223,8 +222,7 @@ CODE_SAMPLE
|
|||
ConstFetch $constFetch,
|
||||
GreaterOrEqual $greaterOrEqual,
|
||||
If_ $if
|
||||
): ?ConstFetch
|
||||
{
|
||||
): ?ConstFetch {
|
||||
$value = $greaterOrEqual->left;
|
||||
if (! $value instanceof LNumber) {
|
||||
return null;
|
||||
|
|
|
@ -83,9 +83,9 @@ CODE_SAMPLE
|
|||
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($node);
|
||||
|
||||
// is already set
|
||||
foreach(['@var', '@phpstan-var', '@psalm-var'] as $tagName) {
|
||||
foreach (['@var', '@phpstan-var', '@psalm-var'] as $tagName) {
|
||||
$varType = $phpDocInfo->getVarType($tagName);
|
||||
if (!$varType instanceof MixedType) {
|
||||
if (! $varType instanceof MixedType) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user