Skip to content

Commit 6da6647

Browse files
committed
Renaming $self to unintuitive var name for consistency
1 parent 0c49e19 commit 6da6647

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LibEventLoop.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ protected function addTimerInternal($interval, $callback, $periodic = false)
173173
$timer->signature = spl_object_hash($timer);
174174
$timersGc = $this->timersGc;
175175

176-
$self = $this;
177-
$callback = function () use ($timer, $timersGc, $self) {
176+
$that = $this;
177+
$callback = function () use ($timer, $timersGc, $that) {
178178
foreach ($timersGc as $resource) {
179179
event_free($resource);
180180
}
@@ -185,7 +185,7 @@ protected function addTimerInternal($interval, $callback, $periodic = false)
185185
if ($timer->periodic === true) {
186186
event_add($timer->resource, $timer->interval);
187187
} else {
188-
$self->cancelTimer($timer->signature);
188+
$that->cancelTimer($timer->signature);
189189
}
190190
}
191191
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy