/**
* Helper function to calculate the starting measures number
*
* @param \DOMNode $part The \DOMNode element for the music xml part
* @param int $start The start notes number (inside the part)
*
* @return int Number of the measure where the extract should start
*
*/
private function calculateStartExtract($part, $start) { ... }
[x] replace '!=' with '!==' if type comparission is needed (pretty much every where...)
[x] unnötig kompliziert jetz jedes mal nachzuschaun ob wert&type abgleich angebracht ist, da oftmals unklar ob z.B. boolesche werte tatsächlich vorliegen, oder ob true/false als String gesetzt....
ggf methoden ordentlich kommentieren:
Javascript
http://en.wikipedia.org/wiki/JSDoc
PHP
http://de.wikipedia.org/wiki/PHPDoc http://www.phpdoc.org/docs/latest/index.html