protected function isWhiteListed($content)
    {
        if (isset($this->functionWhitelist) === false) {
            return false;
        }

        if (\is_string($this->functionWhitelist) === true) {
            if (strpos($this->functionWhitelist, ',') !== false) {
                $this->functionWhitelist = explode(',', $this->functionWhitelist);
            } else {
                $this->functionWhitelist = (array) $this->functionWhitelist;
            }
        }

        if (\is_array($this->functionWhitelist) === true) {
            $this->functionWhitelist = array_map('strtolower', $this->functionWhitelist);
            return \in_array($content, $this->functionWhitelist, true);
        }

        return false;
    }
protected function isWhiteListed($content)
    {
        if (isset($this->functionWhitelist) === false) {
            return false;
        }

        if (\is_string($this->functionWhitelist) === true) {
            if (strpos($this->functionWhitelist, ',') !== false) {
                $this->functionWhitelist = explode(',', $this->functionWhitelist);
            } else {
                $this->functionWhitelist = (array) $this->functionWhitelist;
            }
        }

        if (\is_array($this->functionWhitelist) === true) {
            $this->functionWhitelist = array_map('strtolower', $this->functionWhitelist);
            return \in_array($content, $this->functionWhitelist, true);
        }

        return false;
    }
protected function isWhiteListed ( $ content ) { if ( isset ( $ this -> functionWhitelist ) === false ) { return false ; } if ( \ is_string ( $ this -> functionWhitelist ) === true ) { if ( strpos ( $ this -> functionWhitelist , ',' ) !== false ) { $ this -> functionWhitelist = explode ( ',' , $ this -> functionWhitelist ) ; } else { $ this -> functionWhitelist = ( array ) $ this -> functionWhitelist ; } } if ( \ is_array ( $ this -> functionWhitelist ) === true ) { $ this -> functionWhitelist = array_map ( 'strtolower' , $ this -> functionWhitelist ) ; return \ in_array ( $ content , $ this -> functionWhitelist , true ) ; } return false ; }
Is the current function being checked whitelisted ?

Parsing the list late as it may be provided as a property, but also inline.

@param string $content Content of the current token.

@return bool
Is the current function being checked whitelisted ?