@@ -684,26 +684,26 @@ |
||
| 684 | 684 | return $this->cookies; |
| 685 | 685 | } |
| 686 | 686 | |
| 687 | - /** |
|
| 688 | - * Fetch cookie value from cookies sent by the client to the server. |
|
| 689 | - * |
|
| 690 | - * Note: This method is not part of the PSR-7 standard. |
|
| 691 | - * |
|
| 692 | - * @param $key |
|
| 693 | - * @param null $default |
|
| 694 | - * |
|
| 695 | - * @return null |
|
| 696 | - */ |
|
| 697 | - public function getCookieParam($key, $default = null) |
|
| 698 | - { |
|
| 699 | - $getCookies = $this->getCookieParams(); |
|
| 700 | - $result = $default; |
|
| 701 | - if (isset($getCookies[$key])) { |
|
| 702 | - $result = $getCookies[$key]; |
|
| 703 | - } |
|
| 704 | - |
|
| 705 | - return $result; |
|
| 706 | - } |
|
| 687 | + /** |
|
| 688 | + * Fetch cookie value from cookies sent by the client to the server. |
|
| 689 | + * |
|
| 690 | + * Note: This method is not part of the PSR-7 standard. |
|
| 691 | + * |
|
| 692 | + * @param $key |
|
| 693 | + * @param null $default |
|
| 694 | + * |
|
| 695 | + * @return null |
|
| 696 | + */ |
|
| 697 | + public function getCookieParam($key, $default = null) |
|
| 698 | + { |
|
| 699 | + $getCookies = $this->getCookieParams(); |
|
| 700 | + $result = $default; |
|
| 701 | + if (isset($getCookies[$key])) { |
|
| 702 | + $result = $getCookies[$key]; |
|
| 703 | + } |
|
| 704 | + |
|
| 705 | + return $result; |
|
| 706 | + } |
|
| 707 | 707 | |
| 708 | 708 | /** |
| 709 | 709 | * Return an instance with the specified cookies. |