Passed
Push — develop ( c77ba7...d3c53a )
by nguereza
04:05
created
src/Auth/Authorization/SessionAuthorization.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,14 +54,12 @@
 block discarded – undo
54 54
  * class SessionAuthorization
55 55
  * @package Platine\Framework\Auth\Authorization
56 56
  */
57
-class SessionAuthorization implements AuthorizationInterface
58
-{
57
+class SessionAuthorization implements AuthorizationInterface {
59 58
     /**
60 59
      * Create new instance
61 60
      * @param Session $session
62 61
      */
63
-    public function __construct(protected Session $session)
64
-    {
62
+    public function __construct(protected Session $session) {
65 63
     }
66 64
 
67 65
     /**
Please login to merge, or discard this patch.
src/Auth/Event/AuthLoginEvent.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,14 +54,12 @@
 block discarded – undo
54 54
  * @class AuthLoginEvent
55 55
  * @package Platine\Framework\Auth\Event
56 56
  */
57
-class AuthLoginEvent extends Event
58
-{
57
+class AuthLoginEvent extends Event {
59 58
     /**
60 59
      * Create new instance
61 60
      * @param User $user
62 61
      */
63
-    public function __construct(protected User $user)
64
-    {
62
+    public function __construct(protected User $user) {
65 63
         parent::__construct(__CLASS__, []);
66 64
     }
67 65
 
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,14 +54,12 @@
 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
      * Create new instance
61 60
      * @param User $user
62 61
      */
63
-    public function __construct(protected User $user)
64
-    {
62
+    public function __construct(protected User $user) {
65 63
         parent::__construct(__CLASS__, []);
66 64
     }
67 65
 
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
      * Create new instance
69 68
      * @param AuthorizationInterface $authorization
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
      * Create new instance
68 67
      * @param ApiAuthenticationInterface $authentication
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
      * Create new instance
69 68
      * @param AuthenticationInterface $authentication
Please login to merge, or discard this patch.
src/Form/Validator/AbstractValidator.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 AbstractValidator
54 54
  * @package Platine\Framework\Form\Validator
55 55
  */
56
-abstract class AbstractValidator extends Validator
57
-{
56
+abstract class AbstractValidator extends Validator {
58 57
     /**
59 58
      * {@inheritdoc}
60 59
      * @return bool
Please login to merge, or discard this patch.
src/Form/Param/BaseParam.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,14 +59,12 @@
 block discarded – undo
59 59
  * @package Platine\Framework\Form\Param
60 60
  * @template TEntity as Entity
61 61
  */
62
-class BaseParam implements JsonSerializable
63
-{
62
+class BaseParam implements JsonSerializable {
64 63
     /**
65 64
      * Create new instance
66 65
      * @param array<string, mixed> $data
67 66
      */
68
-    public function __construct(array $data = [])
69
-    {
67
+    public function __construct(array $data = []) {
70 68
         // Load default values
71 69
         $this->loadDefaultValues();
72 70
 
Please login to merge, or discard this patch.
src/Http/RequestData.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 RequestData
55 55
  * @package Platine\Framework\Http
56 56
  */
57
-class RequestData
58
-{
57
+class RequestData {
59 58
     /**
60 59
      * The request body or post data
61 60
      * @var array<string, mixed>
@@ -96,8 +95,7 @@  discard block
 block discarded – undo
96 95
      * Create new instance
97 96
      * @param ServerRequestInterface $request
98 97
      */
99
-    public function __construct(ServerRequestInterface $request)
100
-    {
98
+    public function __construct(ServerRequestInterface $request) {
101 99
         $this->posts = (array) $request->getParsedBody();
102 100
         $this->gets = $request->getQueryParams();
103 101
         $this->servers = $request->getServerParams();
Please login to merge, or discard this patch.