Skip to content

Closing Braces can sometimes be misaligned on fix #6

@d4mation

Description

@d4mation
/**
 * Tests that get_instructor_list() returns the expected output.
 *
 * @return void
 */
public function test_get_instructor_list(): void {
	// Arrange.

	// Act.

	$response = $this->instance->get_instructor_list( new WP_REST_Request() );

	// Assert.

	if ( is_wp_error( $response ) ) {
		$this->fail( $response->get_error_message() );
	}

	if ( ! $response instanceof WP_REST_Response ) {
		$this->fail( 'Something caused neither a WP_Error or a WP_REST_Response object to be returned' );
	}
		
}

Will currently result in this:

/**
 * Tests that get_instructor_list() returns the expected output.
 *
 * @return void
 */
public function test_get_instructor_list(): void {
	// Arrange.

	// Act.

	$response = $this->instance->get_instructor_list( new WP_REST_Request() );

	// Assert.

	if ( is_wp_error( $response ) ) {
		$this->fail( $response->get_error_message() );
	}

	if ( ! $response instanceof WP_REST_Response ) {
		$this->fail( 'Something caused neither a WP_Error or a WP_REST_Response object to be returned' );
	}   }

Somehow, that tab is being converted to spaces and causing a misalignment. Need to investigate further.

Note: This happens both on v1.1.1 and v1.1.2 and possibly older versions. This may have always been an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions