================================== Rule ``ternary_to_elvis_operator`` ================================== Use the Elvis operator ``?:`` where possible. Warning ------- Using this rule is risky ~~~~~~~~~~~~~~~~~~~~~~~~ Risky when relying on functions called on both sides of the ``?`` operator. Examples -------- Example #1 ~~~~~~~~~~ .. code-block:: diff --- Original +++ New `_ - `@Symfony:risky <./../../ruleSets/SymfonyRisky.rst>`_