Test Failed
Push — develop ( a061b1...df8064 )
by nguereza
02:52
created
src/Env/Env.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -115,12 +115,12 @@
 block discarded – undo
115 115
         $options = 0
116 116
     ) {
117 117
         static $special = [
118
-          'true' => true,
119
-          'TRUE' => true,
120
-          'false' => false,
121
-          'FALSE' => false,
122
-          'null' => null,
123
-          'NULL' => null,
118
+            'true' => true,
119
+            'TRUE' => true,
120
+            'false' => false,
121
+            'FALSE' => false,
122
+            'null' => null,
123
+            'NULL' => null,
124 124
         ];
125 125
 
126 126
         $valueResolved = static::resolveReference($value);
Please login to merge, or discard this patch.
src/OAuth2/Middleware/OauthResourceMiddleware.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
      */
121 121
     protected function shouldBeProcessed(ServerRequestInterface $request): bool
122 122
     {
123
-       //If no route has been match no need check
123
+        //If no route has been match no need check
124 124
         /** @var Route|null $route */
125 125
         $route = $request->getAttribute(Route::class);
126 126
         if ($route === null) {
Please login to merge, or discard this patch.
src/OAuth2/Repository/RefreshTokenRepository.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -80,27 +80,27 @@  discard block
 block discarded – undo
80 80
         $this->clientService = $clientService;
81 81
     }
82 82
 
83
-     /**
84
-     * {@inheritdoc}
85
-     */
83
+        /**
84
+         * {@inheritdoc}
85
+         */
86 86
     public function cleanExpiredTokens(): void
87 87
     {
88 88
         $this->query()->where('expires')->lte(date('Y-m-d H:i:s'))
89
-                      ->delete();
89
+                        ->delete();
90 90
     }
91 91
 
92
-     /**
93
-     * {@inheritdoc}
94
-     */
92
+        /**
93
+         * {@inheritdoc}
94
+         */
95 95
     public function deleteToken(BaseToken $token): bool
96 96
     {
97 97
         return $this->query()->where('refresh_token')->is($token->getToken())
98
-                             ->delete() >= 0;
98
+                                ->delete() >= 0;
99 99
     }
100 100
 
101
-     /**
102
-     * {@inheritdoc}
103
-     */
101
+        /**
102
+         * {@inheritdoc}
103
+         */
104 104
     public function getByToken(string $token): ?BaseToken
105 105
     {
106 106
         $refreshToken = $this->find($token);
@@ -122,17 +122,17 @@  discard block
 block discarded – undo
122 122
         ]);
123 123
     }
124 124
 
125
-     /**
126
-     * {@inheritdoc}
127
-     */
125
+        /**
126
+         * {@inheritdoc}
127
+         */
128 128
     public function isTokenExists(string $token): bool
129 129
     {
130 130
         return $this->find($token) !== null;
131 131
     }
132 132
 
133
-     /**
134
-     * {@inheritdoc}
135
-     */
133
+        /**
134
+         * {@inheritdoc}
135
+         */
136 136
     public function saveRefreshToken(RefreshToken $token): RefreshToken
137 137
     {
138 138
         $clientId = null;
Please login to merge, or discard this patch.
src/OAuth2/Repository/ScopeRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@
 block discarded – undo
93 93
     public function getDefaultScopes(): array
94 94
     {
95 95
         $result = $this->query()
96
-                       ->where('is_default')->is(1)
97
-                       ->all();
96
+                        ->where('is_default')->is(1)
97
+                        ->all();
98 98
         $scopes = [];
99 99
         foreach ($result as $row) {
100 100
             $scopes[] = Scope::createNewScope(
Please login to merge, or discard this patch.
src/OAuth2/Repository/AuthorizationCodeRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public function cleanExpiredTokens(): void
87 87
     {
88 88
         $this->query()->where('expires')->lte(date('Y-m-d H:i:s'))
89
-                      ->delete();
89
+                        ->delete();
90 90
     }
91 91
 
92 92
     /**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     public function deleteToken(BaseToken $token): bool
96 96
     {
97 97
         return $this->query()->where('authorization_code')->is($token->getToken())
98
-                             ->delete() >= 0;
98
+                                ->delete() >= 0;
99 99
     }
100 100
 
101 101
     /**
Please login to merge, or discard this patch.
src/OAuth2/Repository/AccessTokenRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public function cleanExpiredTokens(): void
87 87
     {
88 88
         $this->query()->where('expires')->lte(date('Y-m-d H:i:s'))
89
-                      ->delete();
89
+                        ->delete();
90 90
     }
91 91
 
92 92
     /**
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     public function deleteToken(BaseToken $token): bool
96 96
     {
97 97
         return $this->query()->where('access_token')->is($token->getToken())
98
-                             ->delete() >= 0;
98
+                                ->delete() >= 0;
99 99
     }
100 100
 
101 101
     /**
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthAccessToken.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
21 21
      */
22 22
     public static function mapEntity(EntityMapperInterface $mapper): void
23 23
     {
24
-         $mapper->primaryKey('access_token');
25
-         $mapper->useTimestamp();
26
-         $mapper->casts([
24
+            $mapper->primaryKey('access_token');
25
+            $mapper->useTimestamp();
26
+            $mapper->casts([
27 27
             'expires' => 'date',
28 28
             'created_at' => 'date',
29 29
             'updated_at' => '?date',
30
-         ]);
30
+            ]);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthRefreshToken.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
      */
21 21
     public static function mapEntity(EntityMapperInterface $mapper): void
22 22
     {
23
-         $mapper->primaryKey('refresh_token');
24
-         $mapper->useTimestamp();
25
-         $mapper->casts([
23
+            $mapper->primaryKey('refresh_token');
24
+            $mapper->useTimestamp();
25
+            $mapper->casts([
26 26
             'expires' => 'date',
27 27
             'created_at' => 'date',
28 28
             'updated_at' => '?date',
29
-         ]);
29
+            ]);
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthClient.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
      */
22 22
     public static function mapEntity(EntityMapperInterface $mapper): void
23 23
     {
24
-         $mapper->useTimestamp();
25
-         $mapper->casts([
24
+            $mapper->useTimestamp();
25
+            $mapper->casts([
26 26
             'created_at' => 'date',
27 27
             'updated_at' => '?date',
28
-         ]);
28
+            ]);
29 29
     }
30 30
 }
Please login to merge, or discard this patch.