Passed
Push — develop ( 20f62f...e667b3 )
by nguereza
02:00
created
src/Grant/RefreshTokenGrant.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
     }
93 93
 
94 94
         /**
95
-     * {@inheritdoc}
96
-     */
95
+         * {@inheritdoc}
96
+         */
97 97
     public function createAuthorizationResponse(
98 98
         ServerRequestInterface $request,
99 99
         Client $client,
Please login to merge, or discard this patch.
src/Grant/PasswordGrant.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
     }
93 93
 
94 94
         /**
95
-     * {@inheritdoc}
96
-     */
95
+         * {@inheritdoc}
96
+         */
97 97
     public function createAuthorizationResponse(
98 98
         ServerRequestInterface $request,
99 99
         Client $client,
Please login to merge, or discard this patch.
platine/migrations/20230802_152529_add_oauth2_authorization_codes_table.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,22 +11,22 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function up(): void
13 13
     {
14
-      //Action when migrate up
14
+        //Action when migrate up
15 15
         $this->create('oauth_authorization_codes', function (CreateTable $table) {
16 16
             $table->string('authorization_code', 100)
17
-                  ->notNull()
18
-                  ->description('The authorization code')
19
-                 ->primary();
17
+                    ->notNull()
18
+                    ->description('The authorization code')
19
+                    ->primary();
20 20
 
21 21
             $table->string('redirect_uri', 2000)
22
-                   ->description('The client redirect uri');
22
+                    ->description('The client redirect uri');
23 23
 
24 24
             $table->string('scope', 2000)
25
-                   ->description('The authorization code scopes separated with space if many');
25
+                    ->description('The authorization code scopes separated with space if many');
26 26
 
27 27
             $table->datetime('expires')
28
-                   ->notNull()
29
-                   ->description('The authorization code expire time');
28
+                    ->notNull()
29
+                    ->description('The authorization code expire time');
30 30
 
31 31
             $table->integer('user_id')
32 32
                 ->description('The owner of authorization code');
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function down(): void
49 49
     {
50
-      //Action when migrate down
50
+        //Action when migrate down
51 51
         $this->drop('oauth_authorization_codes');
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
platine/migrations/20230802_144938_add_oauth2_scopes_table.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -11,20 +11,20 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function up(): void
13 13
     {
14
-      //Action when migrate up
14
+        //Action when migrate up
15 15
         $this->create('oauth_scopes', function (CreateTable $table) {
16 16
             $table->integer('id')
17
-                  ->autoincrement()
18
-                 ->primary();
17
+                    ->autoincrement()
18
+                    ->primary();
19 19
 
20 20
             $table->string('name')
21
-                 ->notNull();
21
+                    ->notNull();
22 22
 
23 23
             $table->string('description');
24 24
 
25 25
             $table->boolean('is_default')
26
-                 ->description('Whether is the default scope')
27
-                 ->notNull();
26
+                    ->description('Whether is the default scope')
27
+                    ->notNull();
28 28
 
29 29
             $table->timestamps();
30 30
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function down(): void
36 36
     {
37
-      //Action when migrate down
37
+        //Action when migrate down
38 38
         $this->drop('oauth_scopes');
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
platine/migrations/20230802_152020_add_oauth2_refresh_tokens_table.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,19 +11,19 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function up(): void
13 13
     {
14
-      //Action when migrate up
14
+        //Action when migrate up
15 15
         $this->create('oauth_refresh_tokens', function (CreateTable $table) {
16 16
             $table->string('refresh_token', 100)
17
-                  ->notNull()
18
-                  ->description('The refresh token')
19
-                 ->primary();
17
+                    ->notNull()
18
+                    ->description('The refresh token')
19
+                    ->primary();
20 20
 
21 21
             $table->string('scope', 2000)
22
-                   ->description('The refresh token scopes separated with space if many');
22
+                    ->description('The refresh token scopes separated with space if many');
23 23
 
24 24
             $table->datetime('expires')
25
-                   ->notNull()
26
-                   ->description('The refresh token expire time');
25
+                    ->notNull()
26
+                    ->description('The refresh token expire time');
27 27
 
28 28
             $table->integer('user_id')
29 29
                 ->description('The owner of refresh token');
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function down(): void
46 46
     {
47
-      //Action when migrate down
47
+        //Action when migrate down
48 48
         $this->drop('oauth_refresh_tokens');
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
platine/migrations/20230802_151233_add_oauth2_access_tokens_table.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,19 +11,19 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function up(): void
13 13
     {
14
-      //Action when migrate up
14
+        //Action when migrate up
15 15
         $this->create('oauth_access_tokens', function (CreateTable $table) {
16 16
             $table->string('access_token', 100)
17
-                  ->notNull()
18
-                  ->description('The access token')
19
-                 ->primary();
17
+                    ->notNull()
18
+                    ->description('The access token')
19
+                    ->primary();
20 20
 
21 21
             $table->string('scope', 2000)
22
-                   ->description('The access token scopes separated with space if many');
22
+                    ->description('The access token scopes separated with space if many');
23 23
 
24 24
             $table->datetime('expires')
25
-                   ->notNull()
26
-                   ->description('The access token expire time');
25
+                    ->notNull()
26
+                    ->description('The access token expire time');
27 27
 
28 28
             $table->integer('user_id')
29 29
                 ->description('The owner of access token');
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function down(): void
46 46
     {
47
-      //Action when migrate down
47
+        //Action when migrate down
48 48
         $this->drop('oauth_access_tokens');
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
platine/migrations/20230802_150106_add_oauth2_clients_table.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -11,29 +11,29 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function up(): void
13 13
     {
14
-      //Action when migrate up
14
+        //Action when migrate up
15 15
         $this->create('oauth_clients', function (CreateTable $table) {
16 16
             $table->string('id', 100)
17
-                  ->notNull()
18
-                  ->description('The client id')
19
-                 ->primary();
17
+                    ->notNull()
18
+                    ->description('The client id')
19
+                    ->primary();
20 20
 
21 21
             $table->string('name', 80)
22
-                  ->description('The client or app name')
23
-                 ->notNull();
22
+                    ->description('The client or app name')
23
+                    ->notNull();
24 24
 
25 25
             $table->string('secret', 80)
26
-                   ->description('The client secret must be null for public client');
26
+                    ->description('The client secret must be null for public client');
27 27
 
28 28
             $table->string('redirect_uri', 2000)
29
-                   ->notNull()
30
-                   ->description('The client redirect uri separated with space if many');
29
+                    ->notNull()
30
+                    ->description('The client redirect uri separated with space if many');
31 31
 
32 32
             $table->string('scope', 2000)
33
-                   ->description('The client scopes separated with space if many');
33
+                    ->description('The client scopes separated with space if many');
34 34
 
35 35
             $table->string('grant_types', 100)
36
-                   ->description('The client supported grant types separated with space if many');
36
+                    ->description('The client supported grant types separated with space if many');
37 37
 
38 38
             $table->integer('user_id')
39 39
                 ->description('The owner or client developer');
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     public function down(): void
48 48
     {
49
-      //Action when migrate down
49
+        //Action when migrate down
50 50
         $this->drop('oauth_clients');
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
src/Grant/ClientCredentialsGrant.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,9 +59,9 @@
 block discarded – undo
59 59
     ) {
60 60
     }
61 61
 
62
-     /**
63
-     * {@inheritdoc}
64
-     */
62
+        /**
63
+         * {@inheritdoc}
64
+         */
65 65
     public function createAuthorizationResponse(
66 66
         ServerRequestInterface $request,
67 67
         Client $client,
Please login to merge, or discard this patch.
src/Grant/AuthorizationGrant.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,9 +71,9 @@
 block discarded – undo
71 71
     ) {
72 72
     }
73 73
 
74
-     /**
75
-     * {@inheritdoc}
76
-     */
74
+        /**
75
+         * {@inheritdoc}
76
+         */
77 77
     public function createAuthorizationResponse(
78 78
         ServerRequestInterface $request,
79 79
         Client $client,
Please login to merge, or discard this patch.