8000 [Docs] Update docblocks and copyright notices · Hy0320/laravel-json-api@c0737ae · GitHub
[go: up one dir, main page]

Skip to content

Commit c0737ae

Browse files
committed
[Docs] Update docblocks and copyright notices
1 parent 4a74a5a commit c0737ae

File tree

5 files changed

+51
-3
lines changed

5 files changed

+51
-3
lines changed

src/Adapter/Concerns/FindsManyResources.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919

2020
use Illuminate\Support\Collection;
2121
use InvalidArgumentException;
22+
use Neomerx\JsonApi\Contracts\Document\DocumentInterface;
2223
use function is_array;
23-
use function is_null;
2424
use function is_string;
25-
use Neomerx\JsonApi\Contracts\Document\DocumentInterface;
2625

2726
/**
2827
* Trait FindsManyResources

src/Routing/RelationshipRegistration.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ public function except(string ...$except): self
7171
}
7272

7373
/**
74-
* @return RelationshipRegistration
74+
* Make the relationship read-only.
75+
*
76+
* This is a shorthand for only registering the `related` and `read` actions.
77+
*
78+
* @return $this
7579
*/
7680
public function readOnly(): self
7781
{

src/Rules/HasMany.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/**
3+
* Copyright 2019 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace CloudCreativity\LaravelJsonApi\Rules;
419

src/Rules/HasOne.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/**
3+
* Copyright 2019 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace CloudCreativity\LaravelJsonApi\Rules;
419

tests/lib/Unit/Validation/Rules/HasOneTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?php
2+
/**
3+
* Copyright 2019 Cloud Creativity Limited
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
217

318
namespace CloudCreativity\LaravelJsonApi\Tests\Unit\Validation\Rules;
419

0 commit comments

Comments
 (0)
0