mvc: style sweep

This commit is contained in:
Franco Fichtner 2024-02-19 11:51:37 +01:00
parent 1ec272ad65
commit 637208acdb
2 changed files with 2 additions and 3 deletions

View File

@ -331,7 +331,7 @@ abstract class BaseModel
$config_array = new SimpleXMLElement('<opnsense/>');
if ($this->isLegacyMapper()) {
$xpath = "/opnsense".rtrim($model_xml->mount, '+');
$xpath = "/opnsense" . rtrim($model_xml->mount, '+');
$to_dom = dom_import_simplexml($config_array);
foreach ($internalConfigHandle->xpath($xpath) as $node) {
$to_dom->appendChild($to_dom->ownerDocument->importNode($node, true));
@ -562,7 +562,7 @@ abstract class BaseModel
* First we collect all new nodes in an array, then seek the ones we know and replace, remove access
* (when we end up with less nodes). Finally append new nodes not merged yet.
*/
$xpath = "/opnsense".rtrim($this->internal_mountpoint, '+');
$xpath = "/opnsense" . rtrim($this->internal_mountpoint, '+');
$toDom = dom_import_simplexml($target_node);
$newNodes = [];
foreach ($data_xml->children() as $node) {

View File

@ -104,7 +104,6 @@ class HostnameFieldTest extends Field_Framework_TestCase
$field->setValue($value);
$this->assertEmpty($this->validate($field));
}
}
public function testAsList()