@@ -92,7 +92,7 @@ |
||
| 92 | 92 | Router::plugin( |
| 93 | 93 | 'Fr3nch13/Jira', |
| 94 | 94 | ['path' => '/jira'], |
| 95 | - function (RouteBuilder $routes) { |
|
| 95 | + function(RouteBuilder $routes) { |
|
| 96 | 96 | $routes->fallbacks(DashedRoute::class); |
| 97 | 97 | } |
| 98 | 98 | ); |
@@ -533,10 +533,10 @@ |
||
| 533 | 533 | try { |
| 534 | 534 | $ret = $issueService->create($issueField); |
| 535 | 535 | } catch (\JiraRestApi\JiraException $e) { |
| 536 | - //Sample return error with json in it. |
|
| 537 | - //Pasting here so I can mock this return message in the unit tests. |
|
| 538 | - //CURL HTTP Request Failed: Status Code : 400, URL:https://[hostname]/rest/api/2/issue |
|
| 539 | - //Error Message : {"errorMessages":[],"errors":{"user_type":"Field 'user_type' cannot be set. It is not on the appropriate screen, or unknown."}} */ |
|
| 536 | + //Sample return error with json in it. |
|
| 537 | + //Pasting here so I can mock this return message in the unit tests. |
|
| 538 | + //CURL HTTP Request Failed: Status Code : 400, URL:https://[hostname]/rest/api/2/issue |
|
| 539 | + //Error Message : {"errorMessages":[],"errors":{"user_type":"Field 'user_type' cannot be set. It is not on the appropriate screen, or unknown."}} */ |
|
| 540 | 540 | $msg = $e->getMessage(); |
| 541 | 541 | if (strpos($msg, '{') !== false) { |
| 542 | 542 | $msg = str_split($msg); |