Skip to content

Commit

Permalink
Merge pull request #173 from maxmind/greg/fix-lints
Browse files Browse the repository at this point in the history
Run new php-cs-fixer
  • Loading branch information
horgh authored Jul 29, 2024
2 parents 825f4af + 4d0f25d commit 0d82c28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/MaxMind/Db/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function __construct(string $database)
{
if (\func_num_args() !== 1) {
throw new \ArgumentCountError(
sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
\sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
);
}

Expand Down Expand Up @@ -123,7 +123,7 @@ public function get(string $ipAddress)
{
if (\func_num_args() !== 1) {
throw new \ArgumentCountError(
sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
\sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
);
}
[$record] = $this->getWithPrefixLen($ipAddress);
Expand All @@ -149,7 +149,7 @@ public function getWithPrefixLen(string $ipAddress): array
{
if (\func_num_args() !== 1) {
throw new \ArgumentCountError(
sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
\sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
);
}

Expand Down Expand Up @@ -361,7 +361,7 @@ public function metadata(): Metadata
{
if (\func_num_args()) {
throw new \ArgumentCountError(
sprintf('%s() expects exactly 0 parameters, %d given', __METHOD__, \func_num_args())
\sprintf('%s() expects exactly 0 parameters, %d given', __METHOD__, \func_num_args())
);
}

Expand All @@ -386,7 +386,7 @@ public function close(): void
{
if (\func_num_args()) {
throw new \ArgumentCountError(
sprintf('%s() expects exactly 0 parameters, %d given', __METHOD__, \func_num_args())
\sprintf('%s() expects exactly 0 parameters, %d given', __METHOD__, \func_num_args())
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/MaxMind/Db/Reader/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function __construct(array $metadata)
{
if (\func_num_args() !== 1) {
throw new \ArgumentCountError(
sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
\sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
);
}

Expand Down

0 comments on commit 0d82c28

Please sign in to comment.