From bc7f73c3a093afe1f8fa044a9bcdc1f785b6e384 Mon Sep 17 00:00:00 2001 From: Jaroslav Drzik Date: Thu, 8 Feb 2024 20:43:56 +0100 Subject: [PATCH] IS test --- app/Http/Controllers/CountryCompareController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/CountryCompareController.php b/app/Http/Controllers/CountryCompareController.php index 7790cf1..850a756 100644 --- a/app/Http/Controllers/CountryCompareController.php +++ b/app/Http/Controllers/CountryCompareController.php @@ -257,7 +257,7 @@ class CountryCompareController extends Controller $c = ltrim($code, "0"); $json_values = array(); - try { + // try { $price = $xpath->query('//*/div[(@class="itemPriceBox")]//p[@class="itemNormalPrice revamp_price price"]/span/span')[0]->nodeValue; if (is_null($price) || empty($price)) { @@ -272,9 +272,9 @@ class CountryCompareController extends Controller $url_product = null; } - } catch (\Exception $e) { - return []; - } + //} catch (\Exception $e) { + // return []; + //} $price = floatval(trim(str_replace(' ', '', str_replace(',', '.', str_replace('.', '', str_replace(array('€'), '', $price)))))); $json_values = array(