From 1e86f7113339c6b032a4500ce65cf959db97645a Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 10 Feb 2014 15:01:50 +0100 Subject: [PATCH] [ticket/12180] Add "Each file MUST end with exactly one newline character" rule PHPBB3-12180 --- build/code_sniffer/ruleset-php-legacy.xml | 3 +++ phpBB/includes/constants.php | 1 - phpBB/phpbb/cache/driver/redis.php | 1 - phpBB/phpbb/extension/exception.php | 2 +- phpBB/phpbb/request/deactivated_super_global.php | 1 - 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/code_sniffer/ruleset-php-legacy.xml b/build/code_sniffer/ruleset-php-legacy.xml index 247313441d..550c919b5d 100644 --- a/build/code_sniffer/ruleset-php-legacy.xml +++ b/build/code_sniffer/ruleset-php-legacy.xml @@ -29,6 +29,9 @@ + + + diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php index 374b8ff7f7..c2c7ca0abd 100644 --- a/phpBB/includes/constants.php +++ b/phpBB/includes/constants.php @@ -289,4 +289,3 @@ define('WORDS_TABLE', $table_prefix . 'words'); define('ZEBRA_TABLE', $table_prefix . 'zebra'); // Additional tables - diff --git a/phpBB/phpbb/cache/driver/redis.php b/phpBB/phpbb/cache/driver/redis.php index 3c6cb0e138..2b6f9bf36d 100644 --- a/phpBB/phpbb/cache/driver/redis.php +++ b/phpBB/phpbb/cache/driver/redis.php @@ -157,4 +157,3 @@ class redis extends \phpbb\cache\driver\memory return false; } } - diff --git a/phpBB/phpbb/extension/exception.php b/phpBB/phpbb/extension/exception.php index b1f4997fdd..82327c9d5e 100644 --- a/phpBB/phpbb/extension/exception.php +++ b/phpBB/phpbb/extension/exception.php @@ -18,4 +18,4 @@ class exception extends \UnexpectedValueException { return $this->getMessage(); } -} \ No newline at end of file +} diff --git a/phpBB/phpbb/request/deactivated_super_global.php b/phpBB/phpbb/request/deactivated_super_global.php index b03624593e..b6940cf51f 100644 --- a/phpBB/phpbb/request/deactivated_super_global.php +++ b/phpBB/phpbb/request/deactivated_super_global.php @@ -112,4 +112,3 @@ class deactivated_super_global implements \ArrayAccess, \Countable, \IteratorAgg $this->error(); } } -