From 937671d5d6ee3786578c892c73b31000b065c767 Mon Sep 17 00:00:00 2001 From: Greg Marshall Date: Tue, 27 Feb 2024 15:38:56 -0600 Subject: [PATCH] phpcs --- src/class-block-converter.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/class-block-converter.php b/src/class-block-converter.php index a47a2f4..af41919 100644 --- a/src/class-block-converter.php +++ b/src/class-block-converter.php @@ -97,7 +97,7 @@ public function __call( $name, $arguments ): ?Block { 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' => $this->h( $arguments[0] ), 'p', 'a', 'abbr', 'b', 'code', 'em', 'i', 'strong', 'sub', 'sup', 'span', 'u' => $this->p( $arguments[0] ), 'br', 'cite', 'source' => null, - 'hr' => $this->separator( $arguments[0] ), + 'hr' => $this->separator(), default => $this->html( $arguments[0] ), }; } @@ -241,10 +241,9 @@ protected function ol( DOMNode $node ): Block { /** * Create separator blocks. * - * @param DOMNode $node The node. * @return Block */ - protected function separator( DOMNode $node ): Block { + protected function separator(): Block { return new Block( block_name: 'separator', content: '
'