Skip to content

Commit 8039059

Browse files
Fan2Shrekfabpot
andauthored
Simplify ternary
Co-authored-by: Fabien Potencier <fabien@potencier.org>
1 parent c7bd705 commit 8039059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Command/LintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private function displayTxt(OutputInterface $output, SymfonyStyle $io, array $fi
208208
$io->warning(\sprintf('%d Twig files have valid syntax and %d contain errors.', \count($filesInfo) - $errors, $errors));
209209
}
210210

211-
return (empty($deprecations) && 0 === $errors) ? 0 : 1;
211+
return !$deprecations && !$errors ? 0 : 1;
212212
}
213213

214214
private function displayJson(OutputInterface $output, array $filesInfo): int

0 commit comments

Comments
 (0)