Skip to content

Commit

Permalink
infection#654 fix spaceing
Browse files Browse the repository at this point in the history
  • Loading branch information
majkel89 committed Mar 10, 2019
1 parent 97d64bc commit 4526990
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mutator/Extensions/MBString.php
Expand Up @@ -111,7 +111,7 @@ private function setupConverters(array $functionsMap): void
'mb_convert_case' => $this->mapConvertCase(),
];

$functionsToRemove = \array_filter($functionsMap, function ($isOn) {
$functionsToRemove = \array_filter($functionsMap, function($isOn) {
return !$isOn;
});

Expand All @@ -120,21 +120,21 @@ private function setupConverters(array $functionsMap): void

private function mapName(string $functionName): callable
{
return function (Node\Expr\FuncCall $node) use ($functionName): Generator {
return function(Node\Expr\FuncCall $node) use ($functionName): Generator {
yield $this->createNode($node, $functionName, $node->args);
};
}

private function mapNameSkipArg(string $functionName, int $skipArgs): callable
{
return function (Node\Expr\FuncCall $node) use ($functionName, $skipArgs): Generator {
return function(Node\Expr\FuncCall $node) use ($functionName, $skipArgs): Generator {
yield $this->createNode($node, $functionName, \array_slice($node->args, 0, $skipArgs));
};
}

private function mapConvertCase(): callable
{
return function (Node\Expr\FuncCall $node): Generator {
return function(Node\Expr\FuncCall $node): Generator {
$modeValue = $this->getConvertCaseModeValue($node);

if ($modeValue === null) {
Expand Down

0 comments on commit 4526990

Please sign in to comment.