11
0
Fork 0
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:
Alannah Kearney 2019-05-27 00:22:25 +10:00
commit 419a4a9f79
14 changed files with 53 additions and 55 deletions

View file

@ -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);
}
}

View file

@ -18,7 +18,6 @@ class RequiredInputMissingValueException extends \Exception
'a value is required for %s',
$input->getDisplayName()
), $code, $previous);
}
public function getInput(): Input\AbstractInputType