Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Mar 25, 2024
1 parent 77e69f3 commit f46a92b
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tests/OpenSRSTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected function setUp(): void
$this->assertNotEmpty($key);
$this->assertNotEmpty($secret);

$this->domain = self::generateRandomString().'.net';
$this->domain = self::generateRandomString() . '.net';
$this->client = new OpenSRS(
$key,
$secret,
Expand Down Expand Up @@ -139,18 +139,18 @@ public function testTransfer(string $domain): void
private static function purchaseContact(string $suffix = ''): array
{
$contact = new Contact(
'Test'.$suffix,
'Tester'.$suffix,
'+1.8031234567'.$suffix,
'[email protected]'.$suffix,
'123 Main St'.$suffix,
'Suite 100'.$suffix,
''.$suffix,
'San Francisco'.$suffix,
'Test' . $suffix,
'Tester' . $suffix,
'+1.8031234567' . $suffix,
'[email protected]' . $suffix,
'123 Main St' . $suffix,
'Suite 100' . $suffix,
'' . $suffix,
'San Francisco' . $suffix,
'CA',
'US',
'94105',
'Test Inc'.$suffix,
'Test Inc' . $suffix,
);

return [
Expand All @@ -161,16 +161,16 @@ private static function purchaseContact(string $suffix = ''): array
];
}

private function generateRandomString(int $length = 10): string
{
$characters = 'abcdefghijklmnopqrstuvwxyz';
$charactersLength = strlen($characters);
$randomString = '';
private function generateRandomString(int $length = 10): string
{
$characters = 'abcdefghijklmnopqrstuvwxyz';
$charactersLength = strlen($characters);
$randomString = '';

for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[random_int(0, $charactersLength - 1)];
}
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[random_int(0, $charactersLength - 1)];
}

return $randomString;
}
return $randomString;
}
}

0 comments on commit f46a92b

Please sign in to comment.