Зачем-то инкапсуляция...
This commit is contained in:
@@ -15,9 +15,9 @@ class Nick extends User
|
||||
* Отображение иконки склонности.
|
||||
* @return string
|
||||
*/
|
||||
private function getAlign():?string
|
||||
private function getAlignToNickname():?string
|
||||
{
|
||||
if (isset($this->align)) {
|
||||
if ($this->align) {
|
||||
return sprintf('<img src="i/align_%s.gif">', $this->align);
|
||||
} else {
|
||||
return null;
|
||||
@@ -28,9 +28,9 @@ class Nick extends User
|
||||
* Отображение иконки клана.
|
||||
* @return string
|
||||
*/
|
||||
private function getClan():?string
|
||||
private function getClanToNickname():?string
|
||||
{
|
||||
if (isset($this->clan)) {
|
||||
if ($this->clan) {
|
||||
return sprintf('<img src="i/clan/%s.png">', $this->clan);
|
||||
} else {
|
||||
return null;
|
||||
@@ -60,7 +60,7 @@ class Nick extends User
|
||||
if ($showInvisibility && $this->getInvisibilityStatus()) {
|
||||
return INVIS;
|
||||
}
|
||||
return $this->getAlign().$this->getClan().sprintf('<b>%s</b> [%s] <a href="inf.php?%s" target="_blank"><img src="i/inf.gif" style="width:12px;height:11px"></a>', $this->login, $this->level, $this->login);
|
||||
return $this->getAlignToNickname().$this->getClanToNickname().sprintf('<b>%s</b> [%s] <a href="inf.php?%s" target="_blank"><img src="i/inf.gif" style="width:12px;height:11px"></a>', $this->login, $this->level, $this->login);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user