private function findIdFormated($id, &$yAlreadySet, &$realNameId) {
        $pos = strpos($id, ')');
        if ($pos === false) {
            throw new CINParseException('gs1128', 'Identifiers must have no more than 4 characters.');
        } else {
            if ($pos < 3) {
                throw new CINParseException('gs1128', 'Identifiers must have at least 2 characters.');
            }

            $id = substr($id, 1, $pos - 1);
            if ($this->idExists($id, $yAlreadySet, $realNameId)) {
                return $id;
            }

            if ($this->allowsUnknownIdentifier === false) {
                throw new CINParseException('gs1128', 'The identifier ' . $id . ' doesn\'t exist.');
            }

            return false;
        }
    }
private function findIdFormated($id, &$yAlreadySet, &$realNameId) {
        $pos = strpos($id, ')');
        if ($pos === false) {
            throw new CINParseException('gs1128', 'Identifiers must have no more than 4 characters.');
        } else {
            if ($pos < 3) {
                throw new CINParseException('gs1128', 'Identifiers must have at least 2 characters.');
            }

            $id = substr($id, 1, $pos - 1);
            if ($this->idExists($id, $yAlreadySet, $realNameId)) {
                return $id;
            }

            if ($this->allowsUnknownIdentifier === false) {
                throw new CINParseException('gs1128', 'The identifier ' . $id . ' doesn\'t exist.');
            }

            return false;
        }
    }
private function findIdFormated ( $ id , & $ yAlreadySet , & $ realNameId ) { $ pos = strpos ( $ id , ')' ) ; if ( $ pos === false ) { throw new CINParseException ( 'gs1128' , 'Identifiers must have no more than 4 characters.' ) ; } else { if ( $ pos < 3 ) { throw new CINParseException ( 'gs1128' , 'Identifiers must have at least 2 characters.' ) ; } $ id = substr ( $ id , 1 , $ pos - 1 ) ; if ( $ this -> idExists ( $ id , $ yAlreadySet , $ realNameId ) ) { return $ id ; } if ( $ this -> allowsUnknownIdentifier === false ) { throw new CINParseException ( 'gs1128' , 'The identifier ' . $ id . ' doesn\'t exist.' ) ; } return false ; } }
Finds ID with formated content.

@param string $id
@param bool $yAlreadySet
@param string $realNameId
@return mixed
Finds ID with formated content .