From 04bc89cf40643171b26be910fef8c48d08b346fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 7 Feb 2013 22:08:02 +0000 Subject: [PATCH] Use PHP_EOL instead of chr(10) --- inc/classes/main/factories/class_BaseFactory.php | 2 +- inc/classes/main/helper/class_BaseHelper.php | 6 +++--- inc/classes/main/io/class_FileIoStream.php | 2 +- inc/classes/main/output/class_ConsoleOutput.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/classes/main/factories/class_BaseFactory.php b/inc/classes/main/factories/class_BaseFactory.php index fb1fdaf2..a6f20ee5 100644 --- a/inc/classes/main/factories/class_BaseFactory.php +++ b/inc/classes/main/factories/class_BaseFactory.php @@ -59,7 +59,7 @@ class BaseFactory extends BaseFrameworkSystem { } // END - if // Count it up again - //* NOISY-DEBUG: */ print __METHOD__.': className=' .$className . chr(10); + //* NOISY-DEBUG: */ print __METHOD__.': className=' .$className . PHP_EOL; self::$objectCounters[$className]++; } diff --git a/inc/classes/main/helper/class_BaseHelper.php b/inc/classes/main/helper/class_BaseHelper.php index 172846a9..0b7e06ad 100644 --- a/inc/classes/main/helper/class_BaseHelper.php +++ b/inc/classes/main/helper/class_BaseHelper.php @@ -87,7 +87,7 @@ class BaseHelper extends BaseFrameworkSystem { * @return void */ protected final function addContent ($newContent) { - $this->content .= (string) trim($newContent) . chr(10); + $this->content .= (string) trim($newContent) . PHP_EOL; } /** @@ -391,7 +391,7 @@ class BaseHelper extends BaseFrameworkSystem { // Is header content there? if (isset($this->groups['header'])) { // Then add it - $content .= $this->groups['header']['content'] . chr(10); + $content .= $this->groups['header']['content'] . PHP_EOL; } // END - if // Initiate content @@ -419,7 +419,7 @@ class BaseHelper extends BaseFrameworkSystem { // Is footer content there? if (isset($this->groups['footer'])) { // Then add it - $content .= $this->groups['footer']['content'] . chr(10); + $content .= $this->groups['footer']['content'] . PHP_EOL; } // END - if // Return it diff --git a/inc/classes/main/io/class_FileIoStream.php b/inc/classes/main/io/class_FileIoStream.php index d8ed3515..ab3950f5 100644 --- a/inc/classes/main/io/class_FileIoStream.php +++ b/inc/classes/main/io/class_FileIoStream.php @@ -209,7 +209,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil $readData .= $data[0]; } else { // Other raw lines than header/data tagged lines and re-add the new-line char - $readData .= $rawLine . chr(10); + $readData .= $rawLine . PHP_EOL; } } // END - foreach diff --git a/inc/classes/main/output/class_ConsoleOutput.php b/inc/classes/main/output/class_ConsoleOutput.php index 5df93cba..61b6f8ab 100644 --- a/inc/classes/main/output/class_ConsoleOutput.php +++ b/inc/classes/main/output/class_ConsoleOutput.php @@ -88,7 +88,7 @@ class ConsoleOutput extends BaseFrameworkSystem implements OutputStreamer { * @return void */ public final function output ($outStream = false, $stripTags = false) { - print trim($outStream) . chr(10); + print trim($outStream) . PHP_EOL; } } -- 2.30.2