summaryrefslogtreecommitdiffstats
path: root/lib/private/Security/CertificateManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Security/CertificateManager.php')
-rw-r--r--lib/private/Security/CertificateManager.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Security/CertificateManager.php b/lib/private/Security/CertificateManager.php
index 48ff28a3fb4..9c47076787c 100644
--- a/lib/private/Security/CertificateManager.php
+++ b/lib/private/Security/CertificateManager.php
@@ -88,17 +88,17 @@ class CertificateManager implements ICertificateManager {
public function listCertificates() {
if (!$this->config->getSystemValue('installed', false)) {
- return array();
+ return [];
}
$path = $this->getPathToCertificates() . 'uploads/';
if (!$this->view->is_dir($path)) {
- return array();
+ return [];
}
- $result = array();
+ $result = [];
$handle = $this->view->opendir($path);
if (!is_resource($handle)) {
- return array();
+ return [];
}
while (false !== ($file = readdir($handle))) {
if ($file != '.' && $file != '..') {