From c6acd786d3962bdac477585804be949ebf3e594d Mon Sep 17 00:00:00 2001 From: tg666 Date: Tue, 29 Nov 2022 04:45:37 +0100 Subject: [PATCH] Fixed indentation in the README --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 014961f..115fd3b 100644 --- a/README.md +++ b/README.md @@ -179,19 +179,19 @@ use SixtyEightPublishers\WebpackEncoreBundle\Event\RenderAssetTagEvent; final class ScriptNonceSubscriber implements EventSubscriberInterface { - public static function getSubscribedEvents() - { - return [ - RenderAssetTagEvent::class => 'onRenderAssetTag', - ]; - } - - public function onRenderAssetTag(RenderAssetTagEvent $event): void - { - if ($event->isScriptTag()) { - $event->setAttribute('nonce', 'lookup nonce'); - } - } + public static function getSubscribedEvents() + { + return [ + RenderAssetTagEvent::class => 'onRenderAssetTag', + ]; + } + + public function onRenderAssetTag(RenderAssetTagEvent $event): void + { + if ($event->isScriptTag()) { + $event->setAttribute('nonce', 'lookup nonce'); + } + } } ```