From 9911c9c9ef0d78398f31431964d58a3055679045 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Sat, 20 Oct 2018 14:51:08 +0200 Subject: [PATCH] Use single quotes and getters over direct prop access in HTTPOutputHandler --- src/Logging/HTTPOutputHandler.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Logging/HTTPOutputHandler.php b/src/Logging/HTTPOutputHandler.php index 206039cd1..45f51c785 100644 --- a/src/Logging/HTTPOutputHandler.php +++ b/src/Logging/HTTPOutputHandler.php @@ -18,7 +18,7 @@ class HTTPOutputHandler extends AbstractProcessingHandler /** * @var string */ - private $contentType = "text/html"; + private $contentType = 'text/html'; /** * @var int @@ -155,8 +155,8 @@ class HTTPOutputHandler extends AbstractProcessingHandler // If headers have been sent then these won't be used, and may throw errors that we wont' want to see. if (!headers_sent()) { - $response->setStatusCode($this->statusCode); - $response->addHeader("Content-Type", $this->contentType); + $response->setStatusCode($this->getStatusCode()); + $response->addHeader('Content-Type', $this->getContentType()); } else { // To supress errors aboot errors $response->setStatusCode(200); @@ -165,6 +165,6 @@ class HTTPOutputHandler extends AbstractProcessingHandler $response->setBody($record['formatted']); $response->output(); - return false === $this->bubble; + return false === $this->getBubble(); } }