Skip to content

Commit

Permalink
CS: remove redundant ignore annotations [2] / not needed
Browse files Browse the repository at this point in the history
Remove ignore annotations which are unnecessary due to the configuration in the `phpcs.xml.dist` ruleset already taking care of this.
  • Loading branch information
jrfnl committed Oct 5, 2023
1 parent 8774d78 commit bb84e92
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/wp-includes/class-wp-block-parser-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class WP_Block_Parser_Block {
* @since 5.0.0
* @var string
*/
public $blockName; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
public $blockName;

/**
* Optional set of attributes from block comment delimiters
Expand All @@ -40,7 +40,7 @@ class WP_Block_Parser_Block {
* @since 5.0.0
* @var WP_Block_Parser_Block[]
*/
public $innerBlocks; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
public $innerBlocks;

/**
* Resultant HTML from inside block comment delimiters
Expand All @@ -51,7 +51,7 @@ class WP_Block_Parser_Block {
* @since 5.0.0
* @var string
*/
public $innerHTML; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
public $innerHTML;

/**
* List of string fragments and null markers where inner blocks were found
Expand All @@ -65,7 +65,7 @@ class WP_Block_Parser_Block {
* @since 4.2.0
* @var array
*/
public $innerContent; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
public $innerContent;

/**
* Constructor.
Expand All @@ -81,10 +81,10 @@ class WP_Block_Parser_Block {
* @param array $inner_content List of string fragments and null markers where inner blocks were found.
*/
public function __construct( $name, $attrs, $inner_blocks, $inner_html, $inner_content ) {
$this->blockName = $name; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
$this->blockName = $name;
$this->attrs = $attrs;
$this->innerBlocks = $inner_blocks; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
$this->innerHTML = $inner_html; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
$this->innerContent = $inner_content; // phpcs:ignore WordPress.NamingConventions.ValidVariableName
$this->innerBlocks = $inner_blocks;
$this->innerHTML = $inner_html;
$this->innerContent = $inner_content;
}
}

0 comments on commit bb84e92

Please sign in to comment.