We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff9b8c4 commit cd716e5Copy full SHA for cd716e5
1 file changed
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Core/TestCaseRetry.inc
@@ -8,18 +8,14 @@ use Attribute;
8
* A class to represent retry settings for test cases. This is intended to be defined in methods as a method attribute.
9
*/
10
#[Attribute(Attribute::TARGET_METHOD)]
11
-class TestCaseRetry
12
-{
13
-
+class TestCaseRetry {
14
/**
15
* @param int $retries The number of retries to attempt
16
* @param int $delay The delay in seconds between retries
17
18
- public function __construct(public int $retries = 0, public int $delay = 0)
19
- {
+ public function __construct(public int $retries = 0, public int $delay = 0) {
20
# Ensure values are non-negative
21
$this->retries = max(0, $retries);
22
$this->delay = max(0, $delay);
23
}
24
25
-}
+}
0 commit comments