Skip to content

Commit 37ab2e2

Browse files
Merge branch 'feature/issue-11' of github.com:dedoc/documentor into feature/issue-11
2 parents b149af0 + 338a0e6 commit 37ab2e2

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

src/Support/Generator/SecuritySchemes/OAuthFlow.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,32 @@
55
class OAuthFlow
66
{
77
public string $authorizationUrl = '';
8+
89
public string $tokenUrl = '';
10+
911
public string $refreshUrl = '';
12+
1013
/** @var array<string, string> */
1114
public array $scopes = [];
1215

1316
public function authorizationUrl(string $authorizationUrl): OAuthFlow
1417
{
1518
$this->authorizationUrl = $authorizationUrl;
19+
1620
return $this;
1721
}
1822

1923
public function tokenUrl(string $tokenUrl): OAuthFlow
2024
{
2125
$this->tokenUrl = $tokenUrl;
26+
2227
return $this;
2328
}
2429

2530
public function refreshUrl(string $refreshUrl): OAuthFlow
2631
{
2732
$this->refreshUrl = $refreshUrl;
33+
2834
return $this;
2935
}
3036

src/Support/Generator/SecuritySchemes/OAuthFlows.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,38 @@
55
class OAuthFlows
66
{
77
public ?OAuthFlow $implicit = null;
8+
89
public ?OAuthFlow $password = null;
10+
911
public ?OAuthFlow $clientCredentials = null;
12+
1013
public ?OAuthFlow $authorizationCode = null;
1114

1215
public function implicit(?OAuthFlow $flow): OAuthFlows
1316
{
1417
$this->implicit = $flow;
18+
1519
return $this;
1620
}
1721

1822
public function password(?OAuthFlow $flow): OAuthFlows
1923
{
2024
$this->password = $flow;
25+
2126
return $this;
2227
}
2328

2429
public function clientCredentials(?OAuthFlow $flow): OAuthFlows
2530
{
2631
$this->clientCredentials = $flow;
32+
2733
return $this;
2834
}
2935

3036
public function authorizationCode(?OAuthFlow $flow): OAuthFlows
3137
{
3238
$this->authorizationCode = $flow;
39+
3340
return $this;
3441
}
3542

tests/OpenApiBuildersTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'type' => 'apiKey',
2020
'in' => 'query',
2121
'name' => 'api_token',
22-
]
22+
],
2323
]);
2424
});
2525

0 commit comments

Comments
 (0)