Passed
Push — develop ( 03ea6d...da2588 )
by nguereza
02:27
created
src/Cookie.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@
 block discarded – undo
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
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
@@ -52,8 +52,7 @@
 block discarded – undo
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
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
@@ -53,8 +53,7 @@
 block discarded – undo
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"
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
@@ -49,8 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/CookieManagerInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.