We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b27456 commit 518f3fcCopy full SHA for 518f3fc
src/Support/Str.php
@@ -12,12 +12,4 @@ public static function firstLetter(string $value): string
12
{
13
return mb_substr($value, 0, 1);
14
}
15
-
16
- public static function squish(string $string): string
17
- {
18
- return self::of($string)
19
- ->replaceMatches('/[[:space:]]+/', ' ')
20
- ->trim()
21
- ->__toString();
22
- }
23
tests/Unit/StrTest.php
@@ -14,10 +14,4 @@ public function it_returns_the_first_letter_of_a_string(): void
self::assertEquals('R', Str::firstLetter('Randall'));
- /** @test */
- public function it_squishes_additional_space_from_a_string(): void
- self::assertSame('Randall James Wilk', Str::squish(' Randall James Wilk '));
0 commit comments