Shorten ternary expressions in RawAction.php

Change-Id: Idc9e74344989bf1394e05ebaf23cfd9a8fb38e1a
Merge "Shorten ternary expressions in RawAction.php"