Skip to content

Commit 5390126

Browse files
authored
Apply fixes from StyleCI (#36646)
1 parent c8d7bbd commit 5390126

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

src/Illuminate/Support/Str.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Illuminate\Support;
44

5-
use Illuminate\Support\Arr;
65
use Illuminate\Support\Traits\Macroable;
76
use League\CommonMark\GithubFlavoredMarkdownConverter;
87
use Ramsey\Uuid\Codec\TimestampFirstCombCodec;

tests/Support/SupportStrTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -367,16 +367,16 @@ public function testReplaceLast()
367367

368368
public function testRemove()
369369
{
370-
$this->assertSame("Fbar", Str::remove('o', 'Foobar'));
371-
$this->assertSame("Foo", Str::remove('bar', 'Foobar'));
372-
$this->assertSame("oobar", Str::remove('F', 'Foobar'));
373-
$this->assertSame("Foobar", Str::remove('f', 'Foobar'));
374-
$this->assertSame("oobar", Str::remove('f', 'Foobar', false));
375-
376-
$this->assertSame("Fbr", Str::remove(["o", "a"], 'Foobar'));
377-
$this->assertSame("Fooar", Str::remove(["f", "b"], 'Foobar'));
378-
$this->assertSame("ooar", Str::remove(["f", "b"], 'Foobar', false));
379-
$this->assertSame("Foobar", Str::remove(["f", "|"], 'Foo|bar'));
370+
$this->assertSame('Fbar', Str::remove('o', 'Foobar'));
371+
$this->assertSame('Foo', Str::remove('bar', 'Foobar'));
372+
$this->assertSame('oobar', Str::remove('F', 'Foobar'));
373+
$this->assertSame('Foobar', Str::remove('f', 'Foobar'));
374+
$this->assertSame('oobar', Str::remove('f', 'Foobar', false));
375+
376+
$this->assertSame('Fbr', Str::remove(['o', 'a'], 'Foobar'));
377+
$this->assertSame('Fooar', Str::remove(['f', 'b'], 'Foobar'));
378+
$this->assertSame('ooar', Str::remove(['f', 'b'], 'Foobar', false));
379+
$this->assertSame('Foobar', Str::remove(['f', '|'], 'Foo|bar'));
380380
}
381381

382382
public function testSnake()

tests/Support/SupportStringableTest.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Illuminate\Tests\Support;
44

55
use Illuminate\Support\Collection;
6-
use Illuminate\Support\Str;
76
use Illuminate\Support\Stringable;
87
use PHPUnit\Framework\TestCase;
98

@@ -455,16 +454,16 @@ public function testReplaceLast()
455454

456455
public function testRemove()
457456
{
458-
$this->assertSame("Fbar", (string) $this->stringable('Foobar')->remove('o'));
459-
$this->assertSame("Foo", (string) $this->stringable('Foobar')->remove('bar'));
460-
$this->assertSame("oobar", (string) $this->stringable('Foobar')->remove('F'));
461-
$this->assertSame("Foobar", (string) $this->stringable('Foobar')->remove('f'));
462-
$this->assertSame("oobar", (string) $this->stringable('Foobar')->remove('f', false));
457+
$this->assertSame('Fbar', (string) $this->stringable('Foobar')->remove('o'));
458+
$this->assertSame('Foo', (string) $this->stringable('Foobar')->remove('bar'));
459+
$this->assertSame('oobar', (string) $this->stringable('Foobar')->remove('F'));
460+
$this->assertSame('Foobar', (string) $this->stringable('Foobar')->remove('f'));
461+
$this->assertSame('oobar', (string) $this->stringable('Foobar')->remove('f', false));
463462

464-
$this->assertSame("Fbr", (string) $this->stringable('Foobar')->remove(["o", "a"]));
465-
$this->assertSame("Fooar", (string) $this->stringable('Foobar')->remove(["f", "b"]));
466-
$this->assertSame("ooar", (string) $this->stringable('Foobar')->remove(["f", "b"], false));
467-
$this->assertSame("Foobar", (string) $this->stringable('Foo|bar')->remove(["f", "|"]));
463+
$this->assertSame('Fbr', (string) $this->stringable('Foobar')->remove(['o', 'a']));
464+
$this->assertSame('Fooar', (string) $this->stringable('Foobar')->remove(['f', 'b']));
465+
$this->assertSame('ooar', (string) $this->stringable('Foobar')->remove(['f', 'b'], false));
466+
$this->assertSame('Foobar', (string) $this->stringable('Foo|bar')->remove(['f', '|']));
468467
}
469468

470469
public function testSnake()

0 commit comments

Comments
 (0)