Skip to content

Commit 0d82c28

Browse files
authored
Merge pull request #173 from maxmind/greg/fix-lints
Run new php-cs-fixer
2 parents 825f4af + 4d0f25d commit 0d82c28

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/MaxMind/Db/Reader.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function __construct(string $database)
7575
{
7676
if (\func_num_args() !== 1) {
7777
throw new \ArgumentCountError(
78-
sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
78+
\sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
7979
);
8080
}
8181

@@ -123,7 +123,7 @@ public function get(string $ipAddress)
123123
{
124124
if (\func_num_args() !== 1) {
125125
throw new \ArgumentCountError(
126-
sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
126+
\sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
127127
);
128128
}
129129
[$record] = $this->getWithPrefixLen($ipAddress);
@@ -149,7 +149,7 @@ public function getWithPrefixLen(string $ipAddress): array
149149
{
150150
if (\func_num_args() !== 1) {
151151
throw new \ArgumentCountError(
152-
sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
152+
\sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
153153
);
154154
}
155155

@@ -361,7 +361,7 @@ public function metadata(): Metadata
361361
{
362362
if (\func_num_args()) {
363363
throw new \ArgumentCountError(
364-
sprintf('%s() expects exactly 0 parameters, %d given', __METHOD__, \func_num_args())
364+
\sprintf('%s() expects exactly 0 parameters, %d given', __METHOD__, \func_num_args())
365365
);
366366
}
367367

@@ -386,7 +386,7 @@ public function close(): void
386386
{
387387
if (\func_num_args()) {
388388
throw new \ArgumentCountError(
389-
sprintf('%s() expects exactly 0 parameters, %d given', __METHOD__, \func_num_args())
389+
\sprintf('%s() expects exactly 0 parameters, %d given', __METHOD__, \func_num_args())
390390
);
391391
}
392392

src/MaxMind/Db/Reader/Metadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function __construct(array $metadata)
9999
{
100100
if (\func_num_args() !== 1) {
101101
throw new \ArgumentCountError(
102-
sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
102+
\sprintf('%s() expects exactly 1 parameter, %d given', __METHOD__, \func_num_args())
103103
);
104104
}
105105

0 commit comments

Comments
 (0)