mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
refacto: --retry option
This commit is contained in:
@ -13,18 +13,18 @@ final class Retry implements HandlesArguments
|
||||
{
|
||||
use Concerns\HandleArguments;
|
||||
|
||||
/**
|
||||
* Whether it should show retry or not.
|
||||
*/
|
||||
public static bool $retrying = false;
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function handleArguments(array $arguments): array
|
||||
{
|
||||
self::$retrying = $this->hasArgument('--retry', $arguments);
|
||||
if ($this->hasArgument('--retry', $arguments)) {
|
||||
$arguments = $this->popArgument('--retry', $arguments);
|
||||
|
||||
return $this->popArgument('--retry', $arguments);
|
||||
$arguments = $this->pushArgument('--order-by=defects', $arguments);
|
||||
$arguments = $this->pushArgument(' --stop-on-defect', $arguments);
|
||||
}
|
||||
|
||||
return $arguments;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user