From 42ae90b66cc0cef45c0d72abc6f543ffe3c06c6e Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Sun, 8 Dec 2024 02:48:40 +0900 Subject: [PATCH] Refactor variable naming in thread safety test Renamed the variable $result to $res in test loop for clarity and consistency with the rest of the code. This change ensures uniformity in variable names and improves readability without altering the test's logic or output. The redundant PHP closing tag was also removed to align with PSR-2 coding standards. --- tests/008-rayaop-thread-safety.phpt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/008-rayaop-thread-safety.phpt b/tests/008-rayaop-thread-safety.phpt index c537c79..1fad979 100644 --- a/tests/008-rayaop-thread-safety.phpt +++ b/tests/008-rayaop-thread-safety.phpt @@ -31,12 +31,12 @@ class TestClass { method_intercept_init(); for ($i = 0; $i < 3; $i++) { - $result = method_intercept( + $res = method_intercept( TestClass::class, 'method', new SafetyTestInterceptor($i) ); - echo "" . PHP_EOL; + echo "" . PHP_EOL; } $test = new TestClass(); @@ -45,6 +45,7 @@ $paramsArray = [null, 'test', 'error', 'another test']; foreach ($paramsArray as $i => $param) { $paramString = isset($param) ? $param : ''; echo "" . PHP_EOL; + try { $result = $test->method($param); echo "" . PHP_EOL; @@ -54,7 +55,6 @@ foreach ($paramsArray as $i => $param) { } echo "" . PHP_EOL; -?> --EXPECT--