Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
46 | public function handle() |
||
47 | { |
||
48 | $outputPath = $this->option('location'); |
||
49 | |||
50 | $documentarian = new Documentarian(); |
||
51 | |||
52 | if (!is_dir($outputPath)) { |
||
53 | $this->error('There is no generated documentation available at '.$outputPath.'.'); |
||
54 | return false; |
||
55 | } |
||
56 | $this->info('Updating API HTML code'); |
||
57 | |||
58 | $documentarian->generate($outputPath); |
||
59 | |||
60 | $this->info('Wrote HTML documentation to: ' . $outputPath . '/public/index.html'); |
||
61 | } |
||
62 | |||
64 |
Adding a
@return
annotation 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.