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