Passed
Push — develop ( 20f62f...e667b3 )
by nguereza
02:00
created
platine/migrations/20230802_152529_add_oauth2_authorization_codes_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function up(): void
13 13
     {
14 14
       //Action when migrate up
15
-        $this->create('oauth_authorization_codes', function (CreateTable $table) {
15
+        $this->create('oauth_authorization_codes', function(CreateTable $table) {
16 16
             $table->string('authorization_code', 100)
17 17
                   ->notNull()
18 18
                   ->description('The authorization code')
Please login to merge, or discard this patch.
platine/migrations/20230802_144938_add_oauth2_scopes_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function up(): void
13 13
     {
14 14
       //Action when migrate up
15
-        $this->create('oauth_scopes', function (CreateTable $table) {
15
+        $this->create('oauth_scopes', function(CreateTable $table) {
16 16
             $table->integer('id')
17 17
                   ->autoincrement()
18 18
                  ->primary();
Please login to merge, or discard this patch.
platine/migrations/20230802_152020_add_oauth2_refresh_tokens_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function up(): void
13 13
     {
14 14
       //Action when migrate up
15
-        $this->create('oauth_refresh_tokens', function (CreateTable $table) {
15
+        $this->create('oauth_refresh_tokens', function(CreateTable $table) {
16 16
             $table->string('refresh_token', 100)
17 17
                   ->notNull()
18 18
                   ->description('The refresh token')
Please login to merge, or discard this patch.
platine/migrations/20230802_151233_add_oauth2_access_tokens_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function up(): void
13 13
     {
14 14
       //Action when migrate up
15
-        $this->create('oauth_access_tokens', function (CreateTable $table) {
15
+        $this->create('oauth_access_tokens', function(CreateTable $table) {
16 16
             $table->string('access_token', 100)
17 17
                   ->notNull()
18 18
                   ->description('The access token')
Please login to merge, or discard this patch.
platine/migrations/20230802_150106_add_oauth2_clients_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function up(): void
13 13
     {
14 14
       //Action when migrate up
15
-        $this->create('oauth_clients', function (CreateTable $table) {
15
+        $this->create('oauth_clients', function(CreateTable $table) {
16 16
             $table->string('id', 100)
17 17
                   ->notNull()
18 18
                   ->description('The client id')
Please login to merge, or discard this patch.
src/ResourceServerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,6 +55,6 @@
 block discarded – undo
55 55
      */
56 56
     public function getAccessToken(
57 57
         ServerRequestInterface $request,
58
-        string|array $scopes = []
58
+        string | array $scopes = []
59 59
     ): ?AccessToken;
60 60
 }
Please login to merge, or discard this patch.
src/ResourceServer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      */
69 69
     public function getAccessToken(
70 70
         ServerRequestInterface $request,
71
-        string|array $scopes = []
71
+        string | array $scopes = []
72 72
     ): ?AccessToken {
73 73
         $accessToken = $this->getTokenFromRequest($request);
74 74
         if ($accessToken === null) {
Please login to merge, or discard this patch.
src/Entity/BaseToken.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      * @param string|array<string> $scopes
179 179
      * @return bool
180 180
      */
181
-    public function matchScopes(string|array $scopes): bool
181
+    public function matchScopes(string | array $scopes): bool
182 182
     {
183 183
         if (is_string($scopes)) {
184 184
             $scopes = explode(' ', $scopes);
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      * @param string|array<string> $scopes
195 195
      * @return bool
196 196
      */
197
-    public function isValid(string|array $scopes): bool
197
+    public function isValid(string | array $scopes): bool
198 198
     {
199 199
         if ($this->isExpired()) {
200 200
             return false;
Please login to merge, or discard this patch.
src/Entity/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
      */
88 88
     public static function createNewClient(
89 89
         string $name,
90
-        string|array $redirectUris = null,
90
+        string | array $redirectUris = null,
91 91
         ?array $scopes = null
92 92
     ): self {
93 93
         if (is_string($redirectUris)) {
Please login to merge, or discard this patch.