aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-10-24 15:37:20 +0200
committerThomas Lange <code@nerdmind.de>2021-10-24 15:39:45 +0200
commit97c21fa5d86c1d58f291e7b2e17c830694ef2221 (patch)
tree1299bd0721517df3ba88077429f3bb60b292bffa
parent0f36e9595538de41022d82ab33ff633d8a5798db (diff)
downloadbigpipe-97c21fa5d86c1d58f291e7b2e17c830694ef2221.tar.gz
bigpipe-97c21fa5d86c1d58f291e7b2e17c830694ef2221.tar.xz
bigpipe-97c21fa5d86c1d58f291e7b2e17c830694ef2221.zip
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.
-rw-r--r--include/classes/BigPipe/Pagelet.php12
1 files changed, 6 insertions, 6 deletions
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 .= "</{$this->tagname}>";
+ $pageletHTML .= "</{$this->tagName}>";
return $pageletHTML;
}