Use proper line endings

This commit is contained in:
Julien Falque 2017-03-12 23:37:52 +01:00
parent 6831b984e1
commit 33946e69c0
No known key found for this signature in database
GPG Key ID: 6B13BB4B40DBD0E9
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class BufferedOutput extends Output
$this->buffer .= $message;
if ($newline) {
$this->buffer .= "\n";
$this->buffer .= PHP_EOL;
}
}
}

View File

@ -26,7 +26,7 @@ class DummyOutput extends BufferedOutput
public function getLogs()
{
$logs = array();
foreach (explode("\n", trim($this->fetch())) as $message) {
foreach (explode(PHP_EOL, trim($this->fetch())) as $message) {
preg_match('/^\[(.*)\] (.*)/', $message, $matches);
$logs[] = sprintf('%s %s', $matches[1], $matches[2]);
}