@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | protected function match(string $property, array $data1, array $data2) : bool |
115 | 115 | { |
116 | - if ( !empty($data1[$property]) |
|
116 | + if (!empty($data1[$property]) |
|
117 | 117 | && $data1[$property] == $data2[$property]) { |
118 | 118 | return true; |
119 | 119 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | continue; |
196 | 196 | } |
197 | 197 | |
198 | - if ( $obj1->get_parameter('org.openpsa.contacts.duplicates:not_duplicate', $obj2->guid) |
|
198 | + if ($obj1->get_parameter('org.openpsa.contacts.duplicates:not_duplicate', $obj2->guid) |
|
199 | 199 | || $obj2->get_parameter('org.openpsa.contacts.duplicates:not_duplicate', $obj1->guid)) { |
200 | 200 | // Not-duplicate parameter found, returning zero probability |
201 | 201 | continue; |
@@ -190,7 +190,8 @@ |
||
190 | 190 | try { |
191 | 191 | $obj1 = $this->load($arr1['guid']); |
192 | 192 | $obj2 = $this->load($arr2['guid']); |
193 | - } catch (midcom_error $e) { |
|
193 | + } |
|
194 | + catch (midcom_error $e) { |
|
194 | 195 | $e->log(); |
195 | 196 | continue; |
196 | 197 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | // if user's lastname is part of the email address, check to see if the difference is only in the domain part |
54 | 54 | $email1 = preg_replace('/@.+/', '', $person1['email']); |
55 | 55 | $email2 = preg_replace('/@.+/', '', $person2['email']); |
56 | - if ( str_contains($email1, $person1['lastname']) |
|
56 | + if (str_contains($email1, $person1['lastname']) |
|
57 | 57 | && $email1 == $email2) { |
58 | 58 | $ret['email_match'] = true; |
59 | 59 | $ret['p'] += 0.5; |