| Conditions | 2 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function getDomainNameForRepo() |
||
| 29 | { |
||
| 30 | try { |
||
| 31 | $domain = app('domains')->getUsedNow(); |
||
| 32 | |||
| 33 | $domain = app('domains')->findOrFail($domain)->getStudlyName(); |
||
| 34 | |||
| 35 | } catch (\Throwable $th) { |
||
| 36 | $helper = $this->getHelper('question'); |
||
| 37 | $question = new ChoiceQuestion( |
||
| 38 | 'Select Domain :', |
||
| 39 | array_values($this->laravel['domains']->all()), |
||
| 40 | 0 |
||
| 41 | ); |
||
| 42 | $question->setErrorMessage('Domain %s is invalid.'); |
||
| 43 | $domain = $helper->ask($this->input, $this->output, $question);; |
||
| 44 | } |
||
| 45 | return $domain; |
||
| 46 | } |
||
| 48 |