( default, true, false)
*/
public function getRuleAction($sid, $default, $response_plain = false)
{
diff --git a/src/opnsense/mvc/app/models/OPNsense/OpenVPN/Export.php b/src/opnsense/mvc/app/models/OPNsense/OpenVPN/Export.php
index 41996bd45..71102ee6c 100644
--- a/src/opnsense/mvc/app/models/OPNsense/OpenVPN/Export.php
+++ b/src/opnsense/mvc/app/models/OPNsense/OpenVPN/Export.php
@@ -38,7 +38,7 @@ class Export extends BaseModel
{
/**
* get or create server to store defaults
- * @param $vpnid openvpn unique reference (number)
+ * @param string $vpnid openvpn unique reference (number)
* @return mixed server object
*/
public function getServer($vpnid)
diff --git a/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt b/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt
index aa6cf1944..b2d851c95 100644
--- a/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt
+++ b/src/opnsense/mvc/app/views/OPNsense/IDS/index.volt
@@ -182,7 +182,7 @@ POSSIBILITY OF SUCH DAMAGE.
* @param gridId: grid id to to use
* @param url: ajax action to call
* @param state: 0/1/undefined
- * @param combine: number of keys to combine (seperate with ,)
+ * @param combine: number of keys to combine (separate with ,)
* try to avoid too much items per call (results in too long url's)
*/
function actionToggleSelected(gridId, url, state, combine) {
diff --git a/src/opnsense/scripts/firmware/check.sh b/src/opnsense/scripts/firmware/check.sh
index f271680f9..a90b73e0f 100755
--- a/src/opnsense/scripts/firmware/check.sh
+++ b/src/opnsense/scripts/firmware/check.sh
@@ -156,7 +156,7 @@ if [ "$pkg_running" == "" ]; then
else
i=`echo $i | tr -d :`
if [ -z "$packages_downgraded" ]; then
- packages_downgraded=$packages_downgraded"{\"name\":\"$i\"," # If it is the first item then we do not want a seperator
+ packages_downgraded=$packages_downgraded"{\"name\":\"$i\"," # If it is the first item then we do not want a separator
else
packages_downgraded=$packages_downgraded", {\"name\":\"$i\","
fi
@@ -232,7 +232,7 @@ if [ "$pkg_running" == "" ]; then
# prevents leaking base / kernel advertising here
pkg_upgraded="yes"
fi
- packages_upgraded=$packages_upgraded"{\"name\":\"$i\"," # If it is the first item then we do not want a seperator
+ packages_upgraded=$packages_upgraded"{\"name\":\"$i\"," # If it is the first item then we do not want a separator
else
packages_upgraded=$packages_upgraded", {\"name\":\"$i\","
fi
@@ -283,7 +283,7 @@ if [ "$pkg_running" == "" ]; then
base_is_size="$(opnsense-update -bfSr $base_to_reboot)"
if [ "$base_to_reboot" != "$base_to_delete" -a -n "$base_is_size" ]; then
if [ "$packages_upgraded" == "" ]; then
- packages_upgraded=$packages_upgraded"{\"name\":\"base\"," # If it is the first item then we do not want a seperator
+ packages_upgraded=$packages_upgraded"{\"name\":\"base\"," # If it is the first item then we do not want a separator
else
packages_upgraded=$packages_upgraded", {\"name\":\"base\","
fi
@@ -311,7 +311,7 @@ if [ "$pkg_running" == "" ]; then
kernel_is_size="$(opnsense-update -fkSr $kernel_to_reboot)"
if [ "$kernel_to_reboot" != "$kernel_to_delete" -a -n "$kernel_is_size" ]; then
if [ "$packages_upgraded" == "" ]; then
- packages_upgraded=$packages_upgraded"{\"name\":\"kernel\"," # If it is the first item then we do not want a seperator
+ packages_upgraded=$packages_upgraded"{\"name\":\"kernel\"," # If it is the first item then we do not want a separator
else
packages_upgraded=$packages_upgraded", {\"name\":\"kernel\","
fi
diff --git a/src/opnsense/scripts/proxy/fetchACLs.py b/src/opnsense/scripts/proxy/fetchACLs.py
index cee47cf6d..f78765de6 100755
--- a/src/opnsense/scripts/proxy/fetchACLs.py
+++ b/src/opnsense/scripts/proxy/fetchACLs.py
@@ -180,7 +180,7 @@ class DomainSorter(object):
:param mode: file open mode
"""
self._num_targets = 20
- self._seperator = '|'
+ self._separator = '|'
self._buckets = dict()
self._sort_map = dict()
# setup target
@@ -220,7 +220,7 @@ class DomainSorter(object):
"""
target = key[0]
if target in self._sort_map:
- for part in (key, self._seperator, value, '\n'):
+ for part in (key, self._separator, value, '\n'):
self._sort_map[target].write(part)
else:
# not supposed to happen, every key should have a calculated target pool
diff --git a/src/www/diag_logs_filter_summary.php b/src/www/diag_logs_filter_summary.php
index 1e03c6c7a..5fcdbb36b 100644
--- a/src/www/diag_logs_filter_summary.php
+++ b/src/www/diag_logs_filter_summary.php
@@ -63,7 +63,7 @@ function conv_log_filter($logfile, $nentries, $tail = 50, $filtertext = '', $fil
}
/* Always do a reverse tail, to be sure we're grabbing the 'end' of the log. */
- $logarr = "";
+ $logarr = [];
exec("/usr/local/sbin/clog " . escapeshellarg($logfile) . " | grep -v \"CLOG\" | grep -v \"\033\" | /usr/bin/grep 'filterlog:' | /usr/bin/tail -r -n {$tail}", $logarr);
diff --git a/src/www/interfaces_ppps_edit.php b/src/www/interfaces_ppps_edit.php
index 1e2d86f49..06ab0c8c2 100644
--- a/src/www/interfaces_ppps_edit.php
+++ b/src/www/interfaces_ppps_edit.php
@@ -51,7 +51,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig[$fieldname] = null;
}
}
- // fields containing array data (comma seperated)
+ // fields containing array data (comma separated)
$explode_fields = array('mtu', 'mru', 'mrru', 'bandwidth', 'localip', 'gateway', 'localip', 'subnet', 'ports');
foreach ($explode_fields as $fieldname) {
if (isset($a_ppps[$id][$fieldname])) {
diff --git a/src/www/javascript/opnsense_legacy.js b/src/www/javascript/opnsense_legacy.js
index e91bbe0d5..0d183554c 100644
--- a/src/www/javascript/opnsense_legacy.js
+++ b/src/www/javascript/opnsense_legacy.js
@@ -97,7 +97,7 @@ function hook_stacked_form_tables(match)
}
}
if (children.length == 1) {
- // simple seperator line, colspan = 2
+ // simple separator line, colspan = 2
$(this).before($(this).clone().removeAttr("id").attr('colspan', 1).addClass('hidden-sm hidden-md hidden-lg'));
$(this).addClass('hidden-xs');
} else if (children.length == 2) {
diff --git a/src/www/system_advanced_network.php b/src/www/system_advanced_network.php
index 0678f77ab..464a8b084 100644
--- a/src/www/system_advanced_network.php
+++ b/src/www/system_advanced_network.php
@@ -124,7 +124,7 @@ function is_duid($duid)
$valid_duid = true;
}
- /* max DUID length is 128, but with the seperators it could be up to 254 */
+ /* max DUID length is 128, but with the separators it could be up to 254 */
if ($duid_length < 6 || $duid_length > 254) {
$valid_duid = false;
}
diff --git a/src/www/vpn_ipsec_phase2.php b/src/www/vpn_ipsec_phase2.php
index c4af4c151..12e6991eb 100644
--- a/src/www/vpn_ipsec_phase2.php
+++ b/src/www/vpn_ipsec_phase2.php
@@ -747,7 +747,7 @@ endif; ?>
=gettext("Register additional Security Policy Database entries"); ?>
=gettext("Strongswan automatically creates SPD policies for the networks defined in this phase2. ".
- "If you need to allow other networks to use this ipsec tunnel, you can add them here as a comma seperated list.".
+ "If you need to allow other networks to use this ipsec tunnel, you can add them here as a comma-separated list.".
"When configured, you can use network address translation to push packets through this tunnel from these networks."); ?>
=gettext("e.g. 192.168.1.0/24, 192.168.2.0/24"); ?>
diff --git a/src/www/xmlrpc.php b/src/www/xmlrpc.php
index 57363a72d..aa8f4db08 100644
--- a/src/www/xmlrpc.php
+++ b/src/www/xmlrpc.php
@@ -32,7 +32,7 @@ require_once("xmlrpc.inc");
/**
* do a basic authentication, uses $_SERVER['HTTP_AUTHORIZATION'] to validate user.
- * @param $http_auth_header http_authorization header content
+ * @param string $http_auth_header content of the Authorization HTTP header
* @return bool
*/
function http_basic_auth($http_auth_header)