pgb_liv\php_ms\Writer\MgfWriter::write
Writes the precursor ion and it's associated fragments to the file associated with this instance
Signature
public function write(PrecursorIon
$precursor )
Parameters
$precursor
— pgb_liv\php_ms\Core\Spectra\PrecursorIon
The precursor ion to write
Test Coverage
Information
- Coverage: 25/29 Lines (86.206896551724%)
- Tests: 3
- Passed: 3 (100%)
Tests
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MgfWriterTest::testCanWriteShortEntry
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MgfWriterTest::testCanWriteLongEntry
- [ PASSED ] — pgb_liv\php_ms\Test\Unit\MgfWriterTest::testCanDestruct
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
79 - 81 | ElseExpression | The method write uses an else expression. Else is never necessary and you can simplify the code to work without else. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
78 | 121 | warning | Line exceeds 120 characters; contains 121 characters |
Line | Task |
---|---|
61 | Validate mandatory/optional fields |