@@ -235,12 +235,12 @@ class APIModelsPortForwardTestCase extends TestCase {
235235 */
236236 public function test_target_validation (): void {
237237 # Create an alias to test with
238- $ alias = new FirewallAlias (name: " testalias " , type:" host " );
238+ $ alias = new FirewallAlias (name: ' testalias ' , type: ' host ' );
239239 $ alias ->create ();
240240
241241 # Set values we expect to be allowed vs disallowed
242- $ allowed_values = [" 1.2.3.4 " , " wan:ip " , " testalias " ];
243- $ disallowed_values = [" example.com " , " wan " , " self " , " l2tp " , " 1.2.3.4/24 " ];
242+ $ allowed_values = [' 1.2.3.4 ' , ' wan:ip ' , ' testalias ' ];
243+ $ disallowed_values = [' example.com ' , ' wan ' , ' self ' , ' l2tp ' , ' 1.2.3.4/24 ' ];
244244
245245 # Check each allowed value and ensure it does not throw an exception during validation
246246 foreach ($ allowed_values as $ value ) {
@@ -265,7 +265,7 @@ class APIModelsPortForwardTestCase extends TestCase {
265265 # Check each disallowed value and ensure it throws an exception during validation
266266 foreach ($ disallowed_values as $ value ) {
267267 $ this ->assert_throws (
268- exceptions: [" ValidationError " ],
268+ exceptions: [' ValidationError ' ],
269269 callable: function () use ($ value ) {
270270 $ port_forward = new PortForward (
271271 data: [
@@ -279,7 +279,7 @@ class APIModelsPortForwardTestCase extends TestCase {
279279 ],
280280 );
281281 $ port_forward ->validate ();
282- }
282+ },
283283 );
284284 }
285285 }
0 commit comments