Update typos in PHPDocs and comments

This commit is contained in:
Robbie Averill 2018-07-04 11:02:35 +12:00
parent d37551de34
commit 0a672372ff
2 changed files with 6 additions and 6 deletions

View File

@ -79,7 +79,7 @@ class DetailedErrorFormatter implements FormatterInterface
/**
* Render a developer facing error page, showing the stack trace and details
* of the code where the error occured.
* of the code where the error occurred.
*
* @param int $errno
* @param string $errstr

View File

@ -2,11 +2,11 @@
namespace SilverStripe\Logging;
use Monolog\Formatter\FormatterInterface;
use Monolog\Handler\AbstractProcessingHandler;
use SilverStripe\Control\Controller;
use SilverStripe\Control\Director;
use SilverStripe\Control\HTTPResponse;
use Monolog\Handler\AbstractProcessingHandler;
use Monolog\Formatter\FormatterInterface;
/**
* Output the error to the browser, with the given HTTP status code.
@ -79,7 +79,7 @@ class HTTPOutputHandler extends AbstractProcessingHandler
/**
* Set a formatter to use if Director::is_cli() is true
*
* @param $cliFormatter
* @param FormatterInterface $cliFormatter
* @return HTTPOutputHandler Return $this to allow chainable calls
*/
public function setCLIFormatter(FormatterInterface $cliFormatter)
@ -153,12 +153,12 @@ class HTTPOutputHandler extends AbstractProcessingHandler
$response = new HTTPResponse();
}
// If headers have been sent then these won't be used, and may throw errors that we wont' want to see.
// If headers have been sent then these won't be used, and may throw errors that we won't want to see.
if (!headers_sent()) {
$response->setStatusCode($this->getStatusCode());
$response->addHeader('Content-Type', $this->getContentType());
} else {
// To supress errors aboot errors
// To suppress errors about errors
$response->setStatusCode(200);
}