Skip to content

Commit ab5393b

Browse files
committed
test: remove empty lines
1 parent 656af0a commit ab5393b

1 file changed

Lines changed: 13 additions & 26 deletions

File tree

tests/system/HTTP/URITest.php

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,7 @@ public function defaultResolutions()
658658
public function testResolveRelativeURI($rel, $expected)
659659
{
660660
$base = 'http://a/b/c/d';
661-
662-
$uri = new URI($base);
661+
$uri = new URI($base);
663662

664663
$new = $uri->resolveRelativeURI($rel);
665664

@@ -674,8 +673,7 @@ public function testResolveRelativeURI($rel, $expected)
674673
*/
675674
public function testResolveRelativeURIHTTPS($rel, $expected)
676675
{
677-
$base = 'https://a/b/c/d';
678-
676+
$base = 'https://a/b/c/d';
679677
$expected = str_replace('http:', 'https:', $expected);
680678

681679
$uri = new URI($base);
@@ -688,8 +686,7 @@ public function testResolveRelativeURIHTTPS($rel, $expected)
688686
public function testResolveRelativeURIWithNoBase()
689687
{
690688
$base = 'http://a';
691-
692-
$uri = new URI($base);
689+
$uri = new URI($base);
693690

694691
$new = $uri->resolveRelativeURI('x');
695692

@@ -699,8 +696,7 @@ public function testResolveRelativeURIWithNoBase()
699696
public function testAddQueryVar()
700697
{
701698
$base = 'http://example.com/foo';
702-
703-
$uri = new URI($base);
699+
$uri = new URI($base);
704700

705701
$uri->addQuery('bar', 'baz');
706702

@@ -712,8 +708,7 @@ public function testAddQueryVar()
712708
*/
713709
public function testSetQueryDecode()
714710
{
715-
$base = 'http://example.com/foo';
716-
711+
$base = 'http://example.com/foo';
717712
$uri = new URI($base);
718713
$encoded = urlencode('you+alice+to+the+little');
719714

@@ -727,8 +722,7 @@ public function testSetQueryDecode()
727722
public function testAddQueryVarRespectsExistingQueryVars()
728723
{
729724
$base = 'http://example.com/foo?bar=baz';
730-
731-
$uri = new URI($base);
725+
$uri = new URI($base);
732726

733727
$uri->addQuery('baz', 'foz');
734728

@@ -738,8 +732,7 @@ public function testAddQueryVarRespectsExistingQueryVars()
738732
public function testStripQueryVars()
739733
{
740734
$base = 'http://example.com/foo?foo=bar&bar=baz&baz=foz';
741-
742-
$uri = new URI($base);
735+
$uri = new URI($base);
743736

744737
$uri->stripQuery('bar', 'baz');
745738

@@ -749,8 +742,7 @@ public function testStripQueryVars()
749742
public function testKeepQueryVars()
750743
{
751744
$base = 'http://example.com/foo?foo=bar&bar=baz&baz=foz';
752-
753-
$uri = new URI($base);
745+
$uri = new URI($base);
754746

755747
$uri->keepQuery('bar', 'baz');
756748

@@ -769,17 +761,15 @@ public function testEmptyQueryVars()
769761
public function testGetQueryExcept()
770762
{
771763
$base = 'http://example.com/foo?foo=bar&bar=baz&baz=foz';
772-
773-
$uri = new URI($base);
764+
$uri = new URI($base);
774765

775766
$this->assertSame('foo=bar&baz=foz', $uri->getQuery(['except' => ['bar']]));
776767
}
777768

778769
public function testGetQueryOnly()
779770
{
780771
$base = 'http://example.com/foo?foo=bar&bar=baz&baz=foz';
781-
782-
$uri = new URI($base);
772+
$uri = new URI($base);
783773

784774
$this->assertSame('bar=baz', $uri->getQuery(['only' => ['bar']]));
785775
$this->assertSame('foo=bar&baz=foz', $uri->getQuery(['except' => 'bar']));
@@ -788,8 +778,7 @@ public function testGetQueryOnly()
788778
public function testGetQueryWithStrings()
789779
{
790780
$base = 'http://example.com/foo?foo=bar&bar=baz&baz=foz';
791-
792-
$uri = new URI($base);
781+
$uri = new URI($base);
793782

794783
$this->assertSame('bar=baz', $uri->getQuery(['only' => 'bar']));
795784
}
@@ -862,10 +851,8 @@ public function testSetBadSegment()
862851

863852
public function testSetBadSegmentSilent()
864853
{
865-
$base = 'http://example.com/foo/bar/baz';
866-
867-
$uri = new URI($base);
868-
854+
$base = 'http://example.com/foo/bar/baz';
855+
$uri = new URI($base);
869856
$segments = $uri->getSegments();
870857
$uri->setSilent()->setSegment(6, 'banana');
871858

0 commit comments

Comments
 (0)