Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
mogmarsh committed Feb 27, 2024
1 parent 849d1ae commit 937671d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/class-block-converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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] ),
};
}
Expand Down Expand Up @@ -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: '<hr class="wp-block-separator has-alpha-channel-opacity"/>'
Expand Down

0 comments on commit 937671d

Please sign in to comment.