Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | protected function createProgressBar(InputInterface $input, OutputInterface $output, $steps) |
||
42 | { |
||
43 | if ($input->hasOption('no-progress')) { |
||
44 | $output = new NullOutput(); |
||
1 ignored issue
–
show
|
|||
45 | } |
||
46 | |||
47 | $progress = new ProgressBar($output, $steps); |
||
48 | $progress->setFormat(' %current%/%max% [%bar%] %percent:3s%% %memory:6s% %message%'); |
||
49 | //$progress->setRedrawFrequency(1); |
||
50 | return $progress; |
||
51 | } |
||
52 | } |
||
53 |
For interface and abstract methods, it is impossible to infer the return type from the immediate code. In these cases, it is generally advisible to explicitly annotate these methods with a
@return
doc comment to communicate to implementors of these methods what they are expected to return.