mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-16 11:58:41 +00:00
Fix increment
This commit is contained in:
parent
a80224b07d
commit
7af3cb042f
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ final class Integer
|
|||
$i = 1;
|
||||
|
||||
while (!Numbers::isSquare($b2) && $i < $limit) {
|
||||
$i++;
|
||||
++$i;
|
||||
$a += 1;
|
||||
$b2 = ($a * $a - $value);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ final class Prime
|
|||
return false;
|
||||
}
|
||||
|
||||
$i++;
|
||||
++$i;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class CsvSettings
|
|||
}
|
||||
|
||||
while ($line !== false && $i < $checkLines) {
|
||||
$i++;
|
||||
++$i;
|
||||
|
||||
foreach ($delimiters as $delimiter) {
|
||||
$regExp = '/[' . $delimiter . ']/';
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ final class Permutation
|
|||
$temp = $toPermute[$i];
|
||||
$toPermute[$i] = $toPermute[$pos - 1];
|
||||
$toPermute[$pos - 1] = $temp;
|
||||
$i++;
|
||||
++$i;
|
||||
}
|
||||
|
||||
return $toPermute;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user