| Conditions | 5 |
| Paths | 16 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 54 | 10 | public function dumpTable(bool $displayHeader = true, bool $linesAround = true): void |
|
| 55 | { |
||
| 56 | 10 | if ($linesAround) { |
|
| 57 | 10 | $this->writeLn($this->prettyTable->getSeparator()); |
|
| 58 | } |
||
| 59 | 10 | if ($displayHeader) { |
|
| 60 | 10 | $this->writeLn($this->prettyTable->getHeader()); |
|
| 61 | 10 | $this->writeLn($this->prettyTable->getSeparator()); |
|
| 62 | } |
||
| 63 | 10 | foreach ($this->prettyTable as $row) { |
|
| 64 | 8 | $this->writeLn($row); |
|
| 65 | } |
||
| 66 | 10 | if ($linesAround) { |
|
| 67 | 10 | $this->writeLn($this->prettyTable->getSeparator()); |
|
| 68 | } |
||
| 69 | 10 | $this->resetTable(); |
|
| 70 | 10 | } |
|
| 74 |