1616use Geocoder \Query \ReverseQuery ;
1717use Http \Client \Curl \Client as CurlAdapter ;
1818use Illuminate \Support \Collection ;
19+ use Illuminate \Support \Str ;
1920
2021/**
2122 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -30,7 +31,7 @@ public function testItReverseGeocodesCoordinates()
3031 ->reverse (38.897957 , -77.036560 )
3132 ->get ()
3233 ->filter (function (GoogleAddress $ address ) {
33- return str_contains ($ address ->getStreetName () ?? '' , 'Northwest ' );
34+ return Str:: contains ($ address ->getStreetName () ?? '' , 'Northwest ' );
3435 })
3536 ->first ();
3637
@@ -159,7 +160,7 @@ public function testGeocoder()
159160
160161 public function testCacheIsUsed ()
161162 {
162- $ cacheKey = sha1 (str_slug (strtolower (urlencode ('1600 Pennsylvania Ave NW, Washington, DC 20500, USA ' ))));
163+ $ cacheKey = sha1 (Str:: slug (strtolower (urlencode ('1600 Pennsylvania Ave NW, Washington, DC 20500, USA ' ))));
163164
164165 $ result = app ('geocoder ' )
165166 ->geocode ('1600 Pennsylvania Ave NW, Washington, DC 20500, USA ' )
@@ -270,7 +271,7 @@ public function testGetProvider()
270271
271272 public function testJapaneseCharacterGeocoding ()
272273 {
273- $ cacheKey = sha1 (str_slug (strtolower (urlencode ('108-0075 東京都港区港南2丁目16-3 ' ))));
274+ $ cacheKey = sha1 (Str:: slug (strtolower (urlencode ('108-0075 東京都港区港南2丁目16-3 ' ))));
274275
275276 app ('geocoder ' )
276277 ->geocode ('108-0075 東京都港区港南2丁目16-3 ' )
@@ -310,7 +311,7 @@ public function testItHandlesOnlyCityAndState()
310311
311312 public function testEmptyResultsAreNotCached ()
312313 {
313- $ cacheKey = md5 (str_slug (strtolower (urlencode ('_ ' ))));
314+ $ cacheKey = md5 (Str:: slug (strtolower (urlencode ('_ ' ))));
314315
315316 Geocoder::geocode ('_ ' )->get ();
316317
0 commit comments