PHPCS: Fix code formatting issues.
In [44264], several code formatting issues were introduced. This fixes them. git-svn-id: https://develop.svn.wordpress.org/trunk@44266 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7134636c6b
commit
ceb5011f6a
@ -269,11 +269,13 @@ class WP_Block_Parser {
|
|||||||
*/
|
*/
|
||||||
if ( 0 === $stack_depth ) {
|
if ( 0 === $stack_depth ) {
|
||||||
if ( isset( $leading_html_start ) ) {
|
if ( isset( $leading_html_start ) ) {
|
||||||
$this->output[] = (array) self::freeform( substr(
|
$this->output[] = (array) self::freeform(
|
||||||
|
substr(
|
||||||
$this->document,
|
$this->document,
|
||||||
$leading_html_start,
|
$leading_html_start,
|
||||||
$start_offset - $leading_html_start
|
$start_offset - $leading_html_start
|
||||||
) );
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() );
|
$this->output[] = (array) new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() );
|
||||||
@ -292,13 +294,16 @@ class WP_Block_Parser {
|
|||||||
|
|
||||||
case 'block-opener':
|
case 'block-opener':
|
||||||
// track all newly-opened blocks on the stack
|
// track all newly-opened blocks on the stack
|
||||||
array_push( $this->stack, new WP_Block_Parser_Frame(
|
array_push(
|
||||||
|
$this->stack,
|
||||||
|
new WP_Block_Parser_Frame(
|
||||||
new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ),
|
new WP_Block_Parser_Block( $block_name, $attrs, array(), '', array() ),
|
||||||
$start_offset,
|
$start_offset,
|
||||||
$token_length,
|
$token_length,
|
||||||
$start_offset + $token_length,
|
$start_offset + $token_length,
|
||||||
$leading_html_start
|
$leading_html_start
|
||||||
) );
|
)
|
||||||
|
);
|
||||||
$this->offset = $start_offset + $token_length;
|
$this->offset = $start_offset + $token_length;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@ -499,11 +504,13 @@ class WP_Block_Parser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( isset( $stack_top->leading_html_start ) ) {
|
if ( isset( $stack_top->leading_html_start ) ) {
|
||||||
$this->output[] = (array) self::freeform( substr(
|
$this->output[] = (array) self::freeform(
|
||||||
|
substr(
|
||||||
$this->document,
|
$this->document,
|
||||||
$stack_top->leading_html_start,
|
$stack_top->leading_html_start,
|
||||||
$stack_top->token_start - $stack_top->leading_html_start
|
$stack_top->token_start - $stack_top->leading_html_start
|
||||||
) );
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->output[] = (array) $stack_top->block;
|
$this->output[] = (array) $stack_top->block;
|
||||||
|
Loading…
Reference in New Issue
Block a user