Fix increment

This commit is contained in:
Dennis Eichhorn 2018-12-28 19:23:48 +01:00
parent a80224b07d
commit 7af3cb042f
6 changed files with 7 additions and 7 deletions

View File

@ -45,7 +45,7 @@ final class Lorenzkurve
foreach ($data as $key => $value) {
$sum1 += $i * $value;
$sum2 += $value;
$i++;
++$i;
}
return 2 * $sum1 / ($n * $sum2) - ($n + 1) / $n;

View File

@ -500,7 +500,7 @@ class Builder extends BuilderAbstract
'boolean' => $boolean[$i],
];
$i++;
++$i;
}
return $this;
@ -1244,7 +1244,7 @@ class Builder extends BuilderAbstract
'boolean' => $boolean[$i],
];
$i++;
++$i;
}
return $this;

View File

@ -164,7 +164,7 @@ final class Integer
$i = 1;
while (!Numbers::isSquare($b2) && $i < $limit) {
$i++;
++$i;
$a += 1;
$b2 = ($a * $a - $value);
}

View File

@ -173,7 +173,7 @@ final class Prime
return false;
}
$i++;
++$i;
}
return true;

View File

@ -44,7 +44,7 @@ class CsvSettings
}
while ($line !== false && $i < $checkLines) {
$i++;
++$i;
foreach ($delimiters as $delimiter) {
$regExp = '/[' . $delimiter . ']/';

View File

@ -128,7 +128,7 @@ final class Permutation
$temp = $toPermute[$i];
$toPermute[$i] = $toPermute[$pos - 1];
$toPermute[$pos - 1] = $temp;
$i++;
++$i;
}
return $toPermute;