Skip to content

Commit

Permalink
infection#654 fix code analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
majkel89 committed Mar 10, 2019
1 parent 66883f7 commit 150ee97
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Mutator/Extensions/MBString.php
Expand Up @@ -128,13 +128,7 @@ private function mapName(string $functionName): callable
private function mapNameSkipArg(string $functionName, int $skipArgs): callable
{
return function (Node\Expr\FuncCall $node) use ($functionName, $skipArgs): Generator {
$args = $node->args;

if ($skipArgs !== null) {
$args = \array_slice($args, 0, $skipArgs);
}

yield $this->createNode($node, $functionName, $args);
yield $this->createNode($node, $functionName, \array_slice($node->args, 0, $skipArgs));
};
}

Expand Down Expand Up @@ -165,8 +159,6 @@ private function getConvertCaseModeValue(Node\Expr\FuncCall $node): ?int

$mode = $node->args[1]->value;

$modeValue = null;

if ($mode instanceof Node\Expr\ConstFetch) {
$modeName = $mode->name->toString();

Expand Down

0 comments on commit 150ee97

Please sign in to comment.