Skip to content

Commit 41dce07

Browse files
committed
Remove unnecessary empty usages
1 parent fbc500c commit 41dce07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Factory/PsrHttpFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function createResponse(Response $symfonyResponse): ResponseInterface
178178

179179
$headers = $symfonyResponse->headers->all();
180180
$cookies = $symfonyResponse->headers->getCookies();
181-
if (!empty($cookies)) {
181+
if ($cookies) {
182182
$headers['Set-Cookie'] = [];
183183

184184
foreach ($cookies as $cookie) {

Tests/Fixtures/Uri.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ public function getScheme(): string
4747

4848
public function getAuthority(): string
4949
{
50-
if (empty($this->host)) {
50+
if (!$this->host) {
5151
return '';
5252
}
5353

5454
$authority = $this->host;
5555

56-
if (!empty($this->userInfo)) {
56+
if ($this->userInfo) {
5757
$authority = $this->userInfo.'@'.$authority;
5858
}
5959

0 commit comments

Comments
 (0)