mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Enable no_useless_else
rule in php-cs-fixer (#14420)
This commit is contained in:

committed by
Alexander Makarov

parent
341b8d04c5
commit
fe8a0a6a2e
@ -55,8 +55,8 @@ class HttpException extends UserException
|
||||
{
|
||||
if (isset(Response::$httpStatuses[$this->statusCode])) {
|
||||
return Response::$httpStatuses[$this->statusCode];
|
||||
} else {
|
||||
return 'Error';
|
||||
}
|
||||
|
||||
return 'Error';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user