From 71e45858434628b18cef3083e610eb18b22e207d Mon Sep 17 00:00:00 2001 From: amirghasempoor Date: Tue, 5 Mar 2024 10:32:25 +0330 Subject: [PATCH] remove redundant lines --- app/Services/NominatimService.php | 2 +- phpunit.xml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Services/NominatimService.php b/app/Services/NominatimService.php index fdc5c683..a14ebe9a 100644 --- a/app/Services/NominatimService.php +++ b/app/Services/NominatimService.php @@ -8,7 +8,7 @@ class NominatimService { public function get_way_id_from_nominatim($lat = null, $lng = null) { - if (App::environment('production')) + if (App::isProduction()) { $url = "https://testmap.141.ir/nominatim/reverse?format=jsonv2&lat=".$lat."&lon=".$lng."&zoom=16&addressdetails=16"; $arrContextOptions=array( diff --git a/phpunit.xml b/phpunit.xml index 27a075b8..ff19ac12 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -18,7 +18,6 @@ -