예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 /**
  * Normalize issue key
  *
  * @param string $key
  * @return string
  */
 protected function normalizeIssueKey($key)
 {
     return Parser::factory(null)->normalizeIssueKey($key);
 }