Completed
Branch master (ad43d0)
by Nikita
03:06
created
src/Regression/ExponentialRegression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 			$this->resultSequence[] = $coordinate;
59 59
 		}
60 60
 
61
-		$this->equation = 'y = ' .  round($A, 2) .  '+ e^(' . round($B, 2) . 'x)';
61
+		$this->equation = 'y = ' . round($A, 2) . '+ e^(' . round($B, 2) . 'x)';
62 62
 
63 63
 		$this->push();
64 64
 	}
Please login to merge, or discard this patch.
src/Regression/PowerRegression.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@
 block discarded – undo
47 47
         $B = ($k * $this->sumIndex[1] - $this->sumIndex[2] * $this->sumIndex[0])
48 48
                 / ($k * $this->sumIndex[3] - $this->sumIndex[0] * $this->sumIndex[0]);
49 49
 
50
-        $A = exp(($this->sumIndex[2] - $B * $this->sumIndex[0])/ $k);
50
+        $A = exp(($this->sumIndex[2] - $B * $this->sumIndex[0]) / $k);
51 51
 
52 52
         foreach ($this->sourceSequence as $i => $val) {
53 53
             $coordinate = [$val[0], $A * exp($B * $val[0])];
54 54
             $this->resultSequence[] = $coordinate;
55 55
         }
56 56
 
57
-        $this->equation = 'y = ' .  round($A, 2) .  '+ x^' . round($B, 2);
57
+        $this->equation = 'y = ' . round($A, 2) . '+ x^' . round($B, 2);
58 58
 
59 59
         $this->push();
60 60
     }
Please login to merge, or discard this patch.
src/Regression/LinearRegression.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 			$this->resultSequence[] = $coordinate;
61 61
 		}
62 62
 
63
-		$this->equation = 'y = ' .  round($gradient, 1) .  'x + ' . round($intercept, 1);
63
+		$this->equation = 'y = ' . round($gradient, 1) . 'x + ' . round($intercept, 1);
64 64
 
65 65
 		$this->push();
66 66
 	}
Please login to merge, or discard this patch.
src/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 spl_autoload_register(
4
-	function ($className) {
4
+	function($className) {
5 5
 		$className = ltrim($className, '\\');
6 6
 		$fileName = '';
7 7
 		if ($lastNsPos = strripos($className, '\\')) {
Please login to merge, or discard this patch.