Fix PHPStan and PHPCS errors
This commit is contained in:
parent
f5a0225c86
commit
b49b487590
4 changed files with 12 additions and 15 deletions
|
@ -32,8 +32,10 @@ final class UpdateTalkNodeBeforeSave implements EventSubscriberInterface {
|
|||
return;
|
||||
}
|
||||
|
||||
$this->reorderEvents($event->getEntity());
|
||||
$this->updateCreatedDate($event->getEntity());
|
||||
/** @var \Drupal\custom\Entity\Node\Talk $talk */
|
||||
$talk = $event->getEntity();
|
||||
$this->reorderEvents($talk);
|
||||
$this->updateCreatedDate($talk);
|
||||
}
|
||||
|
||||
private function reorderEvents(Talk $talk): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue