Conditions | 8 |
Paths | 8 |
Total Lines | 40 |
Code Lines | 22 |
Lines | 8 |
Ratio | 20 % |
Tests | 0 |
CRAP Score | 72 |
Changes | 0 |
1 | <?php |
||
61 | public function wait() |
||
62 | { |
||
63 | if (count($this->processes) < $this->numParallelProcesses) { |
||
64 | return; |
||
65 | } |
||
66 | |||
67 | while (count($this->processes)) { |
||
68 | foreach ($this->processes as $i => $process) { |
||
69 | $chunkNum = $i + 1; |
||
70 | |||
71 | if ($process->isRunning()) { |
||
72 | continue; |
||
73 | } |
||
74 | |||
75 | unset($this->processes[$i]); |
||
76 | |||
77 | $this->chunkResults->addCode($code = $process->getExitCode()); |
||
78 | |||
79 | if ($code > 0) { |
||
80 | $this->chunkResults->incrementNumChunkFailures(); |
||
81 | |||
82 | $this->output->writeln(sprintf('Chunk #%s <error>FAILED</error>', $chunkNum)); |
||
83 | |||
84 | $this->output->writeln(''); |
||
85 | $this->output->write($process->getOutput()); |
||
86 | |||
87 | if ($this->stop) { |
||
88 | return $code; |
||
89 | } |
||
90 | View Code Duplication | } else { |
|
1 ignored issue
–
show
|
|||
91 | $this->output->writeln(sprintf('Chunk #%s <info>PASSED</info>', $chunkNum)); |
||
92 | |||
93 | if ($this->verbose) { |
||
94 | $this->output->writeln(''); |
||
95 | $this->output->write($process->getOutput()); |
||
96 | } |
||
97 | } |
||
98 | } |
||
99 | } |
||
100 | } |
||
101 | } |
||
102 |
This check marks private properties in classes that are never used. Those properties can be removed.