Conditions | 3 |
Paths | 3 |
Total Lines | 26 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3.9379 |
Changes | 0 |
1 | <?php |
||
43 | 1 | public function build(SymfonyStyle $io) |
|
44 | { |
||
45 | 1 | $total_builders = count($this->builders); |
|
46 | 1 | $this->stream->open(); |
|
47 | |||
48 | 1 | foreach ($this->builders as $i => $builder) { |
|
49 | 1 | $io->section(sprintf( |
|
50 | 1 | '[%d/%d] Build by <info>%s</info> builder', |
|
51 | 1 | $i + 1, |
|
52 | 1 | $total_builders, |
|
53 | 1 | $builder->getName() |
|
54 | )); |
||
55 | |||
56 | $io->progressStart(count($builder)); |
||
57 | foreach ($builder as $url) { |
||
58 | $this->stream->push($url); |
||
59 | $io->progressAdvance(); |
||
60 | } |
||
61 | $io->progressFinish(); |
||
62 | } |
||
63 | |||
64 | $total_urls = count($this->stream); |
||
65 | $this->stream->close(); |
||
66 | |||
67 | return $total_urls; |
||
68 | } |
||
69 | } |
||
70 |