@@ -49,8 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | use Platine\Http\ResponseInterface; |
| 51 | 51 | |
| 52 | -interface CookieManagerInterface |
|
| 53 | -{ |
|
| 52 | +interface CookieManagerInterface { |
|
| 54 | 53 | /** |
| 55 | 54 | * Set the cookie |
| 56 | 55 | * |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * change state MUST be implemented such that they retain the internal state of |
| 55 | 55 | * the current instance and return an instance that contains the changed state. |
| 56 | 56 | */ |
| 57 | -interface CookieInterface |
|
| 58 | -{ |
|
| 57 | +interface CookieInterface { |
|
| 59 | 58 | /** |
| 60 | 59 | * Same site policy "None" |
| 61 | 60 | */ |
@@ -50,8 +50,7 @@ discard block |
||
| 50 | 50 | use InvalidArgumentException; |
| 51 | 51 | use Platine\Http\ResponseInterface; |
| 52 | 52 | |
| 53 | -class CookieManager implements CookieManagerInterface |
|
| 54 | -{ |
|
| 53 | +class CookieManager implements CookieManagerInterface { |
|
| 55 | 54 | /** |
| 56 | 55 | * The list of CookieInterface |
| 57 | 56 | * @var array<CookieInterface> |
@@ -62,8 +61,7 @@ discard block |
||
| 62 | 61 | * Create new instance |
| 63 | 62 | * @param array<CookieInterface> $cookies the default cookies to store |
| 64 | 63 | */ |
| 65 | - public function __construct(array $cookies = []) |
|
| 66 | - { |
|
| 64 | + public function __construct(array $cookies = []) { |
|
| 67 | 65 | foreach ($cookies as $cookie) { |
| 68 | 66 | if (!$cookie instanceof CookieInterface) { |
| 69 | 67 | throw new InvalidArgumentException(sprintf( |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | use Platine\Http\ResponseInterface; |
| 54 | 54 | use Platine\Http\ServerRequestInterface; |
| 55 | 55 | |
| 56 | -class CookieSendMiddleware implements MiddlewareInterface |
|
| 57 | -{ |
|
| 56 | +class CookieSendMiddleware implements MiddlewareInterface { |
|
| 58 | 57 | /** |
| 59 | 58 | * The cookie manager instance |
| 60 | 59 | * @var CookieManagerInterface |
@@ -47,8 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | namespace Platine\Cookie; |
| 49 | 49 | |
| 50 | -class Cookie implements CookieInterface |
|
| 51 | -{ |
|
| 50 | +class Cookie implements CookieInterface { |
|
| 52 | 51 | /** |
| 53 | 52 | * The name of the cookie |
| 54 | 53 | * |