Passed
Push — develop ( 3f3e75...907aec )
by nguereza
03:12
created
src/OAuth2/Repository/AuthorizationCodeRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     public function cleanExpiredTokens(): void
86 86
     {
87 87
         $this->query()->where('expires')->lte(date('Y-m-d H:i:s'))
88
-                      ->delete();
88
+                        ->delete();
89 89
     }
90 90
 
91 91
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     public function deleteToken(BaseToken $token): bool
95 95
     {
96 96
         return $this->query()->where('authorization_code')->is($token->getToken())
97
-                             ->delete() >= 0;
97
+                                ->delete() >= 0;
98 98
     }
99 99
 
100 100
     /**
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
@@ -92,8 +92,8 @@
 block discarded – undo
92 92
     public function getDefaultScopes(): array
93 93
     {
94 94
         $result = $this->query()
95
-                       ->where('is_default')->is(1)
96
-                       ->all();
95
+                        ->where('is_default')->is(1)
96
+                        ->all();
97 97
         $scopes = [];
98 98
         foreach ($result as $row) {
99 99
             $scopes[] = Scope::createNewScope(
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
@@ -79,27 +79,27 @@  discard block
 block discarded – undo
79 79
         $this->clientService = $clientService;
80 80
     }
81 81
 
82
-     /**
83
-     * {@inheritdoc}
84
-     */
82
+        /**
83
+         * {@inheritdoc}
84
+         */
85 85
     public function cleanExpiredTokens(): void
86 86
     {
87 87
         $this->query()->where('expires')->lte(date('Y-m-d H:i:s'))
88
-                      ->delete();
88
+                        ->delete();
89 89
     }
90 90
 
91
-     /**
92
-     * {@inheritdoc}
93
-     */
91
+        /**
92
+         * {@inheritdoc}
93
+         */
94 94
     public function deleteToken(BaseToken $token): bool
95 95
     {
96 96
         return $this->query()->where('refresh_token')->is($token->getToken())
97
-                             ->delete() >= 0;
97
+                                ->delete() >= 0;
98 98
     }
99 99
 
100
-     /**
101
-     * {@inheritdoc}
102
-     */
100
+        /**
101
+         * {@inheritdoc}
102
+         */
103 103
     public function getByToken(string $token): ?BaseToken
104 104
     {
105 105
         $refreshToken = $this->find($token);
@@ -121,17 +121,17 @@  discard block
 block discarded – undo
121 121
         ]);
122 122
     }
123 123
 
124
-     /**
125
-     * {@inheritdoc}
126
-     */
124
+        /**
125
+         * {@inheritdoc}
126
+         */
127 127
     public function isTokenExists(string $token): bool
128 128
     {
129 129
         return $this->find($token) !== null;
130 130
     }
131 131
 
132
-     /**
133
-     * {@inheritdoc}
134
-     */
132
+        /**
133
+         * {@inheritdoc}
134
+         */
135 135
     public function saveRefreshToken(RefreshToken $token): RefreshToken
136 136
     {
137 137
         $clientId = null;
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
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     public function cleanExpiredTokens(): void
86 86
     {
87 87
         $this->query()->where('expires')->lte(date('Y-m-d H:i:s'))
88
-                      ->delete();
88
+                        ->delete();
89 89
     }
90 90
 
91 91
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     public function deleteToken(BaseToken $token): bool
95 95
     {
96 96
         return $this->query()->where('access_token')->is($token->getToken())
97
-                             ->delete() >= 0;
97
+                                ->delete() >= 0;
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthAuthorizationCode.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,16 +14,16 @@
 block discarded – undo
14 14
 class OauthAuthorizationCode extends Entity
15 15
 {
16 16
     /**
17
-    * {@inheritdoc}
18
-    */
17
+     * {@inheritdoc}
18
+     */
19 19
     public static function mapEntity(EntityMapperInterface $mapper): void
20 20
     {
21
-         $mapper->primaryKey('authorization_code');
22
-         $mapper->useTimestamp();
23
-         $mapper->casts([
21
+            $mapper->primaryKey('authorization_code');
22
+            $mapper->useTimestamp();
23
+            $mapper->casts([
24 24
             'expires' => 'date',
25 25
             'created_at' => 'date',
26 26
             'updated_at' => '?date',
27
-         ]);
27
+            ]);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthClient.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
 class OauthClient extends Entity
15 15
 {
16 16
     /**
17
-    * {@inheritdoc}
18
-    */
17
+     * {@inheritdoc}
18
+     */
19 19
     public static function mapEntity(EntityMapperInterface $mapper): void
20 20
     {
21
-         $mapper->useTimestamp();
22
-         $mapper->casts([
21
+            $mapper->useTimestamp();
22
+            $mapper->casts([
23 23
             'created_at' => 'date',
24 24
             'updated_at' => '?date',
25
-         ]);
25
+            ]);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthScope.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
 class OauthScope extends Entity
15 15
 {
16 16
     /**
17
-    * {@inheritdoc}
18
-    */
17
+     * {@inheritdoc}
18
+     */
19 19
     public static function mapEntity(EntityMapperInterface $mapper): void
20 20
     {
21
-         $mapper->useTimestamp();
22
-         $mapper->casts([
21
+            $mapper->useTimestamp();
22
+            $mapper->casts([
23 23
             'created_at' => 'date',
24 24
             'updated_at' => '?date',
25
-         ]);
25
+            ]);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthRefreshToken.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,16 +14,16 @@
 block discarded – undo
14 14
 class OauthRefreshToken extends Entity
15 15
 {
16 16
     /**
17
-    * {@inheritdoc}
18
-    */
17
+     * {@inheritdoc}
18
+     */
19 19
     public static function mapEntity(EntityMapperInterface $mapper): void
20 20
     {
21
-         $mapper->primaryKey('refresh_token');
22
-         $mapper->useTimestamp();
23
-         $mapper->casts([
21
+            $mapper->primaryKey('refresh_token');
22
+            $mapper->useTimestamp();
23
+            $mapper->casts([
24 24
             'expires' => 'date',
25 25
             'created_at' => 'date',
26 26
             'updated_at' => '?date',
27
-         ]);
27
+            ]);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/OAuth2/Entity/OauthAccessToken.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,16 +14,16 @@
 block discarded – undo
14 14
 class OauthAccessToken extends Entity
15 15
 {
16 16
     /**
17
-    * {@inheritdoc}
18
-    */
17
+     * {@inheritdoc}
18
+     */
19 19
     public static function mapEntity(EntityMapperInterface $mapper): void
20 20
     {
21
-         $mapper->primaryKey('access_token');
22
-         $mapper->useTimestamp();
23
-         $mapper->casts([
21
+            $mapper->primaryKey('access_token');
22
+            $mapper->useTimestamp();
23
+            $mapper->casts([
24 24
             'expires' => 'date',
25 25
             'created_at' => 'date',
26 26
             'updated_at' => '?date',
27
-         ]);
27
+            ]);
28 28
     }
29 29
 }
Please login to merge, or discard this patch.