From d5ae14f6fe07e2c2050f029525664cc2d42f9376 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Sun, 25 Aug 2024 09:19:37 -0400 Subject: [PATCH] Tests: align mock.php spacing with 3.x-stable branch Closes gh-5538 --- test/data/mock.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/data/mock.php b/test/data/mock.php index 61e40c3fc..105f9867b 100644 --- a/test/data/mock.php +++ b/test/data/mock.php @@ -95,9 +95,9 @@ QUnit.assert.ok( true, "mock executed");'; } if ( isset( $req->query['array'] ) ) { - echo '[{"name":"John","age":21},{"name":"Peter","age":25}]'; + echo '[ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ]'; } else { - echo '{"data":{"lang":"en","length":25}}'; + echo '{ "data": {"lang": "en", "length": 25} }'; } } @@ -112,8 +112,8 @@ QUnit.assert.ok( true, "mock executed");'; $callback = $_POST['callback']; } $json = isset( $req->query['array'] ) ? - '[{"name":"John","age":21},{"name":"Peter","age":25}]' : - '{"data":{"lang":"en","length":25}}'; + '[ { "name": "John", "age": 21 }, { "name": "Peter", "age": 25 } ]' : + '{ "data": { "lang": "en", "length": 25 } }'; echo cleanCallback( $callback ) . '(' . $json . ')'; } -- 2.39.5