Skip to content

Commit

Permalink
Run new php-cs-fixer against code
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Jan 22, 2024
1 parent 356989c commit 87f439a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions dev-bin/phar-test.php
@@ -1,5 +1,6 @@
#!/usr/bin/env php
<?php

require_once 'geoip2.phar';
use GeoIp2\Database\Reader;

Expand Down
2 changes: 1 addition & 1 deletion src/Database/Reader.php
Expand Up @@ -253,7 +253,7 @@ private function getRecord(string $class, string $type, string $ipAddress): arra
*
* @return Metadata object for the database
*/
public function metadata(): DbReader\Metadata
public function metadata(): Metadata
{
return $this->dbReader->metadata();
}
Expand Down
6 changes: 3 additions & 3 deletions src/Model/City.php
Expand Up @@ -26,21 +26,21 @@ class City extends Country
/**
* @var Location location data for the requested IP address
*/
public readonly \GeoIp2\Record\Location $location;
public readonly Location $location;

/**
* @var Subdivision An object representing the most specific subdivision
* returned. If the response did not contain any
* subdivisions, this method returns an empty
* \GeoIp2\Record\Subdivision object.
*/
public readonly \GeoIp2\Record\Subdivision $mostSpecificSubdivision;
public readonly Subdivision $mostSpecificSubdivision;

/**
* @var Postal postal data for the
* requested IP address
*/
public readonly \GeoIp2\Record\Postal $postal;
public readonly Postal $postal;

/**
* @var array<\GeoIp2\Record\Subdivision> An array of \GeoIp2\Record\Subdivision
Expand Down
8 changes: 4 additions & 4 deletions src/Model/Country.php
Expand Up @@ -20,7 +20,7 @@ class Country implements \JsonSerializable
/**
* @var Continent continent data for the requested IP address
*/
public readonly \GeoIp2\Record\Continent $continent;
public readonly Continent $continent;

/**
* @var CountryRecord Country data for the requested IP address. This
Expand All @@ -32,7 +32,7 @@ class Country implements \JsonSerializable
/**
* @var MaxMind data related to your MaxMind account
*/
public readonly \GeoIp2\Record\MaxMind $maxmind;
public readonly MaxMind $maxmind;

/**
* @var CountryRecord Registered country data for the requested IP address.
Expand All @@ -49,12 +49,12 @@ class Country implements \JsonSerializable
* when the represented country differs from the
* country.
*/
public readonly \GeoIp2\Record\RepresentedCountry $representedCountry;
public readonly RepresentedCountry $representedCountry;

/**
* @var Traits data for the traits of the requested IP address
*/
public readonly \GeoIp2\Record\Traits $traits;
public readonly Traits $traits;

/**
* @ignore
Expand Down

0 comments on commit 87f439a

Please sign in to comment.