merged branch kriswallsmith/console-visibility (PR #4526)

Commits
-------

d13dce0 [Console] reduced visibility to protected

Discussion
----------

[Console] reduced visibility to protected

This is an internal method and should be cast as such.

---------------------------------------------------------------------------

by travisbot at 2012-06-08T21:27:13Z

This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1571579) (merged d13dce06 into b84b46ba).
This commit is contained in:
Fabien Potencier 2012-06-09 11:53:01 +02:00
commit 3bb7dc0bfa
4 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ class NullOutput extends Output
* @param string $message A message to write to the output * @param string $message A message to write to the output
* @param Boolean $newline Whether to add a newline or not * @param Boolean $newline Whether to add a newline or not
*/ */
public function doWrite($message, $newline) protected function doWrite($message, $newline)
{ {
} }
} }

View File

@ -176,5 +176,5 @@ abstract class Output implements OutputInterface
* @param string $message A message to write to the output * @param string $message A message to write to the output
* @param Boolean $newline Whether to add a newline or not * @param Boolean $newline Whether to add a newline or not
*/ */
abstract public function doWrite($message, $newline); abstract protected function doWrite($message, $newline);
} }

View File

@ -78,7 +78,7 @@ class StreamOutput extends Output
* *
* @throws \RuntimeException When unable to write output (should never happen) * @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 : ''))) { if (false === @fwrite($this->stream, $message.($newline ? PHP_EOL : ''))) {
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart

View File

@ -94,7 +94,7 @@ class TestOutput extends Output
$this->output = ''; $this->output = '';
} }
public function doWrite($message, $newline) protected function doWrite($message, $newline)
{ {
$this->output .= $message.($newline ? "\n" : ''); $this->output .= $message.($newline ? "\n" : '');
} }