Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit d7f0623

Browse files
committed
Merge branch 'hotfix/3286'
Close zendframework/zendframework#3286
2 parents ecd96ec + 6b0b773 commit d7f0623

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Client/Cookies.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ public function getCookie($uri, $cookie_name, $ret_as = self::COOKIE_OBJECT)
237237
throw new Exception\InvalidArgumentException("Invalid value passed for \$ret_as: {$ret_as}");
238238
break;
239239
}
240-
} else {
241-
return false;
242240
}
241+
242+
return false;
243243
}
244244

245245
/**

src/Cookies.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ public function getCookie($uri, $cookie_name, $ret_as = self::COOKIE_OBJECT)
214214
throw new Exception\InvalidArgumentException("Invalid value passed for \$ret_as: {$ret_as}");
215215
break;
216216
}
217-
} else {
218-
return false;
219217
}
218+
219+
return false;
220220
}
221221

222222
/**

src/Header/SetCookie.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,9 @@ public function isExpired($now = null)
473473

474474
if (is_int($this->expires) && $this->expires < $now) {
475475
return true;
476-
} else {
477-
return false;
478476
}
477+
478+
return false;
479479
}
480480

481481
/**

0 commit comments

Comments
 (0)