Skip to content

Commit

Permalink
Apply style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
railken authored and actions-user committed Mar 28, 2024
1 parent 05f91da commit f3b232e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
},
"require-dev": {
"orchestra/testbench": "*",
"amethyst/foo": "0.3.*"
"amethyst/foo": "0.3.*",
"friendsofphp/php-cs-fixer": "^3.52"
},
"autoload": {
"psr-4" : {
Expand Down
2 changes: 1 addition & 1 deletion src/Relations/BelongsTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function define(RelationSchema $relationSchema)
$method = $this->getName();

return $model->$method(
$target,
$target,
$foreignKey
);
});
Expand Down
2 changes: 1 addition & 1 deletion src/Services/RelationSchemaService.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function unset(RelationSchema $relation, string $oldName = null)

$name = $oldName ? $oldName : $relation->name;

$model::resolveRelationUsing($name, function($model) {
$model::resolveRelationUsing($name, function ($model) {
return null;
});

Expand Down

0 comments on commit f3b232e

Please sign in to comment.