Make WordPress Core

Ticket #56791: 56791-fix-indentation-of-multi-line-chained-method-call.patch

File 56791-fix-indentation-of-multi-line-chained-method-call.patch, 971 bytes (added by jrf, 17 months ago)

Again, very small fix, should still be made ;-)

  • tests/phpunit/tests/rest-api/rest-server.php

    From b0b72f6e7eb67f9940fd250cf8d9ee6543edb75b Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Fri, 22 Jul 2022 16:22:51 +0200
    Subject: [PATCH] CS: fix indentation of multi-line chained method calls
    
    ---
     tests/phpunit/tests/rest-api/rest-server.php | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/tests/phpunit/tests/rest-api/rest-server.php b/tests/phpunit/tests/rest-api/rest-server.php
    index 06beab745a..8788a72445 100644
    a b class Tests_REST_Server extends WP_Test_REST_TestCase { 
    593593
    594594        public function test_json_error_with_status() {
    595595                $stub = $this->getMockBuilder( 'Spy_REST_Server' )
    596                                         ->setMethods( array( 'set_status' ) )
    597                                         ->getMock();
     596                        ->setMethods( array( 'set_status' ) )
     597                        ->getMock();
    598598
    599599                $stub->expects( $this->once() )
    600600                        ->method( 'set_status' )