mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
格式化代码
This commit is contained in:
@@ -663,18 +663,11 @@ class Console
|
|||||||
if (true === $input->hasParameterOption(['--quiet', '-q'])) {
|
if (true === $input->hasParameterOption(['--quiet', '-q'])) {
|
||||||
$output->setVerbosity(Output::VERBOSITY_QUIET);
|
$output->setVerbosity(Output::VERBOSITY_QUIET);
|
||||||
} else {
|
} else {
|
||||||
if ($input->hasParameterOption('-vvv') || $input->hasParameterOption('--verbose=3')
|
if ($input->hasParameterOption('-vvv') || $input->hasParameterOption('--verbose=3') || $input->getParameterOption('--verbose') === 3) {
|
||||||
|| $input->getParameterOption('--verbose') === 3
|
|
||||||
) {
|
|
||||||
$output->setVerbosity(Output::VERBOSITY_DEBUG);
|
$output->setVerbosity(Output::VERBOSITY_DEBUG);
|
||||||
} elseif ($input->hasParameterOption('-vv') || $input->hasParameterOption('--verbose=2')
|
} elseif ($input->hasParameterOption('-vv') || $input->hasParameterOption('--verbose=2') || $input->getParameterOption('--verbose') === 2) {
|
||||||
|| $input->getParameterOption('--verbose') === 2
|
|
||||||
) {
|
|
||||||
$output->setVerbosity(Output::VERBOSITY_VERY_VERBOSE);
|
$output->setVerbosity(Output::VERBOSITY_VERY_VERBOSE);
|
||||||
} elseif ($input->hasParameterOption('-v') || $input->hasParameterOption('--verbose=1')
|
} elseif ($input->hasParameterOption('-v') || $input->hasParameterOption('--verbose=1') || $input->hasParameterOption('--verbose') || $input->getParameterOption('--verbose')) {
|
||||||
|| $input->hasParameterOption('--verbose')
|
|
||||||
|| $input->getParameterOption('--verbose')
|
|
||||||
) {
|
|
||||||
$output->setVerbosity(Output::VERBOSITY_VERBOSE);
|
$output->setVerbosity(Output::VERBOSITY_VERBOSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,12 +77,7 @@ class Error
|
|||||||
{
|
{
|
||||||
if (!is_null($error = error_get_last()) && self::isFatal($error['type'])) {
|
if (!is_null($error = error_get_last()) && self::isFatal($error['type'])) {
|
||||||
// 将错误信息托管至think\ErrorException
|
// 将错误信息托管至think\ErrorException
|
||||||
$exception = new ErrorException(
|
$exception = new ErrorException($error['type'], $error['message'], $error['file'], $error['line']);
|
||||||
$error['type'],
|
|
||||||
$error['message'],
|
|
||||||
$error['file'],
|
|
||||||
$error['line']
|
|
||||||
);
|
|
||||||
|
|
||||||
self::appException($exception);
|
self::appException($exception);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user