Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Apr 22, 2024
1 parent a618334 commit 171121b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Format.php
Expand Up @@ -119,7 +119,11 @@ public function encoder(mixed ...$options): EncoderInterface
}

// filter only allowed options
$options = array_filter($options, fn ($key) => in_array($key, $parameters), ARRAY_FILTER_USE_KEY);
$options = array_filter(
$options,
fn ($key) => in_array($key, $parameters),
ARRAY_FILTER_USE_KEY,
);

return new $classname(...$options);
}
Expand Down

0 comments on commit 171121b

Please sign in to comment.