diff options
Diffstat (limited to 'lib/public/AppFramework/Http/Response.php')
-rw-r--r-- | lib/public/AppFramework/Http/Response.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php index 15318f30bbd..2fc985aabfb 100644 --- a/lib/public/AppFramework/Http/Response.php +++ b/lib/public/AppFramework/Http/Response.php @@ -49,16 +49,16 @@ class Response { * Headers - defaults to ['Cache-Control' => 'no-cache, no-store, must-revalidate'] * @var array */ - private $headers = array( + private $headers = [ 'Cache-Control' => 'no-cache, no-store, must-revalidate' - ); + ]; /** * Cookies that will be need to be constructed as header * @var array */ - private $cookies = array(); + private $cookies = []; /** @@ -138,7 +138,7 @@ class Response { * @since 8.0.0 */ public function addCookie($name, $value, \DateTime $expireDate = null) { - $this->cookies[$name] = array('value' => $value, 'expireDate' => $expireDate); + $this->cookies[$name] = ['value' => $value, 'expireDate' => $expireDate]; return $this; } |