@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | $degreesOfFreedom = count($targets) - ($this->center ? 2 : 1); |
54 | 54 | |
55 | - return array_map(function (float $correlation) use ($degreesOfFreedom): float { |
|
55 | + return array_map(function(float $correlation) use ($degreesOfFreedom): float { |
|
56 | 56 | return $correlation ** 2 / (1 - $correlation ** 2) * $degreesOfFreedom; |
57 | 57 | }, $correlations); |
58 | 58 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | private function centerTargets(array &$targets): void |
61 | 61 | { |
62 | 62 | $mean = Mean::arithmetic($targets); |
63 | - array_walk($targets, function (&$target) use ($mean): void { |
|
63 | + array_walk($targets, function(&$target) use ($mean): void { |
|
64 | 64 | $target -= $mean; |
65 | 65 | }); |
66 | 66 | } |