From 75771ae0964dce683d4c8e45bbfc5f65b6d97c6e Mon Sep 17 00:00:00 2001 From: Mark Rogoyski Date: Fri, 30 Dec 2022 22:32:28 -0800 Subject: [PATCH] Minor formating improvements. --- tests/Statistics/SignificanceTest.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/Statistics/SignificanceTest.php b/tests/Statistics/SignificanceTest.php index e6502697a..01c7c9b6c 100644 --- a/tests/Statistics/SignificanceTest.php +++ b/tests/Statistics/SignificanceTest.php @@ -681,12 +681,19 @@ public function testChiSquaredTestExceptionCountsDiffer() * @test Issue 458 regression test - Division-by-zero error in t-test * https://github.com/markrogoyski/math-php/issues/458 */ - public function testIssue458(): void { + public function testIssue458(): void + { // Given $values = []; - for ($i=0; $i < 95; $i++) {$values[] = 1;} - for ($i=0; $i < 5; $i++) {$values[] = 0.5;} - for ($i=0; $i < 12; $i++) {$values[] = 0;} + for ($i = 0; $i < 95; $i++) { + $values[] = 1; + } + for ($i = 0; $i < 5; $i++) { + $values[] = 0.5; + } + for ($i = 0; $i < 12; $i++) { + $values[] = 0; + } // When $tTest = Significance::tTest($values, 0.569);