From afc5ecf2967bf3510363535c0389ddc0f6284784 Mon Sep 17 00:00:00 2001 From: Kris Wallsmith Date: Fri, 8 Jun 2012 14:18:51 -0700 Subject: [PATCH] [Console] reduced visibility to protected --- Output/NullOutput.php | 2 +- Output/Output.php | 2 +- Output/StreamOutput.php | 2 +- Tests/Output/OutputTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Output/NullOutput.php b/Output/NullOutput.php index ae3b7f61f..783d42b65 100644 --- a/Output/NullOutput.php +++ b/Output/NullOutput.php @@ -28,7 +28,7 @@ class NullOutput extends Output * @param string $message A message to write to the output * @param Boolean $newline Whether to add a newline or not */ - public function doWrite($message, $newline) + protected function doWrite($message, $newline) { } } diff --git a/Output/Output.php b/Output/Output.php index 222788016..3866dbc15 100644 --- a/Output/Output.php +++ b/Output/Output.php @@ -176,5 +176,5 @@ public function write($messages, $newline = false, $type = 0) * @param string $message A message to write to the output * @param Boolean $newline Whether to add a newline or not */ - abstract public function doWrite($message, $newline); + abstract protected function doWrite($message, $newline); } diff --git a/Output/StreamOutput.php b/Output/StreamOutput.php index 79bb025e9..e00d0655c 100644 --- a/Output/StreamOutput.php +++ b/Output/StreamOutput.php @@ -78,7 +78,7 @@ public function getStream() * * @throws \RuntimeException When unable to write output (should never happen) */ - public function doWrite($message, $newline) + protected function doWrite($message, $newline) { if (false === @fwrite($this->stream, $message.($newline ? PHP_EOL : ''))) { // @codeCoverageIgnoreStart diff --git a/Tests/Output/OutputTest.php b/Tests/Output/OutputTest.php index 25c05f696..aa4a2046b 100644 --- a/Tests/Output/OutputTest.php +++ b/Tests/Output/OutputTest.php @@ -94,7 +94,7 @@ public function clear() $this->output = ''; } - public function doWrite($message, $newline) + protected function doWrite($message, $newline) { $this->output .= $message.($newline ? "\n" : ''); }