Skip to content

Commit

Permalink
Remove unusued parameter $columnIndex
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
  • Loading branch information
kamil-tekiela committed Dec 1, 2021
1 parent 5d645a1 commit eb97aa9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions libraries/classes/Display/Results.php
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,6 @@ private function getTableHeadersForColumns(
$fieldsMeta[$i],
$sortExpression,
$sortExpressionNoDirection,
$i,
$unsortedSqlQuery,
$sessionMaxRows,
$comments,
Expand Down Expand Up @@ -1575,7 +1574,6 @@ private function getCommentForRow(array $commentsMap, FieldMetadata $fieldsMeta)
* @param FieldMetadata $fieldsMeta set of field properties
* @param array $sortExpression sort expression
* @param array $sortExpressionNoDirection sort expression without direction
* @param int $columnIndex the index of the column
* @param string $unsortedSqlQuery the unsorted sql query
* @param int $sessionMaxRows maximum rows resulted by sql
* @param string $comments comment for row
Expand All @@ -1591,7 +1589,6 @@ private function getOrderLinkAndSortedHeaderHtml(
FieldMetadata $fieldsMeta,
array $sortExpression,
array $sortExpressionNoDirection,
$columnIndex,
$unsortedSqlQuery,
$sessionMaxRows,
$comments,
Expand Down
6 changes: 1 addition & 5 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5979,7 +5979,7 @@
<InvalidScalarArgument occurrences="1">
<code>$originalLength</code>
</InvalidScalarArgument>
<MixedArgument occurrences="89">
<MixedArgument occurrences="88">
<code>$_SESSION['tmpval']['max_rows']</code>
<code>$_SESSION['tmpval']['pos'] / $_SESSION['tmpval']['max_rows']</code>
<code>$_SESSION['tmpval']['query']</code>
Expand Down Expand Up @@ -6019,7 +6019,6 @@
<code>$expr-&gt;alias</code>
<code>$field-&gt;table</code>
<code>$geometryText</code>
<code>$i</code>
<code>$isFieldTruncated</code>
<code>$isFieldTruncated</code>
<code>$isFieldTruncated</code>
Expand Down Expand Up @@ -6398,9 +6397,6 @@
<TypeDoesNotContainType occurrences="1">
<code>is_array($map)</code>
</TypeDoesNotContainType>
<UnusedParam occurrences="1">
<code>$columnIndex</code>
</UnusedParam>
<UnusedVariable occurrences="1">
<code>$key</code>
</UnusedVariable>
Expand Down

0 comments on commit eb97aa9

Please sign in to comment.