From 2a2e0fa54c593058d0ea770d61d67bca7f0a07ff Mon Sep 17 00:00:00 2001 From: Giorgio Scalvini Date: Thu, 30 Nov 2023 08:34:49 +0100 Subject: [PATCH] Added requirements to Composer --- GoogleGeocodeService.php | 2 +- composer.json | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/GoogleGeocodeService.php b/GoogleGeocodeService.php index d4cec4b..63a9ddf 100644 --- a/GoogleGeocodeService.php +++ b/GoogleGeocodeService.php @@ -114,7 +114,7 @@ public function calculateDistances(Point $from, $to, $maxDistance = null, $sortB } if ($sortByDistance) { - usort($routes, function(Route $a, Route $b) { + usort($routes, function (Route $a, Route $b) { return $a->compareTo($b); }); } diff --git a/composer.json b/composer.json index f343e86..2371fd7 100755 --- a/composer.json +++ b/composer.json @@ -3,16 +3,23 @@ "type": "library", "description": "GiBiLogic Elements - Geocoding", "keywords": [], - "homepage": "http://www.gibilogic.com", + "homepage": "https://gibilogic.com", "license": "MIT", "authors": [ { "name": "GiBilogic Srl", - "homepage": "http://www.gibilogic.com", + "homepage": "https://gibilogic.com", "email": "info@gibilogic.com" } ], - "require": {}, + "require": { + "php": ">=5.5", + "ext-curl": "*", + "ext-json": "*" + }, + "require-dev": { + "phpunit/phpunit": "^4.8 || ^5.0" + }, "autoload": { "psr-4": { "Gibilogic\\Elements\\Geocoding\\": "" } }