@@ -127,29 +127,29 @@ public static function defer(callable $callback, $data = null)
127
127
/**
128
128
* Delay the execution of a callback. The time delay is approximate and accuracy is not guaranteed.
129
129
*
130
- * @param callable(string $watcherId, mixed $data) $callback The callback to delay.
131
130
* @param int $time The amount of time, in milliseconds, to delay the execution for.
131
+ * @param callable(string $watcherId, mixed $data) $callback The callback to delay.
132
132
* @param mixed $data Arbitrary data given to the callback function as the $data parameter.
133
133
*
134
134
* @return string An identifier that can be used to cancel, enable or disable the watcher.
135
135
*/
136
- public static function delay (callable $ callback , $ time , $ data = null )
136
+ public static function delay ($ time , callable $ callback , $ data = null )
137
137
{
138
- return self ::get ()->delay ($ callback , $ time , $ data );
138
+ return self ::get ()->delay ($ time , $ callback , $ data );
139
139
}
140
140
141
141
/**
142
142
* Repeatedly execute a callback. The interval between executions is approximate and accuracy is not guaranteed.
143
143
*
144
- * @param callable(string $watcherId, mixed $data) $callback The callback to repeat.
145
144
* @param int $interval The time interval, in milliseconds, to wait between executions.
145
+ * @param callable(string $watcherId, mixed $data) $callback The callback to repeat.
146
146
* @param mixed $data Arbitrary data given to the callback function as the $data parameter.
147
147
*
148
148
* @return string An identifier that can be used to cancel, enable or disable the watcher.
149
149
*/
150
- public static function repeat (callable $ callback , $ interval , $ data = null )
150
+ public static function repeat ($ interval , callable $ callback , $ data = null )
151
151
{
152
- return self ::get ()->repeat ($ callback , $ interval , $ data );
152
+ return self ::get ()->repeat ($ interval , $ callback , $ data );
153
153
}
154
154
155
155
/**
0 commit comments