Skip to content

Commit f9596bd

Browse files
committed
FOUR-14155 Sonarqube This method has 4 returns, which is more than the 3 allowed.
1 parent b131810 commit f9596bd

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ProcessMaker/Filters/Filter.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,7 @@ private function value()
186186
return $this->value . '%';
187187
}
188188

189-
if (is_numeric($this->value)) {
190-
return (float) $this->value;
191-
}
192-
193-
return $this->value;
189+
return is_numeric($this->value) ? (float) $this->value : $this->value;
194190
}
195191

196192
/**

0 commit comments

Comments
 (0)