Code formatting
This commit is contained in:
@ -11,18 +11,18 @@
|
||||
|
||||
class ErrorAction extends Action
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var ErrorException
|
||||
*/
|
||||
public $exception;
|
||||
|
||||
|
||||
public function __construct($exception)
|
||||
{
|
||||
$this->exception = $exception;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
||||
protected function execute()
|
||||
{
|
||||
$this->template = 500;
|
||||
@ -38,12 +38,12 @@ class ErrorAction extends Action
|
||||
$this->logError();
|
||||
$this->sendHTTPCode();
|
||||
}
|
||||
|
||||
|
||||
protected function getTemplate()
|
||||
{
|
||||
return '/actions/' . $this->template;
|
||||
}
|
||||
|
||||
|
||||
protected function sendHttpCode()
|
||||
{
|
||||
if (headers_sent()) {
|
||||
@ -67,7 +67,7 @@ class ErrorAction extends Action
|
||||
if ($ex instanceof ErrorException) {
|
||||
$error = $ex->getSeverity();
|
||||
}
|
||||
|
||||
|
||||
switch ($error) {
|
||||
case E_NOTICE:
|
||||
$error = 'Notice';
|
||||
|
Reference in New Issue
Block a user