pgb_liv\php_ms\Reader\MgfReader

An MGF reader that creates a new iterable object that will return a raw entry on each iteration.

Synopsis

class MgfReader implements Iterator {
}

Hierarchy

Implements

Coverage

Methods 72.73% 8 / 11
Lines 94.9% 93 / 98

Violations

PHPMessDetector

Line Rule Message
178 - 180 ElseExpression The method parseEntry uses an else expression. Else is never necessary and you can simplify the code to work without else.
229 - 231 ElseExpression The method parseMeta uses an else expression. Else is never necessary and you can simplify the code to work without else.

Tasks

Line Task
175 Better support required for charge-less data

Members

private

  • $charge
  • $current
  • $fileHandle
  • $filePath
  • $filePeek
  • $key
  • $massCharge

Methods

private

  • getLine() — Gets the next line and increments the file iterator
  • parseEntry()
  • parseFragments() — Parses the fragment information from the scan and writes it to the precursor entry
  • parseMeta() — Parses the meta information from the scan and writes it to the precursor entry
  • peekLine() — Gets the next line, though does not move the file iterator

public

History