I need to know if I'am allowed to use single row if-statements according to the PSR-2 Coding Style.
I've already read the docs but i couldn't find any information about that.
https://www.php-fig.org/psr/psr-1/
https://www.php-fig.org/psr/psr-2/
<?php
// This is fine
if ($expr)
{
echo $expr;
}
// This also?
if ($expr) { echo $expr; }
?>