Skip to content

Commit 518f3fc

Browse files
committed
Remove squish method
1 parent 2b27456 commit 518f3fc

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/Support/Str.php

-8
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,4 @@ public static function firstLetter(string $value): string
1212
{
1313
return mb_substr($value, 0, 1);
1414
}
15-
16-
public static function squish(string $string): string
17-
{
18-
return self::of($string)
19-
->replaceMatches('/[[:space:]]+/', ' ')
20-
->trim()
21-
->__toString();
22-
}
2315
}

tests/Unit/StrTest.php

-6
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,4 @@ public function it_returns_the_first_letter_of_a_string(): void
1414
{
1515
self::assertEquals('R', Str::firstLetter('Randall'));
1616
}
17-
18-
/** @test */
19-
public function it_squishes_additional_space_from_a_string(): void
20-
{
21-
self::assertSame('Randall James Wilk', Str::squish(' Randall James Wilk '));
22-
}
2317
}

0 commit comments

Comments
 (0)