@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | { |
| 89 | 89 | ksort($constraints); |
| 90 | 90 | foreach ($constraints as $key => $data) { |
| 91 | - if ( !array_key_exists('value', $data) |
|
| 91 | + if (!array_key_exists('value', $data) |
|
| 92 | 92 | || empty($data['field']) |
| 93 | 93 | || empty($data['op'])) { |
| 94 | 94 | debug_add("Constraint #{$key} is not correctly defined, skipping", MIDCOM_LOG_WARN); |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | { |
| 150 | 150 | $query = $this->request["term"]; |
| 151 | 151 | $wildcard_query = $query; |
| 152 | - if ( isset($this->request['auto_wildcards']) |
|
| 152 | + if (isset($this->request['auto_wildcards']) |
|
| 153 | 153 | && strpos($query, '%') === false) { |
| 154 | 154 | switch ($this->request['auto_wildcards']) { |
| 155 | 155 | case 'start': |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | } |
| 305 | 305 | break; |
| 306 | 306 | } |
| 307 | - } elseif ( $item_name == 'username' |
|
| 307 | + } elseif ($item_name == 'username' |
|
| 308 | 308 | && $object instanceof midcom_db_person) { |
| 309 | 309 | $account = new midcom_core_account($object); |
| 310 | 310 | return self::sanitize_label($account->get_username()); |