| @@ 240-254 (lines=15) @@ | ||
| 237 | * @param string[] $rows |
|
| 238 | * @param OutputInterface $output |
|
| 239 | */ |
|
| 240 | protected function showSummary($headers, $rows, OutputInterface $output) { |
|
| 241 | $niceDate = $this->formatExecTime(); |
|
| 242 | if (!$rows) { |
|
| 243 | $rows = [ |
|
| 244 | $this->foldersCounter, |
|
| 245 | $this->filesCounter, |
|
| 246 | $niceDate, |
|
| 247 | ]; |
|
| 248 | } |
|
| 249 | $table = new Table($output); |
|
| 250 | $table |
|
| 251 | ->setHeaders($headers) |
|
| 252 | ->setRows([$rows]); |
|
| 253 | $table->render(); |
|
| 254 | } |
|
| 255 | ||
| 256 | ||
| 257 | /** |
|
| @@ 317-331 (lines=15) @@ | ||
| 314 | * @param string[] $rows |
|
| 315 | * @param OutputInterface $output |
|
| 316 | */ |
|
| 317 | protected function showSummary($headers, $rows, OutputInterface $output) { |
|
| 318 | $niceDate = $this->formatExecTime(); |
|
| 319 | if (!$rows) { |
|
| 320 | $rows = [ |
|
| 321 | $this->foldersCounter, |
|
| 322 | $this->filesCounter, |
|
| 323 | $niceDate, |
|
| 324 | ]; |
|
| 325 | } |
|
| 326 | $table = new Table($output); |
|
| 327 | $table |
|
| 328 | ->setHeaders($headers) |
|
| 329 | ->setRows([$rows]); |
|
| 330 | $table->render(); |
|
| 331 | } |
|
| 332 | ||
| 333 | ||
| 334 | /** |
|