Skip to content

Commit bead7ba

Browse files
authored
Add PHP Coding Standards Fixer in CI (#1196)
* Update composer.json * Update .gitignore * Update php.yml * Apply PHPCSFixer fixes * Switch to php-cs-fixer/shim * Create .php-cs-fixer.dist.php
1 parent 3d24f04 commit bead7ba

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

MaxMindBinary.php

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
use Geocoder\Exception\UnsupportedOperation;
1919
use Geocoder\Model\Address;
2020
use Geocoder\Model\AddressCollection;
21-
use Geocoder\Query\GeocodeQuery;
22-
use Geocoder\Query\ReverseQuery;
2321
use Geocoder\Provider\AbstractProvider;
2422
use Geocoder\Provider\Provider;
23+
use Geocoder\Query\GeocodeQuery;
24+
use Geocoder\Query\ReverseQuery;
2525

2626
final class MaxMindBinary extends AbstractProvider implements Provider
2727
{
@@ -36,9 +36,6 @@ final class MaxMindBinary extends AbstractProvider implements Provider
3636
private $openFlag;
3737

3838
/**
39-
* @param string $datFile
40-
* @param int|null $openFlag
41-
*
4239
* @throws FunctionNotFound if maxmind's lib not installed
4340
* @throws InvalidArgument if dat file is not correct (optional)
4441
*/
@@ -64,9 +61,6 @@ public function __construct(string $datFile, int $openFlag = null)
6461
$this->openFlag = null === $openFlag ? GEOIP_STANDARD : $openFlag;
6562
}
6663

67-
/**
68-
* {@inheritdoc}
69-
*/
7064
public function geocodeQuery(GeocodeQuery $query): Collection
7165
{
7266
$address = $query->getText();
@@ -108,17 +102,11 @@ public function geocodeQuery(GeocodeQuery $query): Collection
108102
]);
109103
}
110104

111-
/**
112-
* {@inheritdoc}
113-
*/
114105
public function reverseQuery(ReverseQuery $query): Collection
115106
{
116107
throw new UnsupportedOperation('The MaxMindBinary is not able to do reverse geocoding.');
117108
}
118109

119-
/**
120-
* {@inheritdoc}
121-
*/
122110
public function getName(): string
123111
{
124112
return 'maxmind_binary';

Tests/MaxMindBinaryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
use Geocoder\Collection;
1616
use Geocoder\IntegrationTest\BaseTestCase;
1717
use Geocoder\Location;
18+
use Geocoder\Provider\MaxMindBinary\MaxMindBinary;
1819
use Geocoder\Query\GeocodeQuery;
1920
use Geocoder\Query\ReverseQuery;
20-
use Geocoder\Provider\MaxMindBinary\MaxMindBinary;
2121

2222
class MaxMindBinaryTest extends BaseTestCase
2323
{

0 commit comments

Comments
 (0)