]> git.mxchange.org Git - core.git/commitdiff
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 fb1fdaf2af2b11faa0580591ac1b4616d4a387d3..a6f20ee5cb6096026364a06f27d79681f3332725 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 172846a9cea2d3c2faf44ed250bbd6f136620b10..0b7e06ad5ce3f3f24ba5f7e248d6a30adb5192cc 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 d8ed3515879f7a60676d77152a265d5ee793e5e1..ab3950f59d855f835f46ac6d4a8acda5bf8862a4 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 5df93cba746504da9f99c018c21fe567a89bd319..61b6f8ab42c382a369d683f6222da3a2beb0431b 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;
        }
 }