diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2014-06-15 21:07:24 +0200 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-16 22:35:39 +0200 |
| commit | 06bf864c41eeb8e0232f124f5a0539cb4f788439 (patch) | |
| tree | b8b412bf6073d728f51791c375566bad4f944689 | |
| parent | 34a4ba36cd554ebd3cab1bdbb422d97a9429bd72 (diff) | |
| download | forums-06bf864c41eeb8e0232f124f5a0539cb4f788439.tar forums-06bf864c41eeb8e0232f124f5a0539cb4f788439.tar.gz forums-06bf864c41eeb8e0232f124f5a0539cb4f788439.tar.bz2 forums-06bf864c41eeb8e0232f124f5a0539cb4f788439.tar.xz forums-06bf864c41eeb8e0232f124f5a0539cb4f788439.zip | |
[ticket/12721] Add Generic.Functions.OpeningFunctionBraceBsdAllman
PHPBB3-12721
| -rw-r--r-- | build/code_sniffer/ruleset-php-legacy.xml | 4 | ||||
| -rw-r--r-- | phpBB/phpbb/event/recursive_event_filter_iterator.php | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/build/code_sniffer/ruleset-php-legacy.xml b/build/code_sniffer/ruleset-php-legacy.xml index 175a993f48..71741ce190 100644 --- a/build/code_sniffer/ruleset-php-legacy.xml +++ b/build/code_sniffer/ruleset-php-legacy.xml @@ -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" /> diff --git a/phpBB/phpbb/event/recursive_event_filter_iterator.php b/phpBB/phpbb/event/recursive_event_filter_iterator.php index f65feff448..64e2e56f6a 100644 --- a/phpBB/phpbb/event/recursive_event_filter_iterator.php +++ b/phpBB/phpbb/event/recursive_event_filter_iterator.php @@ -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); } |
