Skip to content

Commit 47a1d34

Browse files
authored
Merge pull request #191 from maxmind/greg/eng-1368-php-repo-lints-are-fixed
Run new version of php-cs-fixer
2 parents 0ce1877 + 88003ab commit 47a1d34

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

src/MinFraud/Model/Insights.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ public function jsonSerialize(): array
155155
$js['credit_card'] = $creditCard;
156156
}
157157

158-
$device =
159-
$this->device->jsonSerialize();
158+
$device
159+
= $this->device->jsonSerialize();
160160
if (!empty($device)) {
161161
$js['device'] = $device;
162162
}

src/MinFraud/ReportTransaction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ public function report(
177177
&& ($transactionId === null || $transactionId === '')
178178
) {
179179
throw new InvalidInputException(
180-
'The user must pass at least one of the following: ' .
181-
'ipAddress, minfraudId, maxmindId, transactionId.'
180+
'The user must pass at least one of the following: '
181+
. 'ipAddress, minfraudId, maxmindId, transactionId.'
182182
);
183183
}
184184

tests/MaxMind/Test/MinFraud/ServiceClientTester.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ protected function createRequest(
6262

6363
// On macOS, when the SSL version is "SecureTransport", the system's
6464
// keychain will be used.
65-
$caBundle = $curlVersion['ssl_version'] === 'SecureTransport' ?
66-
null : CaBundle::getSystemCaRootBundlePath();
65+
$caBundle = $curlVersion['ssl_version'] === 'SecureTransport'
66+
? null : CaBundle::getSystemCaRootBundlePath();
6767
}
6868

6969
$curlVersion = curl_version();

tests/MaxMind/Test/MinFraudTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,18 @@ public function testUserAgentWithoutSessionId(string $class, string $service): v
391391
)->withDevice(['user_agent' => 'test'])->{$service}();
392392
}
393393

394+
/**
395+
* @return array<list<string>>
396+
*/
397+
public static function services(): array
398+
{
399+
return [
400+
['\MaxMind\MinFraud\Model\Factors', 'factors'],
401+
['\MaxMind\MinFraud\Model\Insights', 'insights'],
402+
['\MaxMind\MinFraud\Model\Score', 'score'],
403+
];
404+
}
405+
394406
/**
395407
* @dataProvider withMethods
396408
*/
@@ -1280,18 +1292,6 @@ public function testBadShoppingCartItemWithDoubleArray(): void
12801292
)->withShoppingCartItem([['price' => 1]]);
12811293
}
12821294

1283-
/**
1284-
* @return array<list<string>>
1285-
*/
1286-
public static function services(): array
1287-
{
1288-
return [
1289-
['\MaxMind\MinFraud\Model\Factors', 'factors'],
1290-
['\MaxMind\MinFraud\Model\Insights', 'insights'],
1291-
['\MaxMind\MinFraud\Model\Score', 'score'],
1292-
];
1293-
}
1294-
12951295
/**
12961296
* @dataProvider badCustomInputs
12971297
*

0 commit comments

Comments
 (0)