protected function getVariableValue(array $matches)
    {
        $res = $matches[0];
        $variable = substr($matches[0], 1, -1);

        if (isset($this->frontmatter[$variable])) {
            $res = $this->frontmatter[$variable];
        }

        return $res;
    }
protected function getVariableValue(array $matches)
    {
        $res = $matches[0];
        $variable = substr($matches[0], 1, -1);

        if (isset($this->frontmatter[$variable])) {
            $res = $this->frontmatter[$variable];
        }

        return $res;
    }
protected function getVariableValue ( array $ matches ) { $ res = $ matches [ 0 ] ; $ variable = substr ( $ matches [ 0 ] , 1 , - 1 ) ; if ( isset ( $ this -> frontmatter [ $ variable ] ) ) { $ res = $ this -> frontmatter [ $ variable ] ; } return $ res ; }
Detect and extract inline variables.

@param string $text to parse.

@return boolean|void true when block is found and parsed, else void.

@SuppressWarnings(PHPMD.CyclomaticComplexity)
Detect and extract inline variables .