[ticket/12721] Add Generic.Functions.OpeningFunctionBraceBsdAllman

PHPBB3-12721
This commit is contained in:
Tristan Darricau 2014-06-15 21:07:24 +02:00
parent 34a4ba36cd
commit 06bf864c41
2 changed files with 6 additions and 1 deletions

View file

@ -23,6 +23,10 @@
<!-- Lowercase filenames are required. -->
<rule ref="Generic.Files.LowercasedFilename" />
<!-- Function declarations follow the "BSD/Allman style".
The function brace is on the line following the function declaration and is indented to the same column as the start of the function declaration. -->
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman" />
<!-- There MUST be exactly one space after a cast. -->
<rule ref="Generic.Formatting.SpaceAfterCast" />

View file

@ -39,7 +39,8 @@ class recursive_event_filter_iterator extends \RecursiveFilterIterator
*
* @return recursive_event_filter_iterator
*/
public function getChildren() {
public function getChildren()
{
return new self($this->getInnerIterator()->getChildren(), $this->root_path);
}