Skip to content

Commit 8bd9221

Browse files
binarykactions-user
authored andcommitted
Fix styling
1 parent 9141f7a commit 8bd9221

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

src/Fields/EagerField.php

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ class EagerField extends Field
3434
public function authorize(Request $request)
3535
{
3636
return call_user_func(
37-
[$this->repositoryClass, 'authorizedToUseRepository'],
38-
$request
39-
) && parent::authorize($request);
37+
[$this->repositoryClass, 'authorizedToUseRepository'],
38+
$request
39+
) && parent::authorize($request);
4040
}
4141

4242
public function resolve($repository, $attribute = null)
@@ -67,40 +67,38 @@ public function resolve($repository, $attribute = null)
6767
$field = class_basename(get_called_class());
6868
$policy = get_class(Gate::getPolicyFor($relatedModel));
6969

70-
abort(403,
71-
"You are not authorized to see the [{$class}] relationship from the {$field} field from the {$field} field. Check the [show] method from the [$policy]");
70+
abort(
71+
403,
72+
"You are not authorized to see the [{$class}] relationship from the {$field} field from the {$field} field. Check the [show] method from the [$policy]"
73+
);
7274
}
7375

7476
return $this;
7577
}
7678

77-
public
78-
function getRelation(
79+
public function getRelation(
7980
Repository $repository = null
8081
): Relation {
8182
$repository = $repository ?? $this->parentRepository;
8283

8384
return $repository->resource->{$this->relation}();
8485
}
8586

86-
public
87-
function getRelatedModel(
87+
public function getRelatedModel(
8888
Repository $repository
8989
): Model {
9090
return $this->getRelation($repository)->getRelated();
9191
}
9292

93-
public
94-
function getRelatedKey(
93+
public function getRelatedKey(
9594
Repository $repository
9695
): string {
9796
return $repository->resource->qualifyColumn(
9897
$this->getRelation($repository)->getRelated()->getForeignKey()
9998
);
10099
}
101100

102-
public
103-
function getQualifiedKey(
101+
public function getQualifiedKey(
104102
Repository $repository
105103
): string {
106104
return $this->getRelation($repository)->getRelated()->getQualifiedKeyName();

0 commit comments

Comments
 (0)