Skip to content

Commit

Permalink
Codesniffer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elring authored and Pavel Janda committed Feb 15, 2022
1 parent af427ff commit 71041c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Traits/TButtonRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ public function applyReplacements(Row $row, string $column): array
{
$value = $row->getValue($column);

if ((is_scalar($value) || $value === null) && isset($this->replacements[gettype($value) == 'double' ? (int)$value : $value])) {
return [true, $this->replacements[gettype($value) == 'double' ? (int)$value : $value]];
if ((is_scalar($value) || $value === null) &&
isset($this->replacements[gettype($value) === 'double' ? (int) $value : $value])) {
return [true, $this->replacements[gettype($value) === 'double' ? (int) $value : $value]];
}

return [false, null];
Expand Down

0 comments on commit 71041c5

Please sign in to comment.