@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | private function load_by_properties(array $properties) |
| 66 | 66 | { |
| 67 | - if ( !array_key_exists('authtype', $properties) |
|
| 67 | + if (!array_key_exists('authtype', $properties) |
|
| 68 | 68 | || !array_key_exists('login', $properties)) { |
| 69 | 69 | throw exception::invalid_property_value(); |
| 70 | 70 | } |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | public function &get_person() : person |
| 109 | 109 | { |
| 110 | - if ( $this->person_object === null |
|
| 110 | + if ($this->person_object === null |
|
| 111 | 111 | && $this->person !== null) { |
| 112 | 112 | $this->person_object = connection::get_em()->getRepository(connection::get_fqcn('midgard_person'))->findOneBy(['guid' => $this->person]); |
| 113 | 113 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | public function create() : bool |
| 118 | 118 | { |
| 119 | - if ( empty($this->authtype) |
|
| 119 | + if (empty($this->authtype) |
|
| 120 | 120 | || !empty($this->id)) { |
| 121 | 121 | exception::invalid_property_value(); |
| 122 | 122 | return false; |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | |
| 181 | 181 | protected function is_unique() : bool |
| 182 | 182 | { |
| 183 | - if ( empty($this->login) |
|
| 183 | + if (empty($this->login) |
|
| 184 | 184 | || empty($this->authtype)) { |
| 185 | 185 | return true; |
| 186 | 186 | } |