Passed
Push — master ( 451fb6...e51e88 )
by Andreas
28:25
created
lib/org/openpsa/contacts/duplicates/check.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,8 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/duplicates/check/person.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.