Skip to content

Commit 5ae0bf8

Browse files
committed
cs fix
1 parent 8a93780 commit 5ae0bf8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

system/Helpers/text_helper.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,10 @@ function random_string(string $type = 'alnum', int $len = 8): string
587587
}
588588

589589
throw new InvalidArgumentException(
590-
sprintf('Invalid type "%s". Accepted types: alpha, alnum, numeric, nozero, or crypto.'),
591-
$type,
590+
sprintf(
591+
'Invalid type "%s". Accepted types: alpha, alnum, numeric, nozero, or crypto.',
592+
$type,
593+
),
592594
);
593595
}
594596
}

tests/system/Helpers/TextHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function testRandomStringWithUnsupportedType(): void
151151
{
152152
$this->expectException(InvalidArgumentException::class);
153153
$this->expectExceptionMessage(
154-
'Invalid type "basic". Accepted types: alpha, alnum, numeric, nozero, or crypto.',
154+
'Invalid type "basic". Accepted types: alpha, alnum, numeric, nozero, or crypto.',
155155
);
156156

157157
random_string('basic');

0 commit comments

Comments
 (0)