core/Command/Security/ListCertificates.php 1 location
|
@@ 66-70 (lines=5) @@
|
| 63 |
|
'issue_date' => $certificate->getIssueDate()->format(\DateTime::ATOM) |
| 64 |
|
]; |
| 65 |
|
}, $this->certificateManager->listCertificates()); |
| 66 |
|
if ($outputType === self::OUTPUT_FORMAT_JSON) { |
| 67 |
|
$output->writeln(\json_encode(\array_values($certificates))); |
| 68 |
|
} else { |
| 69 |
|
$output->writeln(\json_encode(\array_values($certificates), JSON_PRETTY_PRINT)); |
| 70 |
|
} |
| 71 |
|
} else { |
| 72 |
|
$table = new Table($output); |
| 73 |
|
$table->setHeaders([ |
apps/files_external/lib/Command/ListCommand.php 1 location
|
@@ 208-212 (lines=5) @@
|
| 205 |
|
}, $mounts); |
| 206 |
|
} |
| 207 |
|
|
| 208 |
|
if ($outputType === self::OUTPUT_FORMAT_JSON) { |
| 209 |
|
$output->writeln(\json_encode(\array_values($pairs))); |
| 210 |
|
} else { |
| 211 |
|
$output->writeln(\json_encode(\array_values($pairs), JSON_PRETTY_PRINT)); |
| 212 |
|
} |
| 213 |
|
} else { |
| 214 |
|
|
| 215 |
|
// default output style |