Use PHP_EOL instead of chr(10)
authorRoland Häder <roland@mxchange.org>
Thu, 7 Feb 2013 22:08:02 +0000 (22:08 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 7 Feb 2013 22:08:02 +0000 (22:08 +0000)
inc/classes/main/factories/class_BaseFactory.php
inc/classes/main/helper/class_BaseHelper.php
inc/classes/main/io/class_FileIoStream.php
inc/classes/main/output/class_ConsoleOutput.php

index fb1fdaf..a6f20ee 100644 (file)
@@ -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]++;
        }
 
index 172846a..0b7e06a 100644 (file)
@@ -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
index d8ed351..ab3950f 100644 (file)
@@ -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
 
index 5df93cb..61b6f8a 100644 (file)
@@ -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;
        }
 }