rector/vendor/symplify/package-builder/src/Console/Input/StaticInputDetector.php
2022-09-01 09:30:44 +00:00

18 lines
395 B
PHP

<?php
declare (strict_types=1);
namespace RectorPrefix202209\Symplify\PackageBuilder\Console\Input;
use RectorPrefix202209\Symfony\Component\Console\Input\ArgvInput;
/**
* @api
*/
final class StaticInputDetector
{
public static function isDebug() : bool
{
$argvInput = new ArgvInput();
return $argvInput->hasParameterOption(['--debug', '-v', '-vv', '-vvv']);
}
}