diff --git a/src/Traits/TButtonRenderer.php b/src/Traits/TButtonRenderer.php index 5f32e9e1..344b81f1 100644 --- a/src/Traits/TButtonRenderer.php +++ b/src/Traits/TButtonRenderer.php @@ -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];