Opening and closing braces on new lines was part of VB code standards.
Several of those coding standards (which Mike, Scott and I defined) live on in XenForo. Here's an example:
PHP:
/**
* Gets a news feed with the specified conditions.
*
* @param array $conditions
* @param integer $fetchOlderThanId If > 0, only fetches items with a lower ID than this
* @param array|null $viewingUser
*
* @return array
*/
public function getNewsFeed(array $conditions = array(), $fetchOlderThanId = 0, array $viewingUser = null)
{
$this->standardizeViewingUserReference($viewingUser);
if ($fetchOlderThanId)
{
$conditions['news_feed_id'] = array('<', $fetchOlderThanId);
}
$newsFeed = $this->getNewsFeedItems($conditions, $viewingUser['user_id']);
$newsFeed = $this->fillOutNewsFeedItems($newsFeed, $viewingUser);
$this->_cacheHandlersForNewsFeed($newsFeed);
return array(
'newsFeed' => $newsFeed,
'newsFeedHandlers' => $this->_handlerCache,
'oldestItemId' => $this->getOldestNewsFeedIdFromArray($newsFeed),
'feedEnds' => (sizeof($newsFeed) == 0) // permissions make this hard to calculate
);
}