diff --git a/.travis.yml b/.travis.yml index bd155ae..ec6dae8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,24 +1,22 @@ language: php -## Run on container environment -sudo: false +git: + depth: 2 env: - COMPOSER_DISABLE_XDEBUG_WARN=1 php: - - 7.2 - 7.3 - 7.4 - -before_install: - - composer self-update + - 8.0 + - nightly install: - - composer install --prefer-dist + - composer install --prefer-dist --no-interaction --optimize-autoloader --no-progress script: - - vendor/bin/php-cs-fixer fix --dry-run --diff --config=.php_cs + - vendor/bin/php-cs-fixer fix --dry-run --diff - vendor/bin/phpunit --coverage-clover=coverage.clover after_script: diff --git a/README.md b/README.md index 6d212f9..381b2f7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Wrapper Nominatim API ================ [![Latest Stable Version](https://poser.pugx.org/maxh/php-nominatim/v/stable)](https://packagist.org/packages/maxh/php-nominatim) -[![Build Status](https://travis-ci.org/maxhelias/php-nominatim.svg?branch=master)](https://travis-ci.org/maxhelias/php-nominatim) +[![Build Status](https://travis-ci.com/maxhelias/php-nominatim.svg?branch=master)](https://travis-ci.com/maxhelias/php-nominatim) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/maxhelias/php-nominatim/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/maxhelias/php-nominatim/?branch=master) [![Total Downloads](https://poser.pugx.org/maxh/php-nominatim/downloads)](https://packagist.org/packages/maxh/php-nominatim) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/maxhelias/php-nominatim/blob/master/LICENSE) diff --git a/composer.json b/composer.json index 4bcc639..cbd25f2 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ } ], "require": { - "php": ">=7.2", + "php": ">=7.3", "ext-mbstring": "*", "guzzlehttp/guzzle": "@stable" }, diff --git a/examples/DetailsExample.php b/examples/DetailsExample.php index 4753008..83488d3 100644 --- a/examples/DetailsExample.php +++ b/examples/DetailsExample.php @@ -11,7 +11,6 @@ require '../vendor/autoload.php'; -use maxh\Nominatim\Consts; use maxh\Nominatim\Nominatim; //URL Server @@ -34,18 +33,6 @@ echo 'URL : '.$url.$details->getPath().'?'.$details->getQueryString()."\n"; var_dump($result); - - //Details by osm type and osm id - $details = $instance->newDetails() - ->osmId(Consts\OsmTypes::RELATIVE, 2555133) - ; - - $result = $instance->find($details); - - echo "Details by osm type and osm id\n"; - echo 'URL : '.$url.$details->getPath().'?'.$details->getQueryString()."\n"; - - var_dump($result); } catch (\maxh\Nominatim\Exceptions\InvalidParameterException $e) { // If you set invalid parameter in instance var_dump($e->getMessage());