src/Reader/MzIdentMlReader1r1.php
protected function getEnzymes(\SimpleXMLElement $xml)
    {
        $enzymes = array();

        foreach ($xml->Enzyme as $xmlEnzyme) {
            $enzyme = $this->getEnzyme($xmlEnzyme);

            if (isset($enzyme['id'])) {
                $enzymes[$enzyme['id']] = $enzyme;
                continue;
            }

            $enzymes[] = $enzyme;
        }

        return $enzymes;
    }
protected function getEnzymes(\SimpleXMLElement $xml)
    {
        $enzymes = array();

        foreach ($xml->Enzyme as $xmlEnzyme) {
            $enzyme = $this->getEnzyme($xmlEnzyme);

            if (isset($enzyme['id'])) {
                $enzymes[$enzyme['id']] = $enzyme;
                continue;
            }

            $enzymes[] = $enzyme;
        }

        return $enzymes;
    }
protected function getEnzymes ( \ SimpleXMLElement $ xml ) { $ enzymes = array ( ) ; foreach ( $ xml -> Enzyme as $ xmlEnzyme ) { $ enzyme = $ this -> getEnzyme ( $ xmlEnzyme ) ; if ( isset ( $ enzyme [ 'id' ] ) ) { $ enzymes [ $ enzyme [ 'id' ] ] = $ enzyme ; continue ; } $ enzymes [ ] = $ enzyme ; } return $ enzymes ; }
The list of enzymes used in experiment

@param \SimpleXMLElement $xml
@return array
The list of enzymes used in experiment