Skip to content

Commit

Permalink
fix: Static analysis findings
Browse files Browse the repository at this point in the history
  • Loading branch information
famoser committed Jul 23, 2024
1 parent 674ca6a commit ec13c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function measure(array $rows, array $columnSizes, float $gap, float $perp

$minHeight = max($minHeight, $measuredColumnFirstRow->getMinHeight());

$averageDimension = 0.0;
$measuredColumn = $this->measureColumn($rows, $columnIndex, $measuredColumnFirstRow, $averageDimension);
$totalDimensions += $averageDimension;
$totalWeight += $measuredColumn->getWeight();
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/TransformationMatrixCalculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private static function LUDecompose(array $matrix): array
// Find pivot and exchange if necessary.
$p = $j;
for ($i = $j + 1; $i < 3; ++$i) {
if (abs($LUcolj[$i] ?? 0) > abs($LUcolj[$p] ?? 0)) {
if (abs($LUcolj[$i]) > abs($LUcolj[$p])) {
$p = $i;
}
}
Expand Down

0 comments on commit ec13c37

Please sign in to comment.