-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Implementation for #12885 #12921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Implementation for #12885 #12921
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e32b822
Strict Exceptions
rullzer 94cdb93
Strict repair step
rullzer 523a5c6
Strict controllers
rullzer ba3946b
Update IMessage.php
hdijkema 41e9d8d
Update Message.php
hdijkema 43ecaee
Update IMipPlugin.php
hdijkema 0ef0df3
Update IMipPlugin.php
hdijkema 408409b
Update IMipPlugin.php
hdijkema 186c6a6
Update Message.php
hdijkema File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
| /** | ||
| * @copyright Copyright (c) 2017 Lukas Reschke <[email protected]> | ||
| * | ||
|
|
@@ -50,7 +51,7 @@ class LoginRedirectorController extends Controller { | |
| * @param ISession $session | ||
| * @param IL10N $l | ||
| */ | ||
| public function __construct($appName, | ||
| public function __construct(string $appName, | ||
| IRequest $request, | ||
| IURLGenerator $urlGenerator, | ||
| ClientMapper $clientMapper, | ||
|
|
@@ -75,7 +76,7 @@ public function __construct($appName, | |
| */ | ||
| public function authorize($client_id, | ||
| $state, | ||
| $response_type) { | ||
| $response_type): Response { | ||
| try { | ||
| $client = $this->clientMapper->getByIdentifier($client_id); | ||
| } catch (ClientNotFoundException $e) { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
| /** | ||
| * @copyright Copyright (c) 2017 Lukas Reschke <[email protected]> | ||
| * | ||
|
|
@@ -53,18 +54,7 @@ class OauthApiController extends Controller { | |
| /** @var Throttler */ | ||
| private $throttler; | ||
|
|
||
| /** | ||
| * @param string $appName | ||
| * @param IRequest $request | ||
| * @param ICrypto $crypto | ||
| * @param AccessTokenMapper $accessTokenMapper | ||
| * @param ClientMapper $clientMapper | ||
| * @param TokenProvider $tokenProvider | ||
| * @param ISecureRandom $secureRandom | ||
| * @param ITimeFactory $time | ||
| * @param Throttler $throttler | ||
| */ | ||
| public function __construct($appName, | ||
| public function __construct(string $appName, | ||
| IRequest $request, | ||
| ICrypto $crypto, | ||
| AccessTokenMapper $accessTokenMapper, | ||
|
|
@@ -94,7 +84,7 @@ public function __construct($appName, | |
| * @param string $client_secret | ||
| * @return JSONResponse | ||
| */ | ||
| public function getToken($grant_type, $code, $refresh_token, $client_id, $client_secret) { | ||
| public function getToken($grant_type, $code, $refresh_token, $client_id, $client_secret): JSONResponse { | ||
|
|
||
| // We only handle two types | ||
| if ($grant_type !== 'authorization_code' && $grant_type !== 'refresh_token') { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
| /** | ||
| * @copyright Copyright (c) 2017 Lukas Reschke <[email protected]> | ||
| * | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
| /** | ||
| * @copyright Copyright (c) 2017 Lukas Reschke <[email protected]> | ||
| * | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| <?php | ||
| declare(strict_types=1); | ||
| /** | ||
| * @copyright Copyright 2018, Roeland Jago Douma <[email protected]> | ||
| * | ||
|
|
@@ -50,7 +51,7 @@ public function __construct(IDBConnection $connection, | |
| $this->tokenProvider = $tokenProvider; | ||
| } | ||
|
|
||
| public function getName() { | ||
| public function getName(): string { | ||
| return 'Update OAuth token expiration times'; | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.