Phly\Mustache\Lexer::disableStripWhitespace PHP Method

disableStripWhitespace() public method

Set or get the flag indicating whether or not to strip whitespace
public disableStripWhitespace ( null | boolean $flag = null ) : boolean | Lexer
$flag null | boolean Null indicates retrieving; boolean value sets
return boolean | Lexer
    public function disableStripWhitespace($flag = null)
    {
        if (null === $flag) {
            return !$this->stripWhitespaceFlag;
        }
        $this->stripWhitespaceFlag = !(bool) $flag;
        return $this;
    }