From 97c21fa5d86c1d58f291e7b2e17c830694ef2221 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sun, 24 Oct 2021 15:37:20 +0200 Subject: Rename "tagname" property and "setTagname" method Rename the "tagname" property and the "setTagname" method of the Pagelet class to the lowerCamelCase variant "tagName" because it are two words. --- include/classes/BigPipe/Pagelet.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/classes/BigPipe/Pagelet.php') diff --git a/include/classes/BigPipe/Pagelet.php b/include/classes/BigPipe/Pagelet.php index 45c64fb..0358df6 100644 --- a/include/classes/BigPipe/Pagelet.php +++ b/include/classes/BigPipe/Pagelet.php @@ -14,7 +14,7 @@ class Pagelet extends Item { private $priority = NULL; private $resources = []; private $dependencies = []; - private $tagname = 'div'; + private $tagName = 'div'; private $tagHTML = ''; #=============================================================================== @@ -109,10 +109,10 @@ class Pagelet extends Item { } #=============================================================================== - # Set custom placeholder tagname + # Set custom placeholder tag name #=============================================================================== - public function setTagname($tagname) { - return $this->tagname = $tagname; + public function setTagName($tagName) { + return $this->tagName = $tagName; } #=============================================================================== @@ -168,9 +168,9 @@ class Pagelet extends Item { # Magic method: __toString() #=============================================================================== public function __toString() { - $pageletHTML = "<{$this->tagname} id=\"{$this->getID()}\">"; + $pageletHTML = "<{$this->tagName} id=\"{$this->getID()}\">"; $pageletHTML .= !BigPipe::enabled() ? $this->getHTML() : $this->tagHTML; - $pageletHTML .= "tagname}>"; + $pageletHTML .= "tagName}>"; return $pageletHTML; } -- cgit v1.2.3