| @@ 156-164 (lines=9) @@ | ||
| 153 | * |
|
| 154 | * @return bool |
|
| 155 | */ |
|
| 156 | private function hasAddress($elementText, $customerName, $street, $postcode, $city, $countryName) |
|
| 157 | { |
|
| 158 | return |
|
| 159 | (stripos($elementText, $customerName) !== false) && |
|
| 160 | (stripos($elementText, $street) !== false) && |
|
| 161 | (stripos($elementText, $city) !== false) && |
|
| 162 | (stripos($elementText, $countryName.' '.$postcode) !== false) |
|
| 163 | ; |
|
| 164 | } |
|
| 165 | } |
|
| 166 | ||
| @@ 393-401 (lines=9) @@ | ||
| 390 | * |
|
| 391 | * @return bool |
|
| 392 | */ |
|
| 393 | private function hasAddress($elementText, $customerName, $street, $postcode, $city, $countryName) |
|
| 394 | { |
|
| 395 | return |
|
| 396 | (stripos($elementText, $customerName) !== false) && |
|
| 397 | (stripos($elementText, $street) !== false) && |
|
| 398 | (stripos($elementText, $city) !== false) && |
|
| 399 | (stripos($elementText, $countryName.' '.$postcode) !== false) |
|
| 400 | ; |
|
| 401 | } |
|
| 402 | ||
| 403 | /** |
|
| 404 | * @param string $itemName |
|