Skip to content

Commit

Permalink
cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Aug 18, 2022
1 parent 932e94a commit ed39520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ Start by creating a class::
return $entity;
}

public function restore(Model $m)
public function restore(Model $entity)
{
$m->assertIsLoaded();
$entity->assertIsLoaded();

$id = $entity->getId();
if ($entity->hook('beforeRestore') === false) {
Expand Down

0 comments on commit ed39520

Please sign in to comment.