Skip to content

Commit aac5afa

Browse files
authored
Merge pull request #9739 from samsonasik/refactor-apply-code-quality-40
refactor: apply code quality level 40 for Rector
2 parents b352164 + 4fc7bea commit aac5afa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
1616
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
1717
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
18-
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
1918
use Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector;
2019
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
2120
use Rector\CodeQuality\Rector\Ternary\TernaryEmptyArrayArrayDimFetchToCoalesceRector;
@@ -183,7 +182,6 @@
183182
InlineIfToExplicitIfRector::class,
184183
PreparedValueToEarlyReturnRector::class,
185184
UnusedForeachValueToArrayKeysRector::class,
186-
ChangeArrayPushToArrayAssignRector::class,
187185
RemoveErrorSuppressInTryCatchStmtsRector::class,
188186
FuncGetArgsToVariadicParamRector::class,
189187
MakeInheritedMethodVisibilitySameAsParentRector::class,
@@ -204,4 +202,4 @@
204202
// keep '\\' prefix string on string '\Foo\Bar'
205203
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
206204
])
207-
->withCodeQualityLevel(34);
205+
->withCodeQualityLevel(40);

system/Test/Mock/MockCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function get(string $key)
6262
{
6363
$key = static::validateKey($key, $this->prefix);
6464

65-
return array_key_exists($key, $this->cache) ? $this->cache[$key] : null;
65+
return $this->cache[$key] ?? null;
6666
}
6767

6868
/**

0 commit comments

Comments
 (0)