Passed
Push — master ( 4b6b05...c60b86 )
by Andreas
17:35
created
lib/org/openpsa/contacts/duplicates/check.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             // if user's lastname is part of the email address, check to see if the difference is only in the domain part
126 126
             $email1 = preg_replace('/@.+/', '', $person1['email']);
127 127
             $email2 = preg_replace('/@.+/', '', $person2['email']);
128
-            if (   str_contains($email1, $person1['lastname'])
128
+            if (str_contains($email1, $person1['lastname'])
129 129
                 && $email1 == $email2) {
130 130
                 $ret['email_match'] = true;
131 131
                 $ret['p'] += 0.5;
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
     private function match(string $property, array $data1, array $data2) : bool
173 173
     {
174
-        if (   !empty($data1[$property])
174
+        if (!empty($data1[$property])
175 175
             && $data1[$property] == $data2[$property]) {
176 176
             return true;
177 177
         }
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
                 continue;
375 375
             }
376 376
 
377
-            if (   $obj1->get_parameter('org.openpsa.contacts.duplicates:not_duplicate', $obj2->guid)
377
+            if ($obj1->get_parameter('org.openpsa.contacts.duplicates:not_duplicate', $obj2->guid)
378 378
                 || $obj2->get_parameter('org.openpsa.contacts.duplicates:not_duplicate', $obj1->guid)) {
379 379
                 // Not-duplicate parameter found, returning zero probability
380 380
                 continue;
Please login to merge, or discard this patch.