| @@ -195,7 +195,7 @@ | ||
| 195 | 195 | /** | 
| 196 | 196 | * Get a property from the aliased object by the model's key. | 
| 197 | 197 | * | 
| 198 | - * @param $key | |
| 198 | + * @param string $key | |
| 199 | 199 | * | 
| 200 | 200 | * @return mixed|null | 
| 201 | 201 | */ | 
| @@ -180,7 +180,7 @@ discard block | ||
| 180 | 180 | */ | 
| 181 | 181 | protected function aliasSet($key, $value) | 
| 182 | 182 |      { | 
| 183 | -        if (! $expanded = $this->expandAlias($key)) { | |
| 183 | +        if (!$expanded = $this->expandAlias($key)) { | |
| 184 | 184 | return false; | 
| 185 | 185 | } | 
| 186 | 186 | |
| @@ -201,7 +201,7 @@ discard block | ||
| 201 | 201 | */ | 
| 202 | 202 | protected function aliasGet($key) | 
| 203 | 203 |      { | 
| 204 | -        if (! $expanded = $this->expandAlias($key)) { | |
| 204 | +        if (!$expanded = $this->expandAlias($key)) { | |
| 205 | 205 | return null; | 
| 206 | 206 | } | 
| 207 | 207 | |
| @@ -247,7 +247,7 @@ discard block | ||
| 247 | 247 | return $this->object; | 
| 248 | 248 | } | 
| 249 | 249 | |
| 250 | -        if (! is_null($aliased = $this->aliasGet($property))) { | |
| 250 | +        if (!is_null($aliased = $this->aliasGet($property))) { | |
| 251 | 251 | return $aliased; | 
| 252 | 252 | } | 
| 253 | 253 | |
| @@ -266,7 +266,7 @@ discard block | ||
| 266 | 266 | */ | 
| 267 | 267 | public function __isset($property) | 
| 268 | 268 |      { | 
| 269 | - return ! is_null($this->__get($property)); | |
| 269 | + return !is_null($this->__get($property)); | |
| 270 | 270 | } | 
| 271 | 271 | |
| 272 | 272 | /** | 
| @@ -17,7 +17,7 @@ | ||
| 17 | 17 |      { | 
| 18 | 18 | $aliased = $this->getAliasedObject(); | 
| 19 | 19 | |
| 20 | -        if (is_object($aliased) || ! empty(static::OBJECT_TYPE)) { | |
| 20 | +        if (is_object($aliased) || !empty(static::OBJECT_TYPE)) { | |
| 21 | 21 | /** | 
| 22 | 22 | * Automatically alias shorthand syntax for type_name | 
| 23 | 23 | * Eg: 'post_content' is aliased to 'content' | 
| @@ -28,7 +28,7 @@ discard block | ||
| 28 | 28 |      { | 
| 29 | 29 | $attributes = is_array($user) ? $user : []; | 
| 30 | 30 | |
| 31 | -        if (! $user instanceof WP_User) { | |
| 31 | +        if (!$user instanceof WP_User) { | |
| 32 | 32 | $user = new WP_User(); | 
| 33 | 33 | } | 
| 34 | 34 | |
| @@ -48,7 +48,7 @@ discard block | ||
| 48 | 48 | */ | 
| 49 | 49 | public static function fromID($id) | 
| 50 | 50 |      { | 
| 51 | -        if (! $user = get_user_by('id', $id)) { | |
| 51 | +        if (!$user = get_user_by('id', $id)) { | |
| 52 | 52 |              throw new UserNotFoundException("No user found with ID $id"); | 
| 53 | 53 | } | 
| 54 | 54 | |
| @@ -66,7 +66,7 @@ discard block | ||
| 66 | 66 | */ | 
| 67 | 67 | public static function fromUsername($username) | 
| 68 | 68 |      { | 
| 69 | -        if (! $user = get_user_by('login', $username)) { | |
| 69 | +        if (!$user = get_user_by('login', $username)) { | |
| 70 | 70 |              throw new UserNotFoundException("No user found with username: $username"); | 
| 71 | 71 | } | 
| 72 | 72 | |
| @@ -84,7 +84,7 @@ discard block | ||
| 84 | 84 | */ | 
| 85 | 85 | public static function fromEmail($email) | 
| 86 | 86 |      { | 
| 87 | -        if (! $user = get_user_by('email', $email)) { | |
| 87 | +        if (!$user = get_user_by('email', $email)) { | |
| 88 | 88 |              throw new UserNotFoundException("No user found with email address: $email"); | 
| 89 | 89 | } | 
| 90 | 90 | |
| @@ -102,7 +102,7 @@ discard block | ||
| 102 | 102 | */ | 
| 103 | 103 | public static function fromSlug($slug) | 
| 104 | 104 |      { | 
| 105 | -        if (! $user = get_user_by('slug', $slug)) { | |
| 105 | +        if (!$user = get_user_by('slug', $slug)) { | |
| 106 | 106 |              throw new UserNotFoundException("No user found with slug: $slug"); | 
| 107 | 107 | } | 
| 108 | 108 | |
| @@ -148,7 +148,7 @@ discard block | ||
| 148 | 148 | */ | 
| 149 | 149 | public function save() | 
| 150 | 150 |      { | 
| 151 | -        if (! $this->id) { | |
| 151 | +        if (!$this->id) { | |
| 152 | 152 | $result = wp_insert_user($this->object); | 
| 153 | 153 |          } else { | 
| 154 | 154 | $result = wp_update_user($this->object); | 
| @@ -231,7 +231,7 @@ discard block | ||
| 231 | 231 | ]; | 
| 232 | 232 | |
| 233 | 233 |          foreach ($properties as $property) { | 
| 234 | -            if (! property_exists($user->data, $property)) { | |
| 234 | +            if (!property_exists($user->data, $property)) { | |
| 235 | 235 | $user->data->$property = null; // exists but ! isset | 
| 236 | 236 | } | 
| 237 | 237 | } |