diff --git a/Scripts/development/lib/legacy_deps.py b/Scripts/development/lib/legacy_deps.py index 4ced7f63d..52b594299 100644 --- a/Scripts/development/lib/legacy_deps.py +++ b/Scripts/development/lib/legacy_deps.py @@ -44,7 +44,7 @@ class DependancyCrawler(object): self.root = root def get_dependency_by_src(self, src_filename): - """ dependencies are stored by a single name, this method maps a filename back to it's name + """ dependencies are stored by a single name, this method maps a filename back to its name usually the basename of the file. :param src_filename: :return: diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index 0f941d95e..be47f63bc 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -116,7 +116,7 @@ function setup_gateways_monitor($verbose = false, $gwname = null) * If the gateway is the same as the monitor we do not add a * route as this will break the routing table. * Add static routes for each gateway with their monitor IP - * not strictly necessary but is a added level of protection. + * not strictly necessary but is an added level of protection. */ if (is_ipaddrv4($gateway['gateway']) && $gateway['monitor'] != $gateway['gateway']) { log_error("Adding static route for monitor {$gateway['monitor']} via {$gateway['gateway']}"); @@ -165,7 +165,7 @@ function setup_gateways_monitor($verbose = false, $gwname = null) * If the gateway is the same as the monitor we do not add a * route as this will break the routing table. * Add static routes for each gateway with their monitor IP - * not strictly necessary but is a added level of protection. + * not strictly necessary but is an added level of protection. */ if (is_ipaddrv6($gateway['gateway']) && $gateway['monitor'] != $gateway['gateway']) { log_error("Adding static route for monitor {$gateway['monitor']} via {$gateway['gateway']}"); diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 8d63b533e..6b5faf029 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -606,7 +606,7 @@ function interface_lagg_configure(&$lagg) $laggif = legacy_interface_create('lagg'); } - // determine mtu value to use, either the provided one for the lagg or smallest of it's children + // determine mtu value to use, either the provided one for the lagg or smallest of its children $mtu = null; if (!empty($lagg['mtu'])) { // mtu provided for lagg @@ -1009,7 +1009,7 @@ function interface_bring_down($interface = "wan", $ifacecfg = false) foreach ($config['virtualip']['vip'] as $vip) { if ($vip['interface'] == $interface && $vip['mode'] != 'carp') { /** - * only disable non carp aliases, net.inet.carp.ifdown_demotion_factor should do it's work + * only disable non carp aliases, net.inet.carp.ifdown_demotion_factor should do its work * when a carp interface goes down */ interface_vip_bring_down($vip); @@ -2483,7 +2483,7 @@ function interface_configure($verbose = false, $interface = 'wan', $reload = fal } } - // in case this interface has vlan's configured, make sure none of them has an mtu set higher than it's parent + // in case this interface has vlan's configured, make sure none of them has an mtu set higher than its parent if (!empty($config['vlans']['vlan'])) { $intf_stats = legacy_interface_stats(); foreach ($config['vlans']['vlan'] as $vlan) { diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc index 1cf8a4d2a..bc48107b6 100644 --- a/src/etc/inc/services.inc +++ b/src/etc/inc/services.inc @@ -1546,7 +1546,7 @@ function services_dhcrelay_configure($verbose = false) } if (!isset($destif)) { - /* Create a array from the existing route table */ + /* Create an array from the existing route table */ exec("/usr/bin/netstat -rnWf inet", $route_str); array_shift($route_str); array_shift($route_str); @@ -1671,7 +1671,7 @@ function services_dhcrelay6_configure($verbose = false) } if (!isset($destif)) { - /* Create a array from the existing route table */ + /* Create an array from the existing route table */ exec("/usr/bin/netstat -rnWf inet6", $route_str); array_shift($route_str); array_shift($route_str); diff --git a/src/etc/inc/xmlrpc.inc b/src/etc/inc/xmlrpc.inc index c34f817ff..c5b189ed5 100644 --- a/src/etc/inc/xmlrpc.inc +++ b/src/etc/inc/xmlrpc.inc @@ -38,7 +38,7 @@ class XMLRPCServer /** * load publishable function from inc/xmlrpc/*.inc - * every usable module should include a function to return it's own registrable functions, using + * every usable module should include a function to return its own registrable functions, using * the following patten: * xmlrpc_publishable_{filename without .inc} * diff --git a/src/etc/rc.d/configd b/src/etc/rc.d/configd index 28ae0c557..781c1fd02 100755 --- a/src/etc/rc.d/configd +++ b/src/etc/rc.d/configd @@ -39,7 +39,7 @@ configd_prestart() # configd_poststart() { - # give the daemon some time to initilize it's configuration + # give the daemon some time to initialize its configuration sleep 1 } diff --git a/src/opnsense/mvc/app/library/OPNsense/Auth/AuthenticationFactory.php b/src/opnsense/mvc/app/library/OPNsense/Auth/AuthenticationFactory.php index 16d7acba5..703e4486c 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Auth/AuthenticationFactory.php +++ b/src/opnsense/mvc/app/library/OPNsense/Auth/AuthenticationFactory.php @@ -84,7 +84,7 @@ class AuthenticationFactory } /** - * request list of configured servers, the factory needs to be aware of it's options and settings to + * request list of configured servers, the factory needs to be aware of its options and settings to * be able to instantiate useful connectors. * @return array list of configured servers */ diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php b/src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php index 3dc3ae311..b4adf6bf0 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php +++ b/src/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php @@ -262,7 +262,7 @@ abstract class BaseModel } /** - * Construct new model type, using it's own xml template + * Construct new model type, using its own xml template * @throws ModelException if the model xml is not found or invalid * @throws \ReflectionException */ diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/AutoNumberField.php b/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/AutoNumberField.php index 6802f4873..4eb1d150f 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/AutoNumberField.php +++ b/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/AutoNumberField.php @@ -32,7 +32,7 @@ use OPNsense\Base\Validators\MinMaxValidator; use OPNsense\Base\Validators\IntegerValidator; /** - * Class AutoNumberField auto numbering integer type field, using it's direct neighbors to determine the already used + * Class AutoNumberField auto numbering integer type field, using its direct neighbors to determine the already used * numbers. * @package OPNsense\Base\FieldTypes */ @@ -74,7 +74,7 @@ class AutoNumberField extends BaseField /** * applyDefault is the trigger for requesting a new sequence number, when a child field is created by - * ArrayField it always receives all of it's defaults after clone. + * ArrayField it always receives all of its defaults after clone. * (see ArrayField for how this works). * * In this case, the default is a new sequence based on the same field in this fields direct neighbors. diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php b/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php index 41de32ead..f4afd2b66 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php +++ b/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php @@ -595,7 +595,7 @@ abstract class BaseField /** - * Add this node and it's children to the supplied simplexml node pointer. + * Add this node and its children to the supplied simplexml node pointer. * @param \SimpleXMLElement $node target node */ public function addToXMLNode($node) diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuItem.php b/src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuItem.php index 3c338ea60..9f44b723f 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuItem.php +++ b/src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuItem.php @@ -382,7 +382,7 @@ class MenuItem } /** - * set url and all it's parents selected + * set url and all its parents selected * @param string $url target url */ public function toggleSelected($url) diff --git a/src/www/firewall_virtual_ip_edit.php b/src/www/firewall_virtual_ip_edit.php index 1984e8e92..16ff5ec9b 100644 --- a/src/www/firewall_virtual_ip_edit.php +++ b/src/www/firewall_virtual_ip_edit.php @@ -178,7 +178,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $vipent['noexpand'] = true; } - // virtual ip UI keeps track of it's changes in a separate file + // virtual ip UI keeps track of its changes in a separate file // (which is only use on apply in firewall_virtual_ip) // add or change this administration here. // Not the nicest thing to do, but we keep it for now. diff --git a/src/www/status_dhcp_leases.php b/src/www/status_dhcp_leases.php index 916167e39..50b1c3491 100644 --- a/src/www/status_dhcp_leases.php +++ b/src/www/status_dhcp_leases.php @@ -68,7 +68,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { /* We then split the leases file by } */ $splitpattern = "'BEGIN { RS=\"}\";} {for (i=1; i<=NF; i++) printf \"%s \", \$i; printf \"}\\n\";}'"; - /* stuff the leases file in a proper format into a array by line */ + /* stuff the leases file in a proper format into an array by line */ exec("/bin/cat {$leasesfile} | {$awk} {$cleanpattern} | {$awk} {$splitpattern}", $leases_content); $leases_count = count($leases_content); exec("/usr/sbin/arp -an", $rawdata); diff --git a/src/www/system_usermanager_import_ldap.php b/src/www/system_usermanager_import_ldap.php index 8404c7947..08469afe2 100644 --- a/src/www/system_usermanager_import_ldap.php +++ b/src/www/system_usermanager_import_ldap.php @@ -39,7 +39,7 @@ function add_local_user($username, $userdn, $userfullname, $useremail) // link local user to remote server by updating user_dn $user['user_dn'] = $userdn; // trash user password when linking to ldap, avoid accidental login - // using fall-back local password. User could still reset it's + // using fall-back local password. User could still reset its // local password, but only by choice. local_user_set_password($user); local_user_set($user); diff --git a/src/www/xmlrpc.php b/src/www/xmlrpc.php index aa8f4db08..ae4258f0e 100644 --- a/src/www/xmlrpc.php +++ b/src/www/xmlrpc.php @@ -56,9 +56,9 @@ function http_basic_auth($http_auth_header) /** * Simple XML-RPC server using IXR_Library */ -if (!isset($_SERVER['HTTP_AUTHORIZATION']) || // check for a auth header +if (!isset($_SERVER['HTTP_AUTHORIZATION']) || // check for an auth header !http_basic_auth($_SERVER['HTTP_AUTHORIZATION']) || // user authentication failure (basic auth) - $_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR'] // do not accept request from servers own address + $_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR'] // do not accept request from server's own address ) { // Authentication failure, bail out. $xml = <<