mirror of
https://github.com/n3w/helpers-cli-input.git
synced 2025-12-19 20:53:27 +00:00
Code tidy
This commit is contained in:
parent
866a2e1c9e
commit
419a4a9f79
14 changed files with 53 additions and 55 deletions
|
|
@ -3,12 +3,13 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
namespace pointybeard\Helpers\Cli\Input\Exceptions;
|
||||
|
||||
use pointybeard\Helpers\Cli\Input\AbstractInputType;
|
||||
|
||||
class InputValidationFailedException extends \Exception
|
||||
{
|
||||
public function __construct(AbstractInputType $input, $code = 0, \Exception $previous = null)
|
||||
{
|
||||
return parent::__construct(sprintf("Validation failed for %s. Returned: %s", $input->getDisplayName(), $previous->getMessage()), $code, $previous);
|
||||
return parent::__construct(sprintf('Validation failed for %s. Returned: %s', $input->getDisplayName(), $previous->getMessage()), $code, $previous);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ class RequiredInputMissingValueException extends \Exception
|
|||
'a value is required for %s',
|
||||
$input->getDisplayName()
|
||||
), $code, $previous);
|
||||
|
||||
}
|
||||
|
||||
public function getInput(): Input\AbstractInputType
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue