[TASK] Updated variable names to lowerCamelCase.

This commit is contained in:
Jan Philipp Timme
2011-06-25 23:16:28 +00:00
parent 78866ed149
commit df030e453d
7 changed files with 103 additions and 103 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ class Misc_Buffer {
//no need to do this when there are no linebreaks.
if($this->linebreak === "") return;
if(strpos($this->buffer, $this->linebreak) === FALSE) return;
$has_linebreak_at_end = (substr($this->buffer, (-1) * strlen($this->linebreak)) === $this->linebreak) ? TRUE : FALSE;
$hasLinebreakAtEnd = (substr($this->buffer, (-1) * strlen($this->linebreak)) === $this->linebreak) ? TRUE : FALSE;
$lines = explode($this->linebreak, $this->buffer);
foreach($lines AS $key=>$line) {
$line = str_replace($this->linebreak, "", $line);
@@ -46,7 +46,7 @@ class Misc_Buffer {
if($line === "") unset($lines[$key]);
}
$this->buffer = implode($this->linebreak, $lines);
if($has_linebreak_at_end) $this->buffer .= $this->linebreak;
if($hasLinebreakAtEnd === TRUE) $this->buffer .= $this->linebreak;
}
/**