projects
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f837ed3
)
Use PHP_EOL instead of chr(10)
author
Roland Häder
<roland@mxchange.org>
Thu, 7 Feb 2013 22:08:02 +0000
(22:08 +0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 7 Feb 2013 22:08:02 +0000
(22:08 +0000)
inc/classes/main/factories/class_BaseFactory.php
patch
|
blob
|
history
inc/classes/main/helper/class_BaseHelper.php
patch
|
blob
|
history
inc/classes/main/io/class_FileIoStream.php
patch
|
blob
|
history
inc/classes/main/output/class_ConsoleOutput.php
patch
|
blob
|
history
diff --git
a/inc/classes/main/factories/class_BaseFactory.php
b/inc/classes/main/factories/class_BaseFactory.php
index fb1fdaf2af2b11faa0580591ac1b4616d4a387d3..a6f20ee5cb6096026364a06f27d79681f3332725 100644
(file)
--- 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
} // 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]++;
}
self::$objectCounters[$className]++;
}
diff --git
a/inc/classes/main/helper/class_BaseHelper.php
b/inc/classes/main/helper/class_BaseHelper.php
index 172846a9cea2d3c2faf44ed250bbd6f136620b10..0b7e06ad5ce3f3f24ba5f7e248d6a30adb5192cc 100644
(file)
--- 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) {
* @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
// 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
} // END - if
// Initiate content
@@
-419,7
+419,7
@@
class BaseHelper extends BaseFrameworkSystem {
// Is footer content there?
if (isset($this->groups['footer'])) {
// Then add it
// 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
} // END - if
// Return it
diff --git
a/inc/classes/main/io/class_FileIoStream.php
b/inc/classes/main/io/class_FileIoStream.php
index d8ed3515879f7a60676d77152a265d5ee793e5e1..ab3950f59d855f835f46ac6d4a8acda5bf8862a4 100644
(file)
--- 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 .= $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
}
} // END - foreach
diff --git
a/inc/classes/main/output/class_ConsoleOutput.php
b/inc/classes/main/output/class_ConsoleOutput.php
index 5df93cba746504da9f99c018c21fe567a89bd319..61b6f8ab42c382a369d683f6222da3a2beb0431b 100644
(file)
--- 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) {
* @return void
*/
public final function output ($outStream = false, $stripTags = false) {
- print trim($outStream) .
chr(10)
;
+ print trim($outStream) .
PHP_EOL
;
}
}
}
}