Passed
Push — develop ( 629c3a...e7c784 )
by nguereza
03:51
created
src/Security/JWT/Encoder/Base64UrlSafeEncoder.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
  * @class Base64UrlSafeEncoder
54 54
  * @package Platine\Framework\Security\JWT\Encoder
55 55
  */
56
-class Base64UrlSafeEncoder implements EncoderInterface
57
-{
56
+class Base64UrlSafeEncoder implements EncoderInterface {
58 57
     /**
59 58
      * {@inheritdoc}
60 59
      */
Please login to merge, or discard this patch.
src/Security/JWT/EncoderInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
  * @class EncoderInterface
52 52
  * @package Platine\Framework\Security\JWT
53 53
  */
54
-interface EncoderInterface
55
-{
54
+interface EncoderInterface {
56 55
     /**
57 56
      * Encode the given data
58 57
      * @param string $data
Please login to merge, or discard this patch.
src/Auth/Middleware/AuthenticationMiddleware.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
  * @package Platine\Framework\Auth\Middleware
63 63
  * @template T
64 64
  */
65
-class AuthenticationMiddleware implements MiddlewareInterface
66
-{
65
+class AuthenticationMiddleware implements MiddlewareInterface {
67 66
     /**
68 67
      * The Authentication instance
69 68
      * @var AuthenticationInterface
Please login to merge, or discard this patch.
src/Auth/Middleware/ApiAuthenticationMiddleware.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
  * @package Platine\Framework\Auth\Middleware
62 62
  * @template T
63 63
  */
64
-class ApiAuthenticationMiddleware implements MiddlewareInterface
65
-{
64
+class ApiAuthenticationMiddleware implements MiddlewareInterface {
66 65
     /**
67 66
      * The Authentication instance
68 67
      * @var ApiAuthenticationInterface
Please login to merge, or discard this patch.
src/Auth/Middleware/AuthorizationMiddleware.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
  * @package Platine\Framework\Auth\Middleware
63 63
  * @template T
64 64
  */
65
-class AuthorizationMiddleware implements MiddlewareInterface
66
-{
65
+class AuthorizationMiddleware implements MiddlewareInterface {
67 66
     /**
68 67
      * The Authorization instance
69 68
      * @var AuthorizationInterface
Please login to merge, or discard this patch.
src/Auth/AuthorizationInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
  * @class AuthorizationInterface
52 52
  * @package Platine\Framework\Auth
53 53
  */
54
-interface AuthorizationInterface
55
-{
54
+interface AuthorizationInterface {
56 55
     /**
57 56
      * Check if user is granted the given permission
58 57
      * @param string $permission the permission to check
Please login to merge, or discard this patch.
src/Auth/Event/AuthInvalidPasswordEvent.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * @class AuthInvalidPasswordEvent
55 55
  * @package Platine\Framework\Auth\Event
56 56
  */
57
-class AuthInvalidPasswordEvent extends Event
58
-{
57
+class AuthInvalidPasswordEvent extends Event {
59 58
     /**
60 59
      * The authentication user
61 60
      * @var User
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
      * Create new instance
67 66
      * @param User $user
68 67
      */
69
-    public function __construct(User $user)
70
-    {
68
+    public function __construct(User $user) {
71 69
         parent::__construct(__CLASS__, []);
72 70
         $this->user = $user;
73 71
     }
Please login to merge, or discard this patch.
src/Auth/AuthenticationInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @class AuthenticationInterface
57 57
  * @package Platine\Framework\Auth
58 58
  */
59
-interface AuthenticationInterface
60
-{
59
+interface AuthenticationInterface {
61 60
     /**
62 61
      * Authenticate the user
63 62
      * @param array<string, mixed> $credentials
Please login to merge, or discard this patch.
src/Auth/IdentityInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
  * @class IdentityInterface
52 52
  * @package Platine\Framework\Auth
53 53
  */
54
-interface IdentityInterface
55
-{
54
+interface IdentityInterface {
56 55
     /**
57 56
      * Return the id of the current user
58 57
      * @return mixed
Please login to merge, or discard this patch.