@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * |
| 48 | 48 | * @return string |
| 49 | 49 | */ |
| 50 | - public function getFirstname() { |
|
| 50 | + public function getFirstname(){ |
|
| 51 | 51 | return $this->firstname; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * |
| 58 | 58 | * @return $this |
| 59 | 59 | */ |
| 60 | - public function setFirstname($firstname) { |
|
| 60 | + public function setFirstname($firstname){ |
|
| 61 | 61 | $this->firstname = $firstname; |
| 62 | 62 | |
| 63 | 63 | return $this; |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | * |
| 68 | 68 | * @return string |
| 69 | 69 | */ |
| 70 | - public function getSurname() { |
|
| 70 | + public function getSurname(){ |
|
| 71 | 71 | return $this->surname; |
| 72 | 72 | } |
| 73 | 73 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * |
| 78 | 78 | * @return $this |
| 79 | 79 | */ |
| 80 | - public function setSurname($surname) { |
|
| 80 | + public function setSurname($surname){ |
|
| 81 | 81 | $this->surname = $surname; |
| 82 | 82 | |
| 83 | 83 | return $this; |
@@ -88,9 +88,9 @@ discard block |
||
| 88 | 88 | * |
| 89 | 89 | * @return string |
| 90 | 90 | */ |
| 91 | - public function getRealName() { |
|
| 92 | - if($this->firstname || $this->surname) { |
|
| 93 | - return trim($this->getFirstname() . ' ' . $this->getSurname()); |
|
| 91 | + public function getRealName(){ |
|
| 92 | + if($this->firstname || $this->surname){ |
|
| 93 | + return trim($this->getFirstname().' '.$this->getSurname()); |
|
| 94 | 94 | } |
| 95 | 95 | return null; |
| 96 | 96 | } |
@@ -99,18 +99,18 @@ discard block |
||
| 99 | 99 | * |
| 100 | 100 | * @return string - "Username" ("Firstname Surname") |
| 101 | 101 | */ |
| 102 | - public function getUsernameAndRealName() { |
|
| 103 | - return $this->getUsername() . ' (' . $this->getRealName() . ')'; |
|
| 102 | + public function getUsernameAndRealName(){ |
|
| 103 | + return $this->getUsername().' ('.$this->getRealName().')'; |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | 107 | * |
| 108 | 108 | * @return string "Surname, Firstname"|"Surname" |
| 109 | 109 | */ |
| 110 | - public function getReversedRealName() { |
|
| 111 | - if($this->getFirstname()) { |
|
| 112 | - return $this->getSurname() . ', ' . $this->getFirstname(); |
|
| 113 | - } else { |
|
| 110 | + public function getReversedRealName(){ |
|
| 111 | + if($this->getFirstname()){ |
|
| 112 | + return $this->getSurname().', '.$this->getFirstname(); |
|
| 113 | + } else{ |
|
| 114 | 114 | return $this->getSurname(); |
| 115 | 115 | } |
| 116 | 116 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * |
| 120 | 120 | * @return string "Firstname Surname"|"Username" |
| 121 | 121 | */ |
| 122 | - public function __toString() { |
|
| 122 | + public function __toString(){ |
|
| 123 | 123 | return $this->getRealName() != null ? $this->getRealName() : $this->getUsername(); |
| 124 | 124 | } |
| 125 | 125 | } |
| 126 | 126 | \ No newline at end of file |