From 18fabfd8679b8af4b3a679798856e3a38ab43266 Mon Sep 17 00:00:00 2001 From: Ben Croker Date: Fri, 3 Jan 2025 18:50:52 -0600 Subject: [PATCH] Refactoring --- .../nodes/{NodeTrait.php => CompileWithOptionsTrait.php} | 2 +- src/twigextensions/nodes/ExecuteScriptNode.php | 2 +- src/twigextensions/nodes/FragmentNode.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/twigextensions/nodes/{NodeTrait.php => CompileWithOptionsTrait.php} (97%) diff --git a/src/twigextensions/nodes/NodeTrait.php b/src/twigextensions/nodes/CompileWithOptionsTrait.php similarity index 97% rename from src/twigextensions/nodes/NodeTrait.php rename to src/twigextensions/nodes/CompileWithOptionsTrait.php index d70888a..9f791f5 100644 --- a/src/twigextensions/nodes/NodeTrait.php +++ b/src/twigextensions/nodes/CompileWithOptionsTrait.php @@ -9,7 +9,7 @@ use putyourlightson\datastar\services\SseService; use Twig\Compiler; -trait NodeTrait +trait CompileWithOptionsTrait { /** * Compiles a node with options. diff --git a/src/twigextensions/nodes/ExecuteScriptNode.php b/src/twigextensions/nodes/ExecuteScriptNode.php index c9c148c..6bc51eb 100644 --- a/src/twigextensions/nodes/ExecuteScriptNode.php +++ b/src/twigextensions/nodes/ExecuteScriptNode.php @@ -11,7 +11,7 @@ class ExecuteScriptNode extends Node { - use NodeTrait; + use CompileWithOptionsTrait; /** * @uses SseService::executeScript() diff --git a/src/twigextensions/nodes/FragmentNode.php b/src/twigextensions/nodes/FragmentNode.php index b8232af..3faf2ab 100644 --- a/src/twigextensions/nodes/FragmentNode.php +++ b/src/twigextensions/nodes/FragmentNode.php @@ -12,7 +12,7 @@ class FragmentNode extends Node { - use NodeTrait; + use CompileWithOptionsTrait; /** * @uses SseService::mergeFragments