Completed
Push — develop ( ee7d3d...6fd965 )
by Christoffer
01:59
created
src/OAuth2ServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     protected function registerBindings(Container $container, ConfigRepository $config)
44 44
     {
45
-        $container->bind(OAuth2Service::class, function ($container) use ($config) {
45
+        $container->bind(OAuth2Service::class, function($container) use ($config) {
46 46
             return $this->createService($container, $config[self::CONFIG_KEY]);
47 47
         });
48 48
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Nord\Lumen\OAuth2\Exceptions\InvalidArgument;
10 10
 use Illuminate\Config\Repository as ConfigRepository;
11 11
 use Illuminate\Support\ServiceProvider;
12
-use Laravel\Lumen\Application;
13 12
 use League\OAuth2\Server\AuthorizationServer;
14 13
 use League\OAuth2\Server\Grant\PasswordGrant;
15 14
 use League\OAuth2\Server\ResourceServer;
Please login to merge, or discard this patch.
tests/_support/_generated/UnitTesterActions.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 // @codingStandardsIgnoreFile
7 7
 
8 8
 use Codeception\Module\Asserts;
9
-use Helper\Unit;
10 9
 
11 10
 trait UnitTesterActions
12 11
 {
Please login to merge, or discard this patch.
tests/_support/UnitTester.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     use _generated\UnitTesterActions;
22 22
 
23
-   /**
24
-    * Define custom actions here
25
-    */
23
+    /**
24
+     * Define custom actions here
25
+     */
26 26
 }
Please login to merge, or discard this patch.
tests/_support/Mock/Storages/MockAccessTokenStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $entity = new AccessTokenEntity($this->server);
18 18
 
19 19
         $entity->setId('mF_9.B5f-4.1JqM');
20
-        $entity->setExpireTime(time() + 24*60*60); // NOW + 24h
20
+        $entity->setExpireTime(time() + 24 * 60 * 60); // NOW + 24h
21 21
 
22 22
         return $entity;
23 23
     }
Please login to merge, or discard this patch.
tests/_support/Mock/MockApplication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,6 @@
 block discarded – undo
9 9
      */
10 10
     public function __construct($basePath = null)
11 11
     {
12
-        parent::__construct(realpath(__DIR__ . '/../'));
12
+        parent::__construct(realpath(__DIR__.'/../'));
13 13
     }
14 14
 }
Please login to merge, or discard this patch.
tests/_support/config/oauth2.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     'grant_types'             => [
45 45
         'password'      => [
46 46
             'class'            => League\OAuth2\Server\Grant\PasswordGrant::class,
47
-            'callback'         => function ($username, $password) {
47
+            'callback'         => function($username, $password) {
48 48
                 return $username.'/'.$password;
49 49
             },
50 50
             'access_token_ttl' => 3600,
Please login to merge, or discard this patch.
tests/_bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,4 +3,4 @@
 block discarded – undo
3 3
 
4 4
 date_default_timezone_set('UTC');
5 5
 
6
-require __DIR__ . '/../vendor/autoload.php';
6
+require __DIR__.'/../vendor/autoload.php';
Please login to merge, or discard this patch.
tests/unit/OAuth2ServiceProviderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/../_support/Mock/MockStorageServiceProvider.php';
3
+require_once __DIR__.'/../_support/Mock/MockStorageServiceProvider.php';
4 4
 
5 5
 use Nord\Lumen\OAuth2\OAuth2Facade;
6 6
 use Nord\Lumen\OAuth2\OAuth2Service;
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function testAssertCanBeRegistered()
38 38
     {
39
-        $this->specify('verify serviceProvider is registered', function () {
39
+        $this->specify('verify serviceProvider is registered', function() {
40 40
             $service = $this->app->make(OAuth2Service::class);
41 41
             verify($service)->isInstanceOf(OAuth2Service::class);
42 42
         });
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function testAssertFacade()
49 49
     {
50
-        $this->specify('verify serviceProvider facade', function () {
50
+        $this->specify('verify serviceProvider facade', function() {
51 51
             verify(OAuth2Facade::getFacadeRoot())->isInstanceOf(OAuth2Service::class);
52 52
         });
53 53
     }
Please login to merge, or discard this patch.
tests/unit/_bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 // Here you can initialize variables that will be available to your tests
3 3
 
4
-require_once __DIR__ . '/../_support/Mock/MockApplication.php';
4
+require_once __DIR__.'/../_support/Mock/MockApplication.php';
Please login to merge, or discard this patch.