Skip to content

Commit 94725d8

Browse files
committed
💚 style CI feedback
1 parent 4507042 commit 94725d8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

‎src/Concerns/Resource/ConfiguresRestParameters.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ public function getFields(\Lomkit\Rest\Http\Requests\RestRequest $request): arra
4141
}
4242

4343
/**
44-
* Verify the field is correct including nested relations
44+
* Verify the field is correct including nested relations.
4545
*
4646
* @param string $field
47+
*
4748
* @return bool
4849
*/
4950
public function isNestedField(string $field, Relation $relation = null)
5051
{
51-
if (Str::contains($field ,'.')) {
52-
52+
if (Str::contains($field, '.')) {
5353
// In case we are on a pivot we look for the relation pivot fields
5454
if (Str::before($field, '.') === 'pivot') {
5555
return method_exists($relation, 'getPivotFields') && in_array(Str::after($field, '.'), $relation->getPivotFields());

‎src/Rules/IsNestedField.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Closure;
66
use Illuminate\Contracts\Validation\ValidationRule;
7-
use Illuminate\Contracts\Validation\ValidatorAwareRule;
87
use Illuminate\Validation\Validator;
98
use Lomkit\Rest\Http\Requests\RestRequest;
109
use Lomkit\Rest\Http\Resource;

0 commit comments

Comments
 (0)