The Incient::createIncidentFromBugReport method heavily duplicates code for PHP and JS reporting, it should be shared as much is possible (eg. Incident::_getSchematizedIncident could return array in both cases what would make handling almost identical).
The Incient::createIncidentFromBugReport method heavily duplicates code for PHP and JS reporting, it should be shared as much is possible (eg. Incident::_getSchematizedIncident could return array in both cases what would make handling almost identical).