From 870886d04c748e0e17c9372fe2881d1b6cf98419 Mon Sep 17 00:00:00 2001 From: Paul Bearne Date: Mon, 13 Nov 2023 17:36:26 -0500 Subject: [PATCH] Update wpFindHierarchyLoopTortoiseHare.php White space --- .../wpFindHierarchyLoopTortoiseHare.php | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/tests/functions/wpFindHierarchyLoopTortoiseHare.php b/tests/phpunit/tests/functions/wpFindHierarchyLoopTortoiseHare.php index 264d6e65b9bd0..2889033b98582 100644 --- a/tests/phpunit/tests/functions/wpFindHierarchyLoopTortoiseHare.php +++ b/tests/phpunit/tests/functions/wpFindHierarchyLoopTortoiseHare.php @@ -14,7 +14,9 @@ class Tests_Functions_wpFindHierarchyLoopTortoiseHare extends WP_UnitTestCase { */ public function test_wp_find_hierarchy_loop_tortoise_hare() { - $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { return 1; }, 1 ); + $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { + return 1; + }, 1 ); $this->assertEquals( 1, $result ); } @@ -23,7 +25,9 @@ public function test_wp_find_hierarchy_loop_tortoise_hare() { */ public function test_wp_find_hierarchy_loop_tortoise_hare_2() { - $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { return 2; }, 1 ); + $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { + return 2; + }, 1 ); $this->assertEquals( 2, $result ); } /** @@ -31,8 +35,13 @@ public function test_wp_find_hierarchy_loop_tortoise_hare_2() { */ public function test_wp_find_hierarchy_loop_tortoise_hare_return_loop() { - $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { return 2; }, 1, array(), array(), true ); - $expected = array( 1 => true, 2 => true ); + $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { + return 2; + }, 1, array(), array(), true ); + $expected = array( + 1 => true, + 2 => true, + ); $this->assertSame( $expected, $result ); } @@ -41,7 +50,9 @@ public function test_wp_find_hierarchy_loop_tortoise_hare_return_loop() { */ public function test_wp_find_hierarchy_loop_tortoise_hare_return_loop_2() { - $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { return 1; }, 1, array(), array(), true ); + $result = wp_find_hierarchy_loop_tortoise_hare( static function ( $id ) { + return 1; + }, 1, array(), array(), true ); $expected = array( 1 => true ); $this->assertSame( $expected, $result ); }