protected function isWhitespaceRequired() {
        $result = false;
        if (!empty($this->compressedCode) && $this->currentPosition < $this->codeLength) {
            $compressedLength = strlen($this->compressedCode);
            $lastChar = $this->compressedCode{$compressedLength - 1};
            $nextChar = $this->code{$this->currentPosition};
            if ($lastChar === '}' && $nextChar === '}' && $compressedLength >= 2) {
                $secondLastChar = $this->compressedCode{$compressedLength - 2};
                $result = ($secondLastChar === '}');
            } else {
                $result = !in_array($lastChar, $this->ignoreFollowingWhitespace)
                    && !in_array($nextChar, $this->ignoreFollowingWhitespace);
            }
        }
        return $result;
    }
protected function isWhitespaceRequired() {
        $result = false;
        if (!empty($this->compressedCode) && $this->currentPosition < $this->codeLength) {
            $compressedLength = strlen($this->compressedCode);
            $lastChar = $this->compressedCode{$compressedLength - 1};
            $nextChar = $this->code{$this->currentPosition};
            if ($lastChar === '}' && $nextChar === '}' && $compressedLength >= 2) {
                $secondLastChar = $this->compressedCode{$compressedLength - 2};
                $result = ($secondLastChar === '}');
            } else {
                $result = !in_array($lastChar, $this->ignoreFollowingWhitespace)
                    && !in_array($nextChar, $this->ignoreFollowingWhitespace);
            }
        }
        return $result;
    }
protected function isWhitespaceRequired ( ) { $ result = false ; if ( ! empty ( $ this -> compressedCode ) && $ this -> currentPosition < $ this -> codeLength ) { $ compressedLength = strlen ( $ this -> compressedCode ) ; $ lastChar = $ this -> compressedCode { $ compressedLength - 1 } ; $ nextChar = $ this -> code { $ this -> currentPosition } ; if ( $ lastChar === '}' && $ nextChar === '}' && $ compressedLength >= 2 ) { $ secondLastChar = $ this -> compressedCode { $ compressedLength - 2 } ; $ result = ( $ secondLastChar === '}' ) ; } else { $ result = ! in_array ( $ lastChar , $ this -> ignoreFollowingWhitespace ) && ! in_array ( $ nextChar , $ this -> ignoreFollowingWhitespace ) ; } } return $ result ; }
Checks whether a whitespace is required at the current position of the compressed code.
@return boolean True if a whitespace is required, false if it can be omitted.
Checks whether a whitespace is required at the current position of the compressed code .