mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 14:23:34 +02:00
chore: coding style changes
This commit is contained in:
@@ -15,9 +15,6 @@ final class Parallel implements HandlesArguments
|
||||
{
|
||||
use HandleArguments;
|
||||
|
||||
/**
|
||||
* The list of arguments to remove.
|
||||
*/
|
||||
private const array ARGS_TO_REMOVE = [
|
||||
'--parallel',
|
||||
'-p',
|
||||
@@ -25,9 +22,6 @@ final class Parallel implements HandlesArguments
|
||||
'--cache-result',
|
||||
];
|
||||
|
||||
/**
|
||||
* Handles the arguments, removing the ones that are not needed, and adds the "runner" argument.
|
||||
*/
|
||||
public function handleArguments(array $arguments): array
|
||||
{
|
||||
$args = array_reduce(self::ARGS_TO_REMOVE, fn (array $args, string $arg): array => $this->popArgument($arg, $args), $arguments);
|
||||
|
||||
Reference in New Issue
Block a user