Skip to content

Commit ad151a5

Browse files
refactor: adhere to sonar cloud codeQL
1 parent 6c05803 commit ad151a5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/QueryDataTable.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,10 @@ protected function addTablePrefix($query, string $column): string
485485
}
486486
}
487487

488-
if (! ($prefix = $this->getTablePrefix($query))) {
489-
return $column;
490-
}
491-
492-
// Add table prefix to column
493-
return $prefix.'.'.$column;
488+
return collect([
489+
$this->getTablePrefix($query),
490+
$column,
491+
])->filter()->implode('.');
494492
}
495493

496494
/**

0 commit comments

Comments
 (0)