Skip to content

Commit 8e34317

Browse files
style: ran prettier on changed files
1 parent b49220c commit 8e34317

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/DHCPServer.inc‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class DHCPServer extends Model {
224224
allow_empty: true,
225225
help_text: 'Static mappings applied to this DHCP server.',
226226
);
227-
227+
228228
# Ensure all interfaces have DHCP server objects initialized
229229
$this->init_interfaces();
230230

@@ -237,14 +237,14 @@ class DHCPServer extends Model {
237237
private function init_interfaces(): void {
238238
# Variables
239239
$ifs_using_dhcpd = array_keys($this->get_config(path: $this->config_path, default: []));
240-
240+
241241
# Loop through each defined interface
242242
foreach (NetworkInterface::read_all()->model_objects as $if) {
243243
# Skip this interface if it is not a static interface or the subnet value is greater than or equal to 31
244-
if ($if->typev4->value !== "static" or $if->subnet->value >= 31) {
244+
if ($if->typev4->value !== 'static' or $if->subnet->value >= 31) {
245245
continue;
246246
}
247-
247+
248248
# Otherwise, make this interface eligible for a DHCP server
249249
if (!in_array($if->id, $ifs_using_dhcpd)) {
250250
$this->set_config(path: "$this->config_path/$if->id", value: []);

‎pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests/APIModelsHAProxySettingsTestCase.inc‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ class APIModelsHAProxySettingsTestCase extends TestCase {
107107
*/
108108
public function test_localstats_refreshtime(): void {
109109
$haproxy_settings = new HAProxySettings(
110-
enable: true,
111-
localstats_refreshtime: 20,
112-
localstatsport: "45454",
113-
async: false
110+
enable: true,
111+
localstats_refreshtime: 20,
112+
localstatsport: '45454',
113+
async: false,
114114
);
115115
$haproxy_settings->update(apply: true);
116116
$haproxy_cfg = new Command('cat /var/etc/haproxy/haproxy.cfg', trim_whitespace: true);
@@ -119,8 +119,8 @@ class APIModelsHAProxySettingsTestCase extends TestCase {
119119
$haproxy_settings = new HAProxySettings(
120120
enable: true,
121121
localstats_refreshtime: 10,
122-
localstatsport: "45454",
123-
async: false
122+
localstatsport: '45454',
123+
async: false,
124124
);
125125
$haproxy_settings->update(apply: true);
126126
$haproxy_cfg = new Command('cat /var/etc/haproxy/haproxy.cfg', trim_whitespace: true);

0 commit comments

Comments
 (0)