From ed39520188db56cebc36244baff1d7288d4d9817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Thu, 18 Aug 2022 23:55:42 +0200 Subject: [PATCH] cs fixes --- docs/advanced.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced.rst b/docs/advanced.rst index c50483284c..d60f4555d6 100644 --- a/docs/advanced.rst +++ b/docs/advanced.rst @@ -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) {