Completed
Pull Request — master (#319)
by Arkadiusz
399:41 queued 36:00
created
src/FeatureSelection/ScoringFunction/UnivariateLinearRegression.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.