Passed
Push — develop ( 36c2b4...1d782e )
by nguereza
03:02
created
config/api.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
         'auth' => [
5 5
             'path' => '/api',
6 6
             'url_whitelist' => [
7
-               '/api/auth/login',
7
+                '/api/auth/login',
8 8
             ],
9 9
             'expire' => 3600,
10 10
             'headers' => [
Please login to merge, or discard this patch.
src/Http/Response/RestResponse.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 RestResponse
52 52
  * @package Platine\Framework\Http\Response
53 53
  */
54
-class RestResponse extends JsonResponse
55
-{
54
+class RestResponse extends JsonResponse {
56 55
 
57 56
     /**
58 57
      * Create new instance
Please login to merge, or discard this patch.
src/Http/Middleware/BodyParserMiddleware.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
         }
165 165
 
166 166
         if (!$this->hasParser($contentType)) {
167
-             // If not, look for a media type with a structured syntax suffix (RFC 6839)
167
+                // If not, look for a media type with a structured syntax suffix (RFC 6839)
168 168
             $parts = expldoe('+', $contentType);
169 169
 
170 170
             if (count($parts) >= 2) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,11 +139,11 @@
 block discarded – undo
139 139
      */
140 140
     protected function registerDefaultParsers(): void
141 141
     {
142
-        $this->registerParser('application/json', static function ($body) {
142
+        $this->registerParser('application/json', static function($body) {
143 143
             return Json::decode($body, true);
144 144
         });
145 145
 
146
-        $this->registerParser('application/x-www-form-urlencoded', static function ($body) {
146
+        $this->registerParser('application/x-www-form-urlencoded', static function($body) {
147 147
             $data = [];
148 148
             parse_str($body, $data);
149 149
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
  * @class BodyParserMiddleware
59 59
  * @package Platine\Framework\Http\Middleware
60 60
  */
61
-class BodyParserMiddleware implements MiddlewareInterface
62
-{
61
+class BodyParserMiddleware implements MiddlewareInterface {
63 62
 
64 63
     /**
65 64
      * List of body parser to use
@@ -70,8 +69,7 @@  discard block
 block discarded – undo
70 69
     /**
71 70
      * Create new instance
72 71
      */
73
-    public function __construct()
74
-    {
72
+    public function __construct() {
75 73
         $this->registerDefaultParsers();
76 74
     }
77 75
 
@@ -156,8 +154,7 @@  discard block
 block discarded – undo
156 154
      * @param ServerRequestInterface $request
157 155
      * @return null|array<mixed>object
158 156
      */
159
-    protected function parseBody(ServerRequestInterface $request)
160
-    {
157
+    protected function parseBody(ServerRequestInterface $request) {
161 158
         $contentType = $this->getRequestContentType($request);
162 159
         if ($contentType === null) {
163 160
             return null;
Please login to merge, or discard this patch.
src/Http/Middleware/CsrfMiddleware.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
      */
184 184
     protected function shouldBeProcessed(ServerRequestInterface $request): bool
185 185
     {
186
-       //If no route has been match no need check for CSRF
186
+        //If no route has been match no need check for CSRF
187 187
         /** @var ?Route $route */
188 188
         $route = $request->getAttribute(Route::class);
189 189
         if (!$route) {
Please login to merge, or discard this patch.
src/Security/JWT/SignerInterface.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 SignerInterface
52 52
  * @package Platine\Framework\Security\JWT
53 53
  */
54
-interface SignerInterface
55
-{
54
+interface SignerInterface {
56 55
 
57 56
     /**
58 57
      * Sign the given data using the given key
Please login to merge, or discard this patch.
src/Security/JWT/Exception/JWTException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,6 +39,5 @@
 block discarded – undo
39 39
  * @class JWTException
40 40
  * @package Platine\Framework\Security\JWT\Exception
41 41
  */
42
-class JWTException extends Exception
43
-{
42
+class JWTException extends Exception {
44 43
 }
Please login to merge, or discard this patch.
src/Security/JWT/Exception/InvalidAlgorithmException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class InvalidAlgorithmException
38 38
  * @package Platine\Framework\Security\JWT\Exception
39 39
  */
40
-class InvalidAlgorithmException extends JWTException
41
-{
40
+class InvalidAlgorithmException extends JWTException {
42 41
 }
Please login to merge, or discard this patch.
src/Security/JWT/Exception/TokenExpiredException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class TokenExpiredException
38 38
  * @package Platine\Framework\Security\JWT\Exception
39 39
  */
40
-class TokenExpiredException extends JWTException
41
-{
40
+class TokenExpiredException extends JWTException {
42 41
 }
Please login to merge, or discard this patch.
src/Security/JWT/Exception/InvalidTokenException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class InvalidTokenException
38 38
  * @package Platine\Framework\Security\JWT\Exception
39 39
  */
40
-class InvalidTokenException extends JWTException
41
-{
40
+class InvalidTokenException extends JWTException {
42 41
 }
Please login to merge, or discard this patch.