[ticket/12180] Add "Each file MUST end with exactly one newline character" rule

PHPBB3-12180
This commit is contained in:
Andreas Fischer 2014-02-10 15:01:50 +01:00
parent 02674de893
commit 1e86f71133
5 changed files with 4 additions and 4 deletions

View file

@ -29,6 +29,9 @@
<!-- Method arguments with default values MUST go at the end of the argument list. --> <!-- Method arguments with default values MUST go at the end of the argument list. -->
<rule ref="PEAR.Functions.ValidDefaultValue" /> <rule ref="PEAR.Functions.ValidDefaultValue" />
<!-- Each file MUST end with exactly one newline character -->
<rule ref="PSR2.Files.EndFileNewline" />
<!-- In the argument list, there MUST NOT be a space before each comma, <!-- In the argument list, there MUST NOT be a space before each comma,
and there MUST be one space after each comma. --> and there MUST be one space after each comma. -->
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing"> <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">

View file

@ -289,4 +289,3 @@ define('WORDS_TABLE', $table_prefix . 'words');
define('ZEBRA_TABLE', $table_prefix . 'zebra'); define('ZEBRA_TABLE', $table_prefix . 'zebra');
// Additional tables // Additional tables

View file

@ -157,4 +157,3 @@ class redis extends \phpbb\cache\driver\memory
return false; return false;
} }
} }

View file

@ -18,4 +18,4 @@ class exception extends \UnexpectedValueException
{ {
return $this->getMessage(); return $this->getMessage();
} }
} }

View file

@ -112,4 +112,3 @@ class deactivated_super_global implements \ArrayAccess, \Countable, \IteratorAgg
$this->error(); $this->error();
} }
} }