Passed
Push — develop ( e28085...b72380 )
by nguereza
08:51
created
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/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/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.
src/Http/RouteHelper.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,14 +55,12 @@
 block discarded – undo
55 55
  * @class RouteHelper
56 56
  * @package Platine\Framework\Http
57 57
  */
58
-class RouteHelper
59
-{
58
+class RouteHelper {
60 59
     /**
61 60
      * Create new instance
62 61
      * @param Router $router
63 62
      */
64
-    public function __construct(protected Router $router)
65
-    {
63
+    public function __construct(protected Router $router) {
66 64
     }
67 65
 
68 66
     /**
Please login to merge, or discard this patch.
src/Http/Middleware/CsrfMiddleware.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
      */
124 124
     protected function shouldBeProcessed(ServerRequestInterface $request): bool
125 125
     {
126
-       //If no route has been match no need check for CSRF
126
+        //If no route has been match no need check for CSRF
127 127
         /** @var Route|null $route */
128 128
         $route = $request->getAttribute(Route::class);
129 129
         if ($route === null) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@
 block discarded – undo
64 64
  * @package Platine\Framework\Http\Middleware
65 65
  * @template T
66 66
  */
67
-class CsrfMiddleware implements MiddlewareInterface
68
-{
67
+class CsrfMiddleware implements MiddlewareInterface {
69 68
     /**
70 69
      * The request instance to use
71 70
      * @var ServerRequestInterface
Please login to merge, or discard this patch.
src/Http/Middleware/SecurityPolicyMiddleware.php 2 patches
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\Http\Middleware
60 60
  * @template T
61 61
  */
62
-class SecurityPolicyMiddleware implements MiddlewareInterface
63
-{
62
+class SecurityPolicyMiddleware implements MiddlewareInterface {
64 63
     /**
65 64
      * Create new instance
66 65
      * @param SecurityPolicy<T> $securityPolicy
67 66
      */
68
-    public function __construct(protected SecurityPolicy $securityPolicy)
69
-    {
67
+    public function __construct(protected SecurityPolicy $securityPolicy) {
70 68
     }
71 69
 
72 70
     /**
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
      */
124 124
     protected function shouldBeProcessed(ServerRequestInterface $request): bool
125 125
     {
126
-       //If no route has been match no need check for CSRF
126
+        //If no route has been match no need check for CSRF
127 127
         /** @var Route|null $route */
128 128
         $route = $request->getAttribute(Route::class);
129 129
         if ($route === null) {
Please login to merge, or discard this patch.
src/Http/Middleware/RouteDispatcherMiddleware.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
  * @class RouteDispatcherMiddleware
60 60
  * @package Platine\Framework\Http\Middleware
61 61
  */
62
-class RouteDispatcherMiddleware implements MiddlewareInterface
63
-{
62
+class RouteDispatcherMiddleware implements MiddlewareInterface {
64 63
     /**
65 64
      * Create new instance
66 65
      * @param MiddlewareResolverInterface $resolver
67 66
      */
68
-    public function __construct(protected MiddlewareResolverInterface $resolver)
69
-    {
67
+    public function __construct(protected MiddlewareResolverInterface $resolver) {
70 68
     }
71 69
 
72 70
     /**
Please login to merge, or discard this patch.