| @@ 95-112 (lines=18) @@ | ||
| 92 | $this->output = $output; |
|
| 93 | } |
|
| 94 | ||
| 95 | protected function createMockFiles() |
|
| 96 | { |
|
| 97 | $files = $this->getFilesToMock(); |
|
| 98 | ||
| 99 | if ($files->count()) { |
|
| 100 | $this->output->writeln('<info>Compiling "apib" files to mock</info>'); |
|
| 101 | $progress = new ProgressBar($this->output, count($files)); |
|
| 102 | $progress->setBarCharacter('<fg=magenta>=</>'); |
|
| 103 | $progress->setProgressCharacter("\xF0\x9F\x8D\xBA"); |
|
| 104 | ||
| 105 | foreach ($files as $file) { |
|
| 106 | $this->compileToMock($file->getRealPath()); |
|
| 107 | $progress->advance(); |
|
| 108 | } |
|
| 109 | ||
| 110 | $progress->finish(); |
|
| 111 | } |
|
| 112 | } |
|
| 113 | ||
| 114 | protected function createDocFiles() |
|
| 115 | { |
|
| @@ 114-131 (lines=18) @@ | ||
| 111 | } |
|
| 112 | } |
|
| 113 | ||
| 114 | protected function createDocFiles() |
|
| 115 | { |
|
| 116 | $files = $this->getFilesToDoc(); |
|
| 117 | ||
| 118 | if ($files->count()) { |
|
| 119 | $this->output->writeln('<info>Creating documentation from mock files compiled</info>'); |
|
| 120 | $progress = new ProgressBar($this->output, count($files)); |
|
| 121 | $progress->setBarCharacter('<fg=magenta>=</>'); |
|
| 122 | $progress->setProgressCharacter("\xF0\x9F\x8D\xBA"); |
|
| 123 | ||
| 124 | foreach ($files as $file) { |
|
| 125 | $this->compileToDoc($file->getRealPath()); |
|
| 126 | $progress->advance(); |
|
| 127 | } |
|
| 128 | ||
| 129 | $progress->finish(); |
|
| 130 | } |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * @param string $fileName |
|