@@ 153-165 (lines=13) @@ | ||
150 | * |
|
151 | * @return Question |
|
152 | */ |
|
153 | private function getJiraUrlQuestion() |
|
154 | { |
|
155 | $question = new Question('<question>Please enter your Jira URL:</question> '); |
|
156 | $question->setValidator(function ($value) { |
|
157 | if (trim($value) === '') { |
|
158 | throw new \Exception('The URL cannot be empty'); |
|
159 | } |
|
160 | ||
161 | return $value; |
|
162 | }); |
|
163 | ||
164 | return $question; |
|
165 | } |
|
166 | ||
167 | /** |
|
168 | * Get JIRA username question |
|
@@ 172-184 (lines=13) @@ | ||
169 | * |
|
170 | * @return Question |
|
171 | */ |
|
172 | private function getJiraUsernameQuestion() |
|
173 | { |
|
174 | $question = new Question('<question>Please enter your Jira username:</question> '); |
|
175 | $question->setValidator(function ($value) { |
|
176 | if (trim($value) === '') { |
|
177 | throw new \Exception('The username cannot be empty'); |
|
178 | } |
|
179 | ||
180 | return $value; |
|
181 | }); |
|
182 | ||
183 | return $question; |
|
184 | } |
|
185 | ||
186 | /** |
|
187 | * Get JIRA password question |