@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php namespace Nord\Lumen\OAuth2\Eloquent\Storages; |
2 | 2 | |
3 | 3 | use Carbon\Carbon; |
4 | -use Illuminate\Support\Facades\Log; |
|
5 | 4 | use League\OAuth2\Server\Entity\RefreshTokenEntity; |
6 | 5 | use League\OAuth2\Server\Storage\RefreshTokenInterface; |
7 | 6 | use Nord\Lumen\OAuth2\Eloquent\Models\AccessToken; |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('oauth_access_tokens', function (Blueprint $table) { |
|
16 | + Schema::create('oauth_access_tokens', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('session_id')->unsigned(); |
19 | 19 | $table->string('token'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('oauth_sessions', function (Blueprint $table) { |
|
16 | + Schema::create('oauth_sessions', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('client_id')->unsigned(); |
19 | 19 | $table->string('owner_type'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('oauth_clients', function (Blueprint $table) { |
|
16 | + Schema::create('oauth_clients', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('key')->unique(); |
19 | 19 | $table->string('secret'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('oauth_refresh_tokens', function (Blueprint $table) { |
|
16 | + Schema::create('oauth_refresh_tokens', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('access_token_id')->unsigned(); |
19 | 19 | $table->string('token'); |
@@ -30,23 +30,23 @@ |
||
30 | 30 | */ |
31 | 31 | protected function registerContainerBindings(Container $container) |
32 | 32 | { |
33 | - $container->bind(AccessTokenStorage::class, function () { |
|
33 | + $container->bind(AccessTokenStorage::class, function() { |
|
34 | 34 | return new AccessTokenStorage; |
35 | 35 | }); |
36 | 36 | |
37 | - $container->bind(ClientStorage::class, function () { |
|
37 | + $container->bind(ClientStorage::class, function() { |
|
38 | 38 | return new ClientStorage; |
39 | 39 | }); |
40 | 40 | |
41 | - $container->bind(RefreshTokenStorage::class, function () { |
|
41 | + $container->bind(RefreshTokenStorage::class, function() { |
|
42 | 42 | return new RefreshTokenStorage; |
43 | 43 | }); |
44 | 44 | |
45 | - $container->bind(ScopeStorage::class, function () { |
|
45 | + $container->bind(ScopeStorage::class, function() { |
|
46 | 46 | return new ScopeStorage; |
47 | 47 | }); |
48 | 48 | |
49 | - $container->bind(SessionStorage::class, function () { |
|
49 | + $container->bind(SessionStorage::class, function() { |
|
50 | 50 | return new SessionStorage; |
51 | 51 | }); |
52 | 52 |
@@ -42,7 +42,7 @@ |
||
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 |
@@ -9,7 +9,6 @@ |
||
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; |
@@ -6,7 +6,6 @@ |
||
6 | 6 | // @codingStandardsIgnoreFile |
7 | 7 | |
8 | 8 | use Codeception\Module\Asserts; |
9 | -use Helper\Unit; |
|
10 | 9 | |
11 | 10 | trait UnitTesterActions |
12 | 11 | { |
@@ -20,7 +20,7 @@ |
||
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 | } |