mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-11 18:02:59 +01:00
Added declare strict types to all files
This commit is contained in:
@@ -500,7 +500,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
|
||||
{
|
||||
$tmp = $this->getFirstName();
|
||||
//Don't add a space, if the name has only one part (it would look strange)
|
||||
if (!empty($this->getFirstName()) && !empty($this->getLastName())) {
|
||||
if ($this->getFirstName() !== null && $this->getFirstName() !== '' && ($this->getLastName() !== null && $this->getLastName() !== '')) {
|
||||
$tmp .= ' ';
|
||||
}
|
||||
$tmp .= $this->getLastName();
|
||||
|
||||
Reference in New Issue
Block a user