Skip to content

Commit

Permalink
Fix CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko authored and Anton Vlasenko committed Nov 16, 2023
1 parent 77e8217 commit 55c6733
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ public function test_register_block_core_post_excerpt_length_filter( $expected_w
->addMethods( [ 'excerpt_length_callback' ] )

Check warning on line 45 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Found precision alignment of 1 spaces.

Check failure on line 45 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Tabs must be used to indent lines; spaces are not allowed

Check failure on line 45 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Short array syntax is not allowed
->getMock();

Check warning on line 46 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Found precision alignment of 1 spaces.

Check failure on line 46 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Tabs must be used to indent lines; spaces are not allowed

$mock->expects( $this->atLeast( 1 ) )
$mock->expects( $this->atLeastOnce() )
->method( 'excerpt_length_callback' )

Check warning on line 49 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Found precision alignment of 1 spaces.

Check failure on line 49 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Tabs must be used to indent lines; spaces are not allowed
->with( $this->equalTo( $expected_word_length ) )

Check warning on line 50 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Found precision alignment of 1 spaces.

Check failure on line 50 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Tabs must be used to indent lines; spaces are not allowed
->willReturn( $expected_word_length );

Check warning on line 51 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Found precision alignment of 1 spaces.

Check failure on line 51 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Tabs must be used to indent lines; spaces are not allowed

add_filter('excerpt_length', [$mock, 'excerpt_length_callback'], PHP_INT_MAX );
add_filter( 'excerpt_length', [ $mock, 'excerpt_length_callback' ], PHP_INT_MAX );

Check failure on line 53 in phpunit/tests/blocks/registerBlockCorePostExcerptLengthFilter.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Short array syntax is not allowed
rest_get_server()->dispatch( $request );
remove_filter('excerpt_length', [$mock, 'excerpt_length_callback'], PHP_INT_MAX );
unset ($_REQUEST['context']);
remove_filter( 'excerpt_length', [ $mock, 'excerpt_length_callback' ], PHP_INT_MAX );
unset ( $_REQUEST['context'] );
}

public function data_register_block_core_post_excerpt_length_filter() {
Expand Down

0 comments on commit 55c6733

Please sign in to comment.