================================== 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 `_ rule set will enable the ``ternary_to_elvis_operator`` rule. @Symfony:risky Using the `@Symfony:risky <./../../ruleSets/SymfonyRisky.rst>`_ rule set will enable the ``ternary_to_elvis_operator`` rule.