core/Command/Security/ListCertificates.php 1 location
|
@@ 68-72 (lines=5) @@
|
| 65 |
|
'issue_date' => $certificate->getIssueDate()->format(\DateTime::ATOM) |
| 66 |
|
]; |
| 67 |
|
}, $this->certificateManager->listCertificates()); |
| 68 |
|
if ($outputType === self::OUTPUT_FORMAT_JSON) { |
| 69 |
|
$output->writeln(json_encode(array_values($certificates))); |
| 70 |
|
} else { |
| 71 |
|
$output->writeln(json_encode(array_values($certificates), JSON_PRETTY_PRINT)); |
| 72 |
|
} |
| 73 |
|
} else { |
| 74 |
|
$table = new Table($output); |
| 75 |
|
$table->setHeaders([ |
apps/files_external/lib/Command/ListCommand.php 1 location
|
@@ 181-185 (lines=5) @@
|
| 178 |
|
|
| 179 |
|
return array_combine($keys, $values); |
| 180 |
|
}, $mounts); |
| 181 |
|
if ($outputType === self::OUTPUT_FORMAT_JSON) { |
| 182 |
|
$output->writeln(json_encode(array_values($pairs))); |
| 183 |
|
} else { |
| 184 |
|
$output->writeln(json_encode(array_values($pairs), JSON_PRETTY_PRINT)); |
| 185 |
|
} |
| 186 |
|
} else { |
| 187 |
|
$full = $input->getOption('full'); |
| 188 |
|
$defaultMountOptions = [ |