| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function handle() |
||
| 40 | { |
||
| 41 | $outputPath = config('apidoc.output'); |
||
| 42 | |||
| 43 | $documentarian = new Documentarian(); |
||
| 44 | |||
| 45 | if (! is_dir($outputPath)) { |
||
| 46 | $this->error('There is no existing documentation available at '.$outputPath.'.'); |
||
| 47 | |||
| 48 | return false; |
||
| 49 | } |
||
| 50 | $this->info('Rebuilding API HTML code from '.$outputPath.'/source/index.md'); |
||
| 51 | |||
| 52 | $documentarian->generate($outputPath); |
||
| 53 | |||
| 54 | $this->info('Wrote HTML documentation to: '.$outputPath.'/index.html'); |
||
| 55 | } |
||
| 56 | } |
||
| 57 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.