| @@ 311-325 (lines=15) @@ | ||
| 308 | * @param string[] $rows |
|
| 309 | * @param OutputInterface $output |
|
| 310 | */ |
|
| 311 | protected function showSummary($headers, $rows, OutputInterface $output) { |
|
| 312 | $niceDate = $this->formatExecTime(); |
|
| 313 | if (!$rows) { |
|
| 314 | $rows = [ |
|
| 315 | $this->foldersCounter, |
|
| 316 | $this->filesCounter, |
|
| 317 | $niceDate, |
|
| 318 | ]; |
|
| 319 | } |
|
| 320 | $table = new Table($output); |
|
| 321 | $table |
|
| 322 | ->setHeaders($headers) |
|
| 323 | ->setRows([$rows]); |
|
| 324 | $table->render(); |
|
| 325 | } |
|
| 326 | ||
| 327 | ||
| 328 | /** |
|
| @@ 232-246 (lines=15) @@ | ||
| 229 | * @param string[] $rows |
|
| 230 | * @param OutputInterface $output |
|
| 231 | */ |
|
| 232 | protected function showSummary($headers, $rows, OutputInterface $output) { |
|
| 233 | $niceDate = $this->formatExecTime(); |
|
| 234 | if (!$rows) { |
|
| 235 | $rows = [ |
|
| 236 | $this->foldersCounter, |
|
| 237 | $this->filesCounter, |
|
| 238 | $niceDate, |
|
| 239 | ]; |
|
| 240 | } |
|
| 241 | $table = new Table($output); |
|
| 242 | $table |
|
| 243 | ->setHeaders($headers) |
|
| 244 | ->setRows([$rows]); |
|
| 245 | $table->render(); |
|
| 246 | } |
|
| 247 | ||
| 248 | ||
| 249 | /** |
|