[TASK] Updated variable names to lowerCamelCase.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user