Completed
Push — master ( 299150...e30ecd )
by
unknown
02:39 queued 53s
created
src/Models/AccessToken.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace AdvancedLearning\Oauth2Server\Models;
4 4
 
5 5
 use SilverStripe\ORM\DataObject;
6
-use SilverStripe\Security\Member;
7 6
 
8 7
 /**
9 8
  * Class AccessTokenEntity
Please login to merge, or discard this patch.
src/Middleware/AuthenticationMiddleware.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
     /**
38 38
      * Build error control chain for an application
39 39
      *
40
-     * @param Application    $application The SilverStripe Application.
41 40
      */
42 41
     public function __construct()
43 42
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use SilverStripe\Core\Application;
11 11
 use SilverStripe\Core\Injector\Injector;
12 12
 use SilverStripe\ORM\Connect\DatabaseException;
13
-use SilverStripe\ORM\DB;
14 13
 use SilverStripe\Security\Member;
15 14
 use SilverStripe\Security\Security;
16 15
 
Please login to merge, or discard this patch.
src/Controllers/AuthoriseController.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -67,6 +67,9 @@
 block discarded – undo
67 67
         }
68 68
     }
69 69
 
70
+    /**
71
+     * @param string $message
72
+     */
70 73
     protected function getErrorResponse($message, $responseCode = 500)
71 74
     {
72 75
         $response = (new OAuthServerException($message, 100, 'server_error', $responseCode))
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use Robbie\Psr7\HttpRequestAdapter;
11 11
 use Robbie\Psr7\HttpResponseAdapter;
12 12
 use SilverStripe\Control\Controller;
13
-use SilverStripe\Control\HTTP;
14 13
 use SilverStripe\Control\HTTPResponse;
15 14
 
16 15
 class AuthoriseController extends Controller
Please login to merge, or discard this patch.
tests/OAuthServerTest.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@  discard block
 block discarded – undo
5 5
 use AdvancedLearning\Oauth2Server\AuthorizationServer\DefaultGenerator;
6 6
 use AdvancedLearning\Oauth2Server\Controllers\AuthoriseController;
7 7
 use AdvancedLearning\Oauth2Server\Entities\UserEntity;
8
-use AdvancedLearning\Oauth2Server\Extensions\GroupExtension;
9 8
 use AdvancedLearning\Oauth2Server\Middleware\AuthenticationMiddleware;
10 9
 use AdvancedLearning\Oauth2Server\Models\Client;
11 10
 use AdvancedLearning\Oauth2Server\Repositories\AccessTokenRepository;
@@ -20,21 +19,17 @@  discard block
 block discarded – undo
20 19
 use League\OAuth2\Server\CryptTrait;
21 20
 use League\OAuth2\Server\Grant\ClientCredentialsGrant;
22 21
 use League\OAuth2\Server\Grant\PasswordGrant;
23
-use Lcobucci\JWT\Claim\Factory as ClaimFactory;
24 22
 use Lcobucci\JWT\Parser;
25
-use Lcobucci\JWT\Parsing\Encoder;
26 23
 use GuzzleHttp\Psr7\Response;
27 24
 use Robbie\Psr7\HttpRequestAdapter;
28 25
 use SilverStripe\Control\HTTPApplication;
29 26
 use SilverStripe\Control\HTTPRequest;
30 27
 use SilverStripe\Control\HTTPResponse;
31
-use SilverStripe\Core\Config\Config;
32 28
 use SilverStripe\Core\Environment;
33 29
 use SilverStripe\Core\Injector\Injector;
34 30
 use SilverStripe\Core\Kernel;
35 31
 use SilverStripe\Core\Tests\Startup\ErrorControlChainMiddlewareTest\BlankKernel;
36 32
 use SilverStripe\Dev\SapphireTest;
37
-use SilverStripe\Security\Group;
38 33
 use SilverStripe\Security\Member;
39 34
 use SilverStripe\Security\Security;
40 35
 use function file_get_contents;
Please login to merge, or discard this patch.