diff options
author | Thomas Lange <code@nerdmind.de> | 2021-10-24 15:29:14 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-10-24 15:34:09 +0200 |
commit | 0f36e9595538de41022d82ab33ff633d8a5798db (patch) | |
tree | cc33c5aef3fe108aebbc43bb56e9eda0f33854b8 /include/classes/BigPipe | |
parent | 370ea75a355765f37ef70fa228c1e10be21db59d (diff) | |
download | bigpipe-0f36e9595538de41022d82ab33ff633d8a5798db.tar.gz bigpipe-0f36e9595538de41022d82ab33ff633d8a5798db.tar.xz bigpipe-0f36e9595538de41022d82ab33ff633d8a5798db.zip |
Rename misleading parameter "callback" to "code"
Rename the second parameter for the "addPhaseDoneJS" method of the Item
class from the misleading name "callback" to "code" because that method
doesn't expect a real JS (or PHP) callback but rather simple JS code.
Diffstat (limited to 'include/classes/BigPipe')
-rw-r--r-- | include/classes/BigPipe/Item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/classes/BigPipe/Item.php b/include/classes/BigPipe/Item.php index 4b59347..6f0e5db 100644 --- a/include/classes/BigPipe/Item.php +++ b/include/classes/BigPipe/Item.php @@ -36,7 +36,7 @@ abstract class Item { #=============================================================================== # Attach a PhaseDoneJS callback #=============================================================================== - public function addPhaseDoneJS($phase, $callback) { - return $this->phaseDoneJS[$phase][] = $callback; + public function addPhaseDoneJS($phase, $code) { + return $this->phaseDoneJS[$phase][] = $code; } } |