@@ -19,9 +19,7 @@ class Reader
1919 * if the database is invalid or there is an error reading
2020 * from it
2121 */
22- public function __construct (string $ database )
23- {
24- }
22+ public function __construct (string $ database ) {}
2523
2624 /**
2725 * Retrieves the record for the IP address.
@@ -36,9 +34,7 @@ public function __construct(string $database)
3634 *
3735 * @throws \BadMethodCallException if this method is called on a closed database
3836 */
39- public function get (string $ ipAddress ): mixed
40- {
41- }
37+ public function get (string $ ipAddress ): mixed {}
4238
4339 /**
4440 * Retrieves the record for the IP address and its associated network prefix length.
@@ -54,37 +50,29 @@ public function get(string $ipAddress): mixed
5450 *
5551 * @throws \BadMethodCallException if this method is called on a closed database
5652 */
57- public function getWithPrefixLen (string $ ipAddress ): array
58- {
59- }
53+ public function getWithPrefixLen (string $ ipAddress ): array {}
6054
6155 /**
6256 * @return Metadata object for the database
6357 * @throws \BadMethodCallException if the database has been closed
6458 *
6559 * @throws \InvalidArgumentException if arguments are passed to the method
6660 */
67- public function metadata (): Metadata
68- {
69- }
61+ public function metadata (): Metadata {}
7062
7163 /**
7264 * Closes the MaxMind DB and returns resources to the system.
7365 *
7466 * @throws \Exception
7567 * if an I/O error occurs
7668 */
77- public function close (): void
78- {
79- }
69+ public function close (): void {}
8070}
8171
8272/**
8373 * This class should be thrown when unexpected data is found in the database.
8474 */
85- class InvalidDatabaseException extends \Exception
86- {
87- }
75+ class InvalidDatabaseException extends \Exception {}
8876
8977/**
9078 * This class provides the metadata for the MaxMind DB file.
@@ -176,4 +164,4 @@ class Metadata
176164 * @var int
177165 */
178166 public int $ searchTreeSize ;
179- }
167+ }
0 commit comments