Skip to content

Commit 3169c30

Browse files
committed
add LICENSE
style-fix
1 parent bdf9426 commit 3169c30

36 files changed

+142
-40
lines changed

.php_cs.dist

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ return PhpCsFixer\Config::create()
88
'header_comment' => [
99
'comment_type' => 'PHPDoc',
1010
'header' => <<<COMMENT
11-
@copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
12-
@license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
11+
@copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
12+
@license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
1313
COMMENT
1414
]
1515
])

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Insolita <[email protected]> and contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

src/ActiveJsonApiController.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal;
49

510
use insolita\fractal\actions\CreateAction;

src/DefaultTransformer.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal;
49

510
use League\Fractal\TransformerAbstract;

src/IdOnlyTransformer.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal;
49

510
use League\Fractal\TransformerAbstract;

src/JsonApiBootstrap.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal;
49

510
use yii\base\BootstrapInterface;

src/JsonApiController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal;

src/JsonApiError.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal;
49

510
use JsonSerializable;

src/JsonApiErrorHandler.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal;
49

510
use insolita\fractal\exceptions\ValidationException;

src/JsonApiResponseFormatter.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal;
49

510
use insolita\fractal\exceptions\NonJsonApiResponseException;

src/RelationshipManager.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal;

src/actions/CreateAction.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\actions;

src/actions/CreateRelationshipAction.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\actions;

src/actions/DeleteAction.php

+6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\actions;
49

510
use Yii;
611
use yii\web\ForbiddenHttpException;
712
use yii\web\ServerErrorHttpException;
13+
814
/**
915
* Handler for routes DELETE /resource/{id}
1016
* With defined parentIdParam and parentIdAttribute Handler for DELETE /resource/{parentId}/relation/{id} modelClass

src/actions/DeleteRelationshipAction.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\actions;

src/actions/HasIncludes.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\actions;
49

510
use League\Fractal\TransformerAbstract;

src/actions/HasParentAttributes.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\actions;

src/actions/HasResourceBodyParams.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\actions;
49

510
use Yii;

src/actions/HasResourceTransformer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\actions;

src/actions/JsonApiAction.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\actions;

src/actions/ListAction.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\actions;
49

510
use insolita\fractal\exceptions\ValidationException;

src/actions/UpdateAction.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\actions;

src/actions/UpdateRelationshipAction.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\actions;

src/actions/ViewAction.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\actions;
49

510
use League\Fractal\Resource\Item;

src/actions/ViewRelationshipAction.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\actions;

src/exceptions/NonJsonApiResponseException.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\exceptions;
49

510
use yii\web\ServerErrorHttpException;

src/exceptions/ValidationException.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\exceptions;
49

510
use Throwable;

src/pagination/CursorPagination.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\pagination;

src/pagination/JsonApiPaginator.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\pagination;
49

510
use League\Fractal\Pagination\PaginatorInterface;

src/providers/CursorActiveDataProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
66
*/
77

88
namespace insolita\fractal\providers;

src/providers/JsonApiActiveDataProvider.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\providers;
49

510
use insolita\fractal\actions\HasResourceTransformer;

src/providers/JsonApiArrayDataProvider.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\providers;
49

510
use insolita\fractal\actions\HasResourceTransformer;

src/providers/JsonApiDataProviderInterface.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* @copyright Copyright (c) 2020 Insolita <[email protected]> and contributors
5+
* @license https://github.com/insolita/yii2-fractal/blob/master/LICENSE
6+
*/
7+
38
namespace insolita\fractal\providers;
49

510
use League\Fractal\Resource\ResourceInterface;

tests/codeception/suites/api/ApiRelationshipsCest.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22

3-
/**
4-
* @copyright Copyright (c) 2018 Carsten Brandt <[email protected]> and contributors
5-
* @license https://github.com/cebe/yii2-openapi/blob/master/LICENSE
6-
*/
3+
74

85
namespace codeception\suites\api;
96

0 commit comments

Comments
 (0)