|
@@ 286-294 (lines=9) @@
|
| 283 |
|
$otherBillingAddresses = BillingAddress::get()->filter( |
| 284 |
|
array('Phone' => $phoneArray) + $timeFilter |
| 285 |
|
)->exclude(array('OrderID' => $order->ID)); |
| 286 |
|
foreach ($otherBillingAddresses as $address) { |
| 287 |
|
$otherOrder = $address->Order(); |
| 288 |
|
if ($otherOrder && $otherOrder->ID != $order->ID) { |
| 289 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 290 |
|
$similarArray[$otherOrder->ID] = array(); |
| 291 |
|
} |
| 292 |
|
$similarArray[$otherOrder->ID]["Phone"] = $otherOrder; |
| 293 |
|
} |
| 294 |
|
} |
| 295 |
|
$otherShippingAddresses = ShippingAddress::get()->filter( |
| 296 |
|
array('ShippingPhone' => $phoneArray) + $timeFilter |
| 297 |
|
)->exclude(array('OrderID' => $order->ID)); |
|
@@ 298-306 (lines=9) @@
|
| 295 |
|
$otherShippingAddresses = ShippingAddress::get()->filter( |
| 296 |
|
array('ShippingPhone' => $phoneArray) + $timeFilter |
| 297 |
|
)->exclude(array('OrderID' => $order->ID)); |
| 298 |
|
foreach ($otherShippingAddresses as $address) { |
| 299 |
|
$otherOrder = $address->Order(); |
| 300 |
|
if ($otherOrder && $otherOrder->ID != $order->ID) { |
| 301 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 302 |
|
$similarArray[$otherOrder->ID] = array(); |
| 303 |
|
} |
| 304 |
|
$similarArray[$otherOrder->ID]["Phone"] = $otherOrder; |
| 305 |
|
} |
| 306 |
|
} |
| 307 |
|
//adding all emails to security checks |
| 308 |
|
$this->blacklistCheck($phoneArray, 'EcommerceSecurityPhone'); |
| 309 |
|
|
|
@@ 326-334 (lines=9) @@
|
| 323 |
|
$otherBillingAddresses = BillingAddress::get()->filter( |
| 324 |
|
array('Address' => $addressArray) + $timeFilter |
| 325 |
|
)->exclude(array('OrderID' => $order->ID)); |
| 326 |
|
foreach ($otherBillingAddresses as $address) { |
| 327 |
|
$otherOrder = $address->Order(); |
| 328 |
|
if ($otherOrder && $otherOrder->ID != $order->ID) { |
| 329 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 330 |
|
$similarArray[$otherOrder->ID] = array(); |
| 331 |
|
} |
| 332 |
|
$similarArray[$otherOrder->ID]["Address"] = $otherOrder; |
| 333 |
|
} |
| 334 |
|
} |
| 335 |
|
$otherShippingAddresses = ShippingAddress::get() |
| 336 |
|
->filter( |
| 337 |
|
array('ShippingAddress' => $addressArray) + $timeFilter |
|
@@ 340-348 (lines=9) @@
|
| 337 |
|
array('ShippingAddress' => $addressArray) + $timeFilter |
| 338 |
|
) |
| 339 |
|
->exclude(array('OrderID' => $order->ID)); |
| 340 |
|
foreach ($otherShippingAddresses as $address) { |
| 341 |
|
$otherOrder = $address->Order(); |
| 342 |
|
if ($otherOrder && $otherOrder->ID != $order->ID) { |
| 343 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 344 |
|
$similarArray[$otherOrder->ID] = array(); |
| 345 |
|
} |
| 346 |
|
$similarArray[$otherOrder->ID]["Address"] = $otherOrder; |
| 347 |
|
} |
| 348 |
|
} |
| 349 |
|
$this->blacklistCheck($addressArray, 'EcommerceSecurityAddress'); |
| 350 |
|
|
| 351 |
|
|