Passed
Push — develop ( 99c9a5...1e7986 )
by nguereza
12:10 queued 10:33
created
src/CookieManagerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
src/CookieInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/CookieManager.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Middleware/CookieSendMiddleware.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Cookie.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.