Skip to content

Commit 0632306

Browse files
committed
Addressed PR comments
1 parent 92854d4 commit 0632306

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Validator/Multiple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getDescription(): string
6666
{
6767
$description = '';
6868
foreach ($this->rules as $key => $rule) {
69-
$description .= ++$key . '. ' . $rule->getDescription() . " \\n";
69+
$description .= ++$key . '. ' . $rule->getDescription() . " \n";
7070
}
7171

7272
return $description;

tests/Validator/MultipleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function setUp(): void
1515

1616
public function testIsValid()
1717
{
18-
$this->assertEquals('1. Value must be a valid string and at least 1 chars and no longer than 20 chars \n2. Value must be a valid URL \n', $this->validator->getDescription());
18+
$this->assertEquals("1. Value must be a valid string and at least 1 chars and no longer than 20 chars \n2. Value must be a valid URL \n", $this->validator->getDescription());
1919

2020
// Valid URL but invalid text length
2121
$this->assertFalse($this->validator->isValid('http://example.com/very-long-url'));

0 commit comments

Comments
 (0)