Skip to content

Commit

Permalink
Update coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jan 26, 2021
1 parent d3f9726 commit 1ce0465
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 46 deletions.
3 changes: 1 addition & 2 deletions src/Components/AuthorityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

namespace League\Uri\Components;

use League\Uri\Components\Authority;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
Expand All @@ -30,7 +29,7 @@
* @group userinfo
* @coversDefaultClass \League\Uri\Components\Authority
*/
class AuthorityTest extends TestCase
final class AuthorityTest extends TestCase
{
/**
* @covers ::__set_state
Expand Down
4 changes: 1 addition & 3 deletions src/Components/DataPathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

namespace League\Uri\Components;

use League\Uri\Components\DataPath;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
Expand All @@ -32,7 +31,7 @@
* @group datapath
* @coversDefaultClass \League\Uri\Components\DataPath
*/
class DataPathTest extends TestCase
final class DataPathTest extends TestCase
{
/** @var string */
private $rootPath;
Expand Down Expand Up @@ -362,7 +361,6 @@ public function invalidParameters(): array
*/
public function testBinarySave(): void
{

$newFilePath = $this->rootPath.'/temp.gif';
$uri = DataPath::createFromPath($this->rootPath.'/red-nose.gif');
$res = $uri->save($newFilePath);
Expand Down
5 changes: 1 addition & 4 deletions src/Components/DomainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
namespace League\Uri\Components;

use ArrayIterator;
use League\Uri\Components\Authority;
use League\Uri\Components\Domain;
use League\Uri\Components\Host;
use League\Uri\Contracts\UriException;
use League\Uri\Exceptions\OffsetOutOfBounds;
use League\Uri\Exceptions\SyntaxError;
Expand All @@ -35,7 +32,7 @@
* @group host
* @coversDefaultClass \League\Uri\Components\Domain
*/
class DomainTest extends TestCase
final class DomainTest extends TestCase
{
/**
* @covers ::__set_state
Expand Down
3 changes: 1 addition & 2 deletions src/Components/FragmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

namespace League\Uri\Components;

use League\Uri\Components\Fragment;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
Expand All @@ -29,7 +28,7 @@
* @group fragment
* @coversDefaultClass \League\Uri\Components\Fragment
*/
class FragmentTest extends TestCase
final class FragmentTest extends TestCase
{
/**
* @dataProvider getUriComponentProvider
Expand Down
4 changes: 1 addition & 3 deletions src/Components/HierarchicalPathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
namespace League\Uri\Components;

use ArrayIterator;
use League\Uri\Components\HierarchicalPath;
use League\Uri\Components\Path;
use League\Uri\Exceptions\OffsetOutOfBounds;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
Expand All @@ -35,7 +33,7 @@
* @group hierarchicalpath
* @coversDefaultClass \League\Uri\Components\HierarchicalPath
*/
class HierarchicalPathTest extends TestCase
final class HierarchicalPathTest extends TestCase
{
public function testSetState(): void
{
Expand Down
3 changes: 1 addition & 2 deletions src/Components/HostTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

namespace League\Uri\Components;

use League\Uri\Components\Host;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
Expand All @@ -31,7 +30,7 @@
* @group host
* @coversDefaultClass \League\Uri\Components\Host
*/
class HostTest extends TestCase
final class HostTest extends TestCase
{
/**
* @covers ::__set_state
Expand Down
3 changes: 1 addition & 2 deletions src/Components/IpAddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@

namespace League\Uri\Components;

use League\Uri\Components\Host;
use League\Uri\Exceptions\SyntaxError;
use PHPUnit\Framework\TestCase;

/**
* @group host
* @coversDefaultClass \League\Uri\Components\Host
*/
class IpAddressTest extends TestCase
final class IpAddressTest extends TestCase
{
/**
* @covers ::__construct
Expand Down
3 changes: 1 addition & 2 deletions src/Components/PathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

namespace League\Uri\Components;

use League\Uri\Components\Path;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
Expand All @@ -30,7 +29,7 @@
* @group defaultpath
* @coversDefaultClass \League\Uri\Components\Path
*/
class PathTest extends TestCase
final class PathTest extends TestCase
{
/**
* @dataProvider validPathEncoding
Expand Down
4 changes: 1 addition & 3 deletions src/Components/PortTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

namespace League\Uri\Components;

use League\Uri\Components\Authority;
use League\Uri\Components\Port;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
Expand All @@ -30,7 +28,7 @@
* @group port
* @coversDefaultClass \League\Uri\Components\Port
*/
class PortTest extends TestCase
final class PortTest extends TestCase
{
/**
* @covers ::__toString
Expand Down
3 changes: 1 addition & 2 deletions src/Components/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

use ArrayIterator;
use DateInterval;
use League\Uri\Components\Query;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
Expand All @@ -32,7 +31,7 @@
* @group query
* @coversDefaultClass \League\Uri\Components\Query
*/
class QueryTest extends TestCase
final class QueryTest extends TestCase
{
/**
* @var Query
Expand Down
3 changes: 1 addition & 2 deletions src/Components/SchemeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

namespace League\Uri\Components;

use League\Uri\Components\Scheme;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
Expand All @@ -29,7 +28,7 @@
* @group scheme
* @coversDefaultClass \League\Uri\Components\Scheme
*/
class SchemeTest extends TestCase
final class SchemeTest extends TestCase
{
/**
* @covers ::__set_state
Expand Down
4 changes: 1 addition & 3 deletions src/Components/UserInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

namespace League\Uri\Components;

use League\Uri\Components\Authority;
use League\Uri\Components\UserInfo;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
Expand All @@ -30,7 +28,7 @@
* @group userinfo
* @coversDefaultClass \League\Uri\Components\UserInfo
*/
class UserInfoTest extends TestCase
final class UserInfoTest extends TestCase
{
/**
* @dataProvider userInfoProvider
Expand Down
5 changes: 1 addition & 4 deletions src/HostModifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@
use GuzzleHttp\Psr7\Uri as GuzzleUri;
use League\Uri\Exceptions\OffsetOutOfBounds;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
use League\Uri\UriModifier;
use PHPUnit\Framework\TestCase;

/**
* @group host
* @group resolution
* @coversDefaultClass \League\Uri\UriModifier
*/
class HostModifierTest extends TestCase
final class HostModifierTest extends TestCase
{
/**
* @var Http
Expand Down
3 changes: 0 additions & 3 deletions src/IPv4HostNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

use League\Uri\Components\Authority;
use League\Uri\Components\Host;
use League\Uri\Http;
use League\Uri\IPv4Normalizer;
use League\Uri\Uri;
use PHPUnit\Framework\TestCase;
use function extension_loaded;
use const PHP_INT_SIZE;
Expand Down
5 changes: 1 addition & 4 deletions src/PathModifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
use GuzzleHttp\Psr7;
use League\Uri\Components\DataPath;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Http;
use League\Uri\Uri;
use League\Uri\UriModifier;
use PHPUnit\Framework\TestCase;
use function dirname;

Expand All @@ -30,7 +27,7 @@
* @group resolution
* @coversDefaultClass \League\Uri\UriModifier
*/
class PathModifierTest extends TestCase
final class PathModifierTest extends TestCase
{
/**
* @var Http
Expand Down
5 changes: 1 addition & 4 deletions src/QueryModifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@

namespace League\Uri;

use League\Uri\Http;
use League\Uri\Uri;
use League\Uri\UriModifier;
use PHPUnit\Framework\TestCase;

/**
* @group query
* @group resolution
* @coversDefaultClass \League\Uri\UriModifier
*/
class QueryModifierTest extends TestCase
final class QueryModifierTest extends TestCase
{
/**
* @var Http
Expand Down
1 change: 0 additions & 1 deletion src/QueryStringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

use ArrayIterator;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\QueryString;
use PHPUnit\Framework\TestCase;
use TypeError;
use function date_create;
Expand Down

0 comments on commit 1ce0465

Please sign in to comment.