@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | * @class CookieManager |
54 | 54 | * @package Platine\Cookie |
55 | 55 | */ |
56 | -class CookieManager implements CookieManagerInterface |
|
57 | -{ |
|
56 | +class CookieManager implements CookieManagerInterface { |
|
58 | 57 | /** |
59 | 58 | * The cookies |
60 | 59 | * @var CookieInterface[] |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * Create new instance |
66 | 65 | * @param CookieInterface[] $cookies the default cookies to store |
67 | 66 | */ |
68 | - public function __construct(array $cookies = []) |
|
69 | - { |
|
67 | + public function __construct(array $cookies = []) { |
|
70 | 68 | foreach ($cookies as $cookie) { |
71 | 69 | $this->add($cookie); |
72 | 70 | } |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class CookieSendMiddleware |
58 | 58 | * @package Platine\Cookie\Middleware |
59 | 59 | */ |
60 | -class CookieSendMiddleware implements MiddlewareInterface |
|
61 | -{ |
|
60 | +class CookieSendMiddleware implements MiddlewareInterface { |
|
62 | 61 | /** |
63 | 62 | * Create new instance |
64 | 63 | * @param CookieManagerInterface $cookies The cookie manager instance |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @class CookieManagerInterface |
54 | 54 | * @package Platine\Cookie |
55 | 55 | */ |
56 | -interface CookieManagerInterface |
|
57 | -{ |
|
56 | +interface CookieManagerInterface { |
|
58 | 57 | /** |
59 | 58 | * Set the cookie |
60 | 59 | * |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class Cookie |
55 | 55 | * @package Platine\Cookie |
56 | 56 | */ |
57 | -class Cookie implements CookieInterface |
|
58 | -{ |
|
57 | +class Cookie implements CookieInterface { |
|
59 | 58 | /** |
60 | 59 | * The name of the cookie |
61 | 60 | * |