I get this message with PHP Code Sniffer:
Expected "if (...)\n"; found "if (...)"
My code:
<?php if ($user->authorise('core.admin')): ?>
<li><a href="<?php echo $this->baseurl; ?>/index.php?option=com_affiliates&view=config"><?php echo JText::_('COM_AFFILIATES_LINK_GLOBAL_CONFIG'); ?></a></li>
<?php endif; ?>