@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | private function updateAccount($properties) |
| 156 | 156 | { |
| 157 | - if( is_array($properties) ) { |
|
| 157 | + if (is_array($properties)) { |
|
| 158 | 158 | $properties = (object) $properties; |
| 159 | 159 | } |
| 160 | 160 | |
@@ -207,16 +207,16 @@ discard block |
||
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | foreach ($properties->update as $u => $update) { |
| 210 | - if( !in_array($u, $allowedFileds) ) { |
|
| 210 | + if (!in_array($u, $allowedFileds)) { |
|
| 211 | 211 | unset($properties->update[$u]); |
| 212 | - }else{ |
|
| 212 | + } else { |
|
| 213 | 213 | $set .= $u . ' = :' . $u . ','; |
| 214 | 214 | $binds[$u] = $update; |
| 215 | 215 | } |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | 218 | $set = rtrim($set, ','); |
| 219 | - $where = key($properties->where) . ' = ' . $properties->where[key($properties->where)]; |
|
| 219 | + $where = key($properties->where) . ' = ' . $properties->where[key($properties->where)]; |
|
| 220 | 220 | |
| 221 | 221 | return [ |
| 222 | 222 | 'set' => $set, |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | $options = $this->getOptions(); |
| 260 | 260 | $skipValidatation = false; |
| 261 | 261 | |
| 262 | - if( isset($options['validate']) && $options['validate'] == false ) { |
|
| 262 | + if (isset($options['validate']) && $options['validate'] == false) { |
|
| 263 | 263 | $skipValidatation = true; |
| 264 | 264 | } |
| 265 | 265 | |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | break; |
| 276 | 276 | |
| 277 | 277 | case 'mail': |
| 278 | - if( !filter_var($property, FILTER_VALIDATE_EMAIL) && !$skipValidatation) { |
|
| 278 | + if (!filter_var($property, FILTER_VALIDATE_EMAIL) && !$skipValidatation) { |
|
| 279 | 279 | return false; |
| 280 | 280 | } |
| 281 | 281 | $this->mail = $property; |