Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1); namespace Pest\Plugins; use Pest\Contracts\Plugins\Handl..

Decoded Output download

<?php

declare(strict_types=1);

namespace Pest\Plugins;

use Pest\Contracts\Plugins\HandlesArguments;
use Pest\Exceptions\InvalidOption;

/**
 * @internal
 */
final class Retry implements HandlesArguments
{
    use Concerns\HandleArguments;

    /**
     * {@inheritDoc}
     */
    public function handleArguments(array $arguments): array
    {
        if (! $this->hasArgument('--retry', $arguments)) {
            return $arguments;
        }

        if ($this->hasArgument('--parallel', $arguments)) {
            throw new InvalidOption('The [--retry] option is not supported when running in parallel.');
        }

        $arguments = $this->popArgument('--retry', $arguments);

        $arguments = $this->pushArgument('--order-by=defects', $arguments);

        return $this->pushArgument('--stop-on-failure', $arguments);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace Pest\Plugins;

use Pest\Contracts\Plugins\HandlesArguments;
use Pest\Exceptions\InvalidOption;

/**
 * @internal
 */
final class Retry implements HandlesArguments
{
    use Concerns\HandleArguments;

    /**
     * {@inheritDoc}
     */
    public function handleArguments(array $arguments): array
    {
        if (! $this->hasArgument('--retry', $arguments)) {
            return $arguments;
        }

        if ($this->hasArgument('--parallel', $arguments)) {
            throw new InvalidOption('The [--retry] option is not supported when running in parallel.');
        }

        $arguments = $this->popArgument('--retry', $arguments);

        $arguments = $this->pushArgument('--order-by=defects', $arguments);

        return $this->pushArgument('--stop-on-failure', $arguments);
    }
}

Function Calls

None

Variables

None

Stats

MD5 1e73c12bdff9428116664bcb09e0b2cb
Eval Count 0
Decode Time 94 ms