File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ public function createResponse(Response $symfonyResponse): ResponseInterface
178
178
179
179
$ headers = $ symfonyResponse ->headers ->all ();
180
180
$ cookies = $ symfonyResponse ->headers ->getCookies ();
181
- if (! empty ( $ cookies) ) {
181
+ if ($ cookies ) {
182
182
$ headers ['Set-Cookie ' ] = [];
183
183
184
184
foreach ($ cookies as $ cookie ) {
Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ public function getScheme(): string
47
47
48
48
public function getAuthority (): string
49
49
{
50
- if (empty ( $ this ->host ) ) {
50
+ if (! $ this ->host ) {
51
51
return '' ;
52
52
}
53
53
54
54
$ authority = $ this ->host ;
55
55
56
- if (! empty ( $ this ->userInfo ) ) {
56
+ if ($ this ->userInfo ) {
57
57
$ authority = $ this ->userInfo .'@ ' .$ authority ;
58
58
}
59
59
You can’t perform that action at this time.
0 commit comments