Skip to content

Commit 3ec5291

Browse files
style: run prettier on changed files
1 parent ec5aa7b commit 3ec5291

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Fields/FloatField.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ class FloatField extends RESTAPI\Core\Field {
144144

145145
# Otherwise, the internal value cannot be represented by this Field. Throw an error.
146146
throw new RESTAPI\Responses\ServerError(
147-
message: "Cannot parse FloatField '$this->name' from internal because its internal value is not ".
148-
"a numeric value. Consider changing this field to a StringField.",
147+
message: "Cannot parse FloatField '$this->name' from internal because its internal value is not " .
148+
'a numeric value. Consider changing this field to a StringField.',
149149
response_id: 'FLOAT_FIELD_WITH_NON_FLOAT_INTERNAL_VALUE',
150150
);
151151
}

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/SystemStatus.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ class SystemStatus extends Model {
234234

235235
# The system language may affect the load average's delimiter (missing a comma in some languages)
236236
# ensure values are only ever separated by a single space (no commas). #716
237-
if (str_contains($load_avg, ", ")) {
237+
if (str_contains($load_avg, ', ')) {
238238
$load_avg = str_replace(', ', ' ', $load_avg);
239239
}
240240

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Tests/APIModelsSystemStatusTestCase.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,25 @@ class APIModelsSystemStatusTestCase extends TestCase {
5353
*/
5454
public function test_language_does_not_change_cpu_load_avg(): void {
5555
# Change the language to German
56-
Model::set_config("system/language", "de_DE");
56+
Model::set_config('system/language', 'de_DE');
5757
set_language();
5858

5959
# Ensure we can read the SystemStatus cpu_load_average without an error
6060
$this->assert_does_not_throw(
6161
callable: function () {
6262
$system_status = new SystemStatus();
6363
$this->assert_equals(count($system_status->cpu_load_avg->value), 3);
64-
}
64+
},
6565
);
6666

6767
# Reset the language to English and check again
68-
Model::set_config("system/language", "en_US");
68+
Model::set_config('system/language', 'en_US');
6969
set_language();
7070
$this->assert_does_not_throw(
7171
callable: function () {
7272
$system_status = new SystemStatus();
7373
$this->assert_equals(count($system_status->cpu_load_avg->value), 3);
74-
}
74+
},
7575
);
7676
}
7777
}

0 commit comments

Comments
 (0)