@@ -46,8 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | namespace Platine\Cookie; |
| 48 | 48 | |
| 49 | -class Cookie implements CookieInterface |
|
| 50 | -{ |
|
| 49 | +class Cookie implements CookieInterface { |
|
| 51 | 50 | |
| 52 | 51 | /** |
| 53 | 52 | * The name of the cookie |
@@ -52,8 +52,7 @@ |
||
| 52 | 52 | use Platine\Http\Handler\RequestHandlerInterface; |
| 53 | 53 | use Platine\Http\Handler\Middleware\MiddlewareInterface; |
| 54 | 54 | |
| 55 | -class CookieSendMiddleware implements MiddlewareInterface |
|
| 56 | -{ |
|
| 55 | +class CookieSendMiddleware implements MiddlewareInterface { |
|
| 57 | 56 | |
| 58 | 57 | /** |
| 59 | 58 | * The cookie manager instance |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * change state MUST be implemented such that they retain the internal state of |
| 54 | 54 | * the current instance and return an instance that contains the changed state. |
| 55 | 55 | */ |
| 56 | -interface CookieInterface |
|
| 57 | -{ |
|
| 56 | +interface CookieInterface { |
|
| 58 | 57 | |
| 59 | 58 | /** |
| 60 | 59 | * Same site policy "None" |
@@ -49,8 +49,7 @@ discard block |
||
| 49 | 49 | use InvalidArgumentException; |
| 50 | 50 | use Platine\Http\ResponseInterface; |
| 51 | 51 | |
| 52 | -class CookieManager implements CookieManagerInterface |
|
| 53 | -{ |
|
| 52 | +class CookieManager implements CookieManagerInterface { |
|
| 54 | 53 | |
| 55 | 54 | /** |
| 56 | 55 | * The list of CookieInterface |
@@ -62,8 +61,7 @@ discard block |
||
| 62 | 61 | * Create new instance |
| 63 | 62 | * @param array $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( |
@@ -48,8 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | use Platine\Http\ResponseInterface; |
| 50 | 50 | |
| 51 | -interface CookieManagerInterface |
|
| 52 | -{ |
|
| 51 | +interface CookieManagerInterface { |
|
| 53 | 52 | |
| 54 | 53 | /** |
| 55 | 54 | * Set the cookie |