Skip to content

Commit ecdfa41

Browse files
committed
no need to declare var before return
1 parent e1722e3 commit ecdfa41

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Admin/SettingsPage.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,16 +487,14 @@ public function sanitize_field( $option ) {
487487
'stack' => false,
488488
] );
489489

490-
$sanitized_input = [
490+
return [
491491
'ip' => sanitize_text_field( $input['ip'] ),
492492
'password' => sanitize_text_field( $input['password'] ),
493493
'register' => ! empty( $input['register'] ),
494494
'short' => ! empty( $input['short'] ),
495495
'ssl' => ! empty( $input['ssl'] ),
496496
'stack' => ! empty( $input['stack'] ),
497497
];
498-
499-
return $sanitized_input;
500498
}
501499

502500

0 commit comments

Comments
 (0)