Skip to content

Commit bdb8d88

Browse files
samdarkvjik
andauthored
Minor fixes (#9)
Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
1 parent 8a83b2a commit bdb8d88

6 files changed

Lines changed: 3 additions & 10 deletions

File tree

src/HttpCache/CacheControlProvider/CacheControlProviderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Psr\Http\Message\ServerRequestInterface;
88

99
/**
10-
* Interface for `Cache-Control` header value providers. Given a request it generates a header value.
10+
* Interface for `Cache-Control` header value providers. Given a request, it generates a header value.
1111
*
1212
* @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control
1313
*/

src/TagRequest/TagProvider/PredefinedTagProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use IteratorIterator;
1010
use OutOfBoundsException;
1111

12-
use Yiisoft\HttpMiddleware\TagRequest\TagProvider\TagProviderInterface;
13-
1412
use function is_array;
1513

1614
/**

src/TagRequest/TagProvider/PrefixedTagProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Yiisoft\HttpMiddleware\TagRequest\TagProvider;
66

7-
use Yiisoft\HttpMiddleware\TagRequest\TagProvider\TagProviderInterface;
8-
97
/**
108
* A tag provider that prefixes the result of a decorated tag provider with a specified string.
119
*/

src/TagRequest/TagProvider/TimeBasedTagProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Yiisoft\HttpMiddleware\TagRequest\TagProvider;
66

7-
use Yiisoft\HttpMiddleware\TagRequest\TagProvider\TagProviderInterface;
8-
97
use function uniqid;
108

119
/**

tests/HttpCache/ETagHeaderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Yiisoft\HttpMiddleware\HttpCache\ETagHeader;
1414

1515
use function PHPUnit\Framework\assertSame;
16-
use function PHPUnit\Framework\assertTrue;
1716

1817
final class ETagHeaderTest extends TestCase
1918
{

tests/Support/StreamStub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function close(): void
2626
throw new LogicException('Not implemented.');
2727
}
2828

29-
public function detach()
29+
public function detach(): void
3030
{
3131
throw new LogicException('Not implemented.');
3232
}
@@ -86,7 +86,7 @@ public function getContents(): string
8686
throw new LogicException('Not implemented.');
8787
}
8888

89-
public function getMetadata(?string $key = null)
89+
public function getMetadata(?string $key = null): void
9090
{
9191
throw new LogicException('Not implemented.');
9292
}

0 commit comments

Comments
 (0)