protected static function _splitConditions($token)
    {
        $conditions = false;
        $position = strpos($token, '[');
        if ($position !== false) {
            $conditions = substr($token, $position);
            $token = substr($token, 0, $position);
        }

        return [$token, $conditions];
    }
protected static function _splitConditions($token)
    {
        $conditions = false;
        $position = strpos($token, '[');
        if ($position !== false) {
            $conditions = substr($token, $position);
            $token = substr($token, 0, $position);
        }

        return [$token, $conditions];
    }
protected static function _splitConditions ( $ token ) { $ conditions = false ; $ position = strpos ( $ token , '[' ) ; if ( $ position !== false ) { $ conditions = substr ( $ token , $ position ) ; $ token = substr ( $ token , 0 , $ position ) ; } return [ $ token , $ conditions ] ; }
Split token conditions

@param string $token the token being splitted.
@return array [token, conditions] with token splitted
Split token conditions