Fix PHP comments

This commit is contained in:
acognet
2022-01-17 09:18:36 +01:00
parent 7243da3576
commit 739001eca4
2 changed files with 6 additions and 4 deletions

View File

@@ -25,7 +25,8 @@ class InputWithLabel extends UIBlock
protected $oInput;
/** @var bool Label before input ? */
protected $bBeforeInput;
/**@var string $sDescription for tooltip
/**
* @var string $sDescription for tooltip
* @since 3.0.1
*/
protected $sDescription;
@@ -131,7 +132,7 @@ class InputWithLabel extends UIBlock
*/
public function HasDescription(): bool
{
return $this->sDescription != null;
return strlen($this->sDescription) > 0;
}
}

View File

@@ -18,8 +18,9 @@ trait tInputLabel
protected $bIsLabelBefore = true;
/** @var string|null Label to display with the input (null for no label) */
protected $sLabel = null;
/**@var string $sDescription for tooltip
* @since 3.0.1
/**
* @var string $sDescription for tooltip
* @since 3.0.1
*/
protected $sDescription;