Please respect https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md and add parenthesis or replace with:
$tmpFormData[$translation->getField()] = ('checkbox' === $fields[$translation->getField()]['field_type']) ? (bool) $translation->getContent() : $translation->getContent();