From 0f36e9595538de41022d82ab33ff633d8a5798db Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sun, 24 Oct 2021 15:29:14 +0200 Subject: 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. --- include/classes/BigPipe/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/classes/BigPipe/Item.php') 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; } } -- cgit v1.2.3