From 71041c594cab54a4152f1b46791be46fb127fd49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanislav=20K=C5=99=C3=AD=C5=BE?= Date: Tue, 15 Feb 2022 10:49:50 +0100 Subject: [PATCH] Codesniffer fix --- src/Traits/TButtonRenderer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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];