/** * Get parser * * @return Parser\IssueParserInterface|InterpreterInterface * @throws Exception */ protected function getParser() { $parser = Parser::factory(null); if (!$parser) { throw new Exception('Could not local parser.'); } return $parser; }
/** * Normalize issue key * * @param string $key * @return string */ protected function normalizeIssueKey($key) { return Parser::factory(null)->normalizeIssueKey($key); }