diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 5fd565299..0db2324af 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -3925,7 +3925,6 @@ function interfaces_neighbors_configure($device = null, $ifconfig_details = null } } } - } function get_interfaces_info($include_unlinked = false) diff --git a/src/opnsense/mvc/app/library/OPNsense/Core/FileObject.php b/src/opnsense/mvc/app/library/OPNsense/Core/FileObject.php index 27905af03..f2303add2 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Core/FileObject.php +++ b/src/opnsense/mvc/app/library/OPNsense/Core/FileObject.php @@ -28,7 +28,6 @@ namespace OPNsense\Core; - class FileObject { private $fhandle = null; @@ -42,7 +41,7 @@ class FileObject */ public function __construct($filename, $mode, $permissions = null, $operation = null) { - $this->fhandle = fopen($filename, $mode . 'e'); /* always add close-on-exec flag to prevent fork inherit */ + $this->fhandle = fopen($filename, $mode . 'e'); /* always add close-on-exec flag to prevent fork inherit */ if ($permissions != null) { @chmod($filename, $permissions); @@ -144,4 +143,4 @@ class FileObject { return $this->write(json_encode($data)); } -} \ No newline at end of file +} diff --git a/src/opnsense/mvc/app/models/OPNsense/Interfaces/FieldTypes/NeighborField.php b/src/opnsense/mvc/app/models/OPNsense/Interfaces/FieldTypes/NeighborField.php index ab93fb176..7f340457a 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Interfaces/FieldTypes/NeighborField.php +++ b/src/opnsense/mvc/app/models/OPNsense/Interfaces/FieldTypes/NeighborField.php @@ -35,7 +35,6 @@ use ReflectionException; use OPNsense\Base\FieldTypes\ArrayField; use OPNsense\Base\FieldTypes\TextField; - class NeighborField extends ArrayField { protected static $internalStaticChildren = []; @@ -71,7 +70,10 @@ class NeighborField extends ArrayField } } catch (\Error | \Exception | ReflectionException $e) { syslog(LOG_ERR, sprintf( - "Invalid neightbor object %s in %s (%s)", $classname, realpath($filename), $e->getMessage() + "Invalid neightbor object %s in %s (%s)", + $classname, + realpath($filename), + $e->getMessage() )); } } diff --git a/src/opnsense/mvc/app/models/OPNsense/Interfaces/Neighbor/dhcpd.php b/src/opnsense/mvc/app/models/OPNsense/Interfaces/Neighbor/dhcpd.php index fd4aba1d5..7282be236 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Interfaces/Neighbor/dhcpd.php +++ b/src/opnsense/mvc/app/models/OPNsense/Interfaces/Neighbor/dhcpd.php @@ -32,7 +32,6 @@ namespace OPNsense\Interfaces\Neighbor; use OPNsense\Core\Config; - class dhcpd { public function collect() @@ -44,7 +43,7 @@ class dhcpd foreach ($config->dhcpd->children() as $intf => $node) { foreach ($node->children() as $key => $data) { if ($key == 'staticmap') { - if (!empty($data->arp_table_static_entry) || !empty($node->staticarp) ) { + if (!empty($data->arp_table_static_entry) || !empty($node->staticarp)) { $result[] = [ 'etheraddr' => (string)$data->mac, 'ipaddress' => (string)$data->ipaddr, @@ -58,4 +57,4 @@ class dhcpd } return $result; } -} \ No newline at end of file +}