Skip to content

Commit

Permalink
Fix CS/WS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Aug 14, 2023
1 parent a094e69 commit 8b22db4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/Framework/MockObject/Runtime/Builder/InvocationMocker.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,12 @@ public function method(Constraint|string $constraint): self
}

if (is_string($constraint)) {
$this->configurableMethodNames ??= array_flip(array_map(
static fn (ConfigurableMethod $configurable) => strtolower($configurable->name()),
$this->configurableMethods,
));
$this->configurableMethodNames ??= array_flip(
array_map(
static fn (ConfigurableMethod $configurable) => strtolower($configurable->name()),
$this->configurableMethods,
),
);

if (!array_key_exists(strtolower($constraint), $this->configurableMethodNames)) {
throw new MethodCannotBeConfiguredException($constraint);
Expand Down
5 changes: 4 additions & 1 deletion src/Logging/TestDox/NamePrettifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,10 @@ private function mapTestMethodParameterNamesToProvidedDataValues(TestCase $test,
}

if ($colorize) {
$providedData = array_map(static fn ($value) => Color::colorize('fg-cyan', Color::visualizeWhitespace((string) $value, true)), $providedData);
$providedData = array_map(
static fn ($value) => Color::colorize('fg-cyan', Color::visualizeWhitespace((string) $value, true)),
$providedData,
);
}

return $providedData;
Expand Down

0 comments on commit 8b22db4

Please sign in to comment.