Skip to content

Commit 21ff8cb

Browse files
committed
Merge pull request #476 from lucadegasperi/psr2
Add better PSR-2 support
2 parents 4ba2825 + 97a94a4 commit 21ff8cb

File tree

59 files changed

+983
-394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+983
-394
lines changed

.php_cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
$header = <<<EOF
4+
This file is part of OAuth 2.0 Laravel.
5+
6+
(c) Luca Degasperi <[email protected]>
7+
8+
For the full copyright and license information, please view the LICENSE
9+
file that was distributed with this source code.
10+
EOF;
11+
12+
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
13+
14+
$finder = Symfony\CS\Finder\DefaultFinder::create()
15+
->in(__DIR__);
16+
17+
return Symfony\CS\Config\Config::create()
18+
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
19+
->fixers([
20+
'short_array_syntax',
21+
'header_comment',
22+
'-psr0'
23+
])
24+
->finder($finder);

.styleci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
preset: psr2
2+
3+
enabled:
4+
- short_array_syntax
5+
6+
disabled:
7+
- psr0

config/oauth2.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of OAuth 2.0 Laravel.
5+
*
6+
* (c) Luca Degasperi <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
return [
413

514
/*

database/migrations/2014_04_24_110151_create_oauth_scopes_table.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
<?php
22

3+
/*
4+
* This file is part of OAuth 2.0 Laravel.
5+
*
6+
* (c) Luca Degasperi <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Illuminate\Database\Schema\Blueprint;
413
use LucaDegasperi\OAuth2Server\Support\AbstractMigration;
514

15+
/**
16+
* This is the create oauth scopes table migration class.
17+
*
18+
* @author Luca Degasperi <[email protected]>
19+
*/
620
class CreateOauthScopesTable extends AbstractMigration
721
{
8-
922
/**
1023
* Run the migrations.
1124
*

database/migrations/2014_04_24_110304_create_oauth_grants_table.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
<?php
22

3+
/*
4+
* This file is part of OAuth 2.0 Laravel.
5+
*
6+
* (c) Luca Degasperi <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Illuminate\Database\Schema\Blueprint;
413
use LucaDegasperi\OAuth2Server\Support\AbstractMigration;
514

15+
/**
16+
* This is the create oauth grants table migration class.
17+
*
18+
* @author Luca Degasperi <[email protected]>
19+
*/
620
class CreateOauthGrantsTable extends AbstractMigration
721
{
8-
922
/**
1023
* Run the migrations.
1124
*

database/migrations/2014_04_24_110403_create_oauth_grant_scopes_table.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
<?php
22

3+
/*
4+
* This file is part of OAuth 2.0 Laravel.
5+
*
6+
* (c) Luca Degasperi <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Illuminate\Database\Schema\Blueprint;
413
use LucaDegasperi\OAuth2Server\Support\AbstractMigration;
514

15+
/**
16+
* This is the create oauth grant scopes table migration class.
17+
*
18+
* @author Luca Degasperi <[email protected]>
19+
*/
620
class CreateOauthGrantScopesTable extends AbstractMigration
721
{
822
/**

database/migrations/2014_04_24_110459_create_oauth_clients_table.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
<?php
22

3+
/*
4+
* This file is part of OAuth 2.0 Laravel.
5+
*
6+
* (c) Luca Degasperi <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Illuminate\Database\Schema\Blueprint;
413
use LucaDegasperi\OAuth2Server\Support\AbstractMigration;
514

15+
/**
16+
* This is the create oauth client table migration class.
17+
*
18+
* @author Luca Degasperi <[email protected]>
19+
*/
620
class CreateOauthClientsTable extends AbstractMigration
721
{
8-
922
/**
1023
* Run the migrations.
1124
*

database/migrations/2014_04_24_110557_create_oauth_client_endpoints_table.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
<?php
22

3+
/*
4+
* This file is part of OAuth 2.0 Laravel.
5+
*
6+
* (c) Luca Degasperi <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Illuminate\Database\Schema\Blueprint;
413
use LucaDegasperi\OAuth2Server\Support\AbstractMigration;
514

15+
/**
16+
* This is the create oauth client endpoints table migration class.
17+
*
18+
* @author Luca Degasperi <[email protected]>
19+
*/
620
class CreateOauthClientEndpointsTable extends AbstractMigration
721
{
8-
922
/**
1023
* Run the migrations.
1124
*

database/migrations/2014_04_24_110705_create_oauth_client_scopes_table.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
<?php
22

3+
/*
4+
* This file is part of OAuth 2.0 Laravel.
5+
*
6+
* (c) Luca Degasperi <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Illuminate\Database\Schema\Blueprint;
413
use LucaDegasperi\OAuth2Server\Support\AbstractMigration;
514

15+
/**
16+
* This is the create oauth client scopes table migration class.
17+
*
18+
* @author Luca Degasperi <[email protected]>
19+
*/
620
class CreateOauthClientScopesTable extends AbstractMigration
721
{
8-
922
/**
1023
* Run the migrations.
1124
*

database/migrations/2014_04_24_110817_create_oauth_client_grants_table.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
<?php
22

3+
/*
4+
* This file is part of OAuth 2.0 Laravel.
5+
*
6+
* (c) Luca Degasperi <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
use Illuminate\Database\Schema\Blueprint;
413
use LucaDegasperi\OAuth2Server\Support\AbstractMigration;
514

15+
/**
16+
* This is the create oauth client grants table migration class.
17+
*
18+
* @author Luca Degasperi <[email protected]>
19+
*/
620
class CreateOauthClientGrantsTable extends AbstractMigration
721
{
8-
922
/**
1023
* Run the migrations.
1124
*

0 commit comments

Comments
 (0)