Skip to content

Commit

Permalink
style: fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-frey authored and github-actions[bot] committed Jun 27, 2024
1 parent 44e8a68 commit 83dc055
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Ancestor.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getRelationship(Model $record)
return $record->{Str::plural($this->getRelationshipName())}();
}

if ($record->relationResolver($record::class, $this->getRelationshipName()) ){
if ($record->relationResolver($record::class, $this->getRelationshipName())) {
return $record->{$this->getRelationshipName()}();
}

Expand All @@ -55,10 +55,10 @@ public function getInverseRelationship(Model $record): ?Relation
return $record->{$this->getInverseRelationshipName()}();
}

if ($record->relationResolver($record::class, $this->getInverseRelationshipName()) != null){
if ($record->relationResolver($record::class, $this->getInverseRelationshipName()) != null) {
return $record->{$this->getInverseRelationshipName()}();
}

return null;
}

Expand Down

0 comments on commit 83dc055

Please sign in to comment.