Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2c32b8b

Browse files
Better variable name for the $function callable.
1 parent 08f4eb2 commit 2c32b8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/MailtrapWait.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ public function __construct(Mailtrap $mailtrap, $timeout_in_second = null, $inte
3838
/**
3939
* Calls the function provided with the driver as an argument until the return value is not falsey.
4040
*
41-
* @param callable $func_or_ec
41+
* @param callable $function
4242
* @param string $message
4343
*
4444
* @throws \Exception
45-
* @return mixed The return value of $func_or_ec
45+
* @return mixed The return value of $function
4646
*/
47-
public function until($func_or_ec, $message = '')
47+
public function until($function, $message = '')
4848
{
4949
$end = microtime(true) + $this->timeout;
5050
$last_exception = null;
5151

5252
while ( $end > microtime( true ) ) {
5353
try {
54-
$ret_val = call_user_func( $func_or_ec, $this->mailtrap );
54+
$ret_val = call_user_func( $function, $this->mailtrap );
5555
if ( $ret_val ) {
5656
return $ret_val;
5757
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /