Skip to content

Commit

Permalink
[Console] reduced visibility to protected
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswallsmith committed Jun 8, 2012
1 parent e8824d0 commit afc5ecf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Output/NullOutput.php
Expand Up @@ -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)
{
}
}
2 changes: 1 addition & 1 deletion Output/Output.php
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion Output/StreamOutput.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Tests/Output/OutputTest.php
Expand Up @@ -94,7 +94,7 @@ public function clear()
$this->output = '';
}

public function doWrite($message, $newline)
protected function doWrite($message, $newline)
{
$this->output .= $message.($newline ? "\n" : '');
}
Expand Down

0 comments on commit afc5ecf

Please sign in to comment.