diff --git a/src/opnsense/mvc/app/library/OPNsense/OpenVPN/ArchiveOpenVPN.php b/src/opnsense/mvc/app/library/OPNsense/OpenVPN/ArchiveOpenVPN.php index 0a93005c9..600b33099 100644 --- a/src/opnsense/mvc/app/library/OPNsense/OpenVPN/ArchiveOpenVPN.php +++ b/src/opnsense/mvc/app/library/OPNsense/OpenVPN/ArchiveOpenVPN.php @@ -67,7 +67,7 @@ class ArchiveOpenVPN extends PlainOpenVPN { $conf = $this->openvpnConfParts(); $base_filename = $this->getBaseFilename(); - $tempdir = tempnam(sys_get_temp_dir(), '_ovpn') ; + $tempdir = tempnam(sys_get_temp_dir(), '_ovpn'); $content_dir = $tempdir . "/" . $base_filename; if (file_exists($tempdir)) { unlink($tempdir); diff --git a/src/opnsense/mvc/app/library/OPNsense/OpenVPN/BaseExporter.php b/src/opnsense/mvc/app/library/OPNsense/OpenVPN/BaseExporter.php index 5174ce378..84caa4400 100644 --- a/src/opnsense/mvc/app/library/OPNsense/OpenVPN/BaseExporter.php +++ b/src/opnsense/mvc/app/library/OPNsense/OpenVPN/BaseExporter.php @@ -34,8 +34,7 @@ namespace OPNsense\OpenVPN; */ abstract class BaseExporter { - - var $config = array(); + var $config = array(); /* XXX make visibility not var */ /** * @param array $conf configuration to use @@ -52,7 +51,7 @@ abstract class BaseExporter * @param array|null $cas list of CA-certificates * @return string pkcs12 */ - protected function export_pkcs12($crt, $prv, $pass="", $cas=null) + protected function export_pkcs12($crt, $prv, $pass = '', $cas = null) { $p12 = null; $crt = openssl_x509_read($crt);