Skip to content

Commit 4750e0f

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents 7f22369 + 1c7aab1 commit 4750e0f

3 files changed

Lines changed: 7 additions & 14 deletions

File tree

libraries/classes/Display/Results.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3616,12 +3616,11 @@ private function getOffsets()
36163616
*
36173617
* @see getTable()
36183618
*
3619-
* @param ResultInterface $dtResult the link id associated to the
3620-
* query which results have to
3621-
* be displayed
3622-
* @param string $sortExpressionNoDirection sort expression without direction
3619+
* @param ResultInterface $dtResult the link id associated to the query
3620+
* which results have to be displayed
3621+
* @param string|null $sortExpressionNoDirection sort expression without direction
36233622
*
3624-
* @return string|null html content, null if not found sorted column
3623+
* @return string
36253624
*/
36263625
private function getSortedColumnMessage(
36273626
ResultInterface $dtResult,
@@ -3630,7 +3629,7 @@ private function getSortedColumnMessage(
36303629
$fieldsMeta = $this->properties['fields_meta']; // To use array indexes
36313630

36323631
if (empty($sortExpressionNoDirection)) {
3633-
return null;
3632+
return '';
36343633
}
36353634

36363635
if (! str_contains($sortExpressionNoDirection, '.')) {
@@ -3655,7 +3654,7 @@ private function getSortedColumnMessage(
36553654
}
36563655

36573656
if ($sortedColumnIndex === false) {
3658-
return null;
3657+
return '';
36593658
}
36603659

36613660
// fetch first row of the result set

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,7 @@
6060
},
6161
"scripts": {
6262
"postinstall": "yarn run build",
63-
<<<<<<< HEAD
6463
"build": "webpack",
65-
=======
66-
"build": "yarn run css-compile --style=compressed && yarn run css-prefix && yarn run css-rtl && yarn run js-compile",
67-
"css-compile": "sass themes/pmahomme/scss:themes/pmahomme/css themes/original/scss:themes/original/css themes/metro/scss:themes/metro/css themes/bootstrap/scss:themes/bootstrap/css setup/scss:setup",
68-
>>>>>>> QA_5_2
6964
"css-lint": "stylelint -s scss \"themes/**/scss/*.scss\" \"setup/scss/*.scss\"",
7065
"js-lint": "eslint js/src test/javascript test/jest jest.config.js",
7166
"test": "jest"

psalm-baseline.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6350,9 +6350,8 @@
63506350
<PossiblyNullArrayAccess occurrences="1">
63516351
<code>$firstStatement-&gt;order[$key]</code>
63526352
</PossiblyNullArrayAccess>
6353-
<PossiblyNullOperand occurrences="2">
6353+
<PossiblyNullOperand occurrences="1">
63546354
<code>$dispval</code>
6355-
<code>$this-&gt;getSortedColumnMessage($dtResult, $sortExpressionNoDirection[$i])</code>
63566355
</PossiblyNullOperand>
63576356
<RedundantCast occurrences="3">
63586357
<code>(int) $GLOBALS['cfg']['LimitChars']</code>

0 commit comments

Comments
 (0)