From 5923f4ad68230f43f4b81b5a58ab2de8847655ca Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 11 Jun 2012 10:19:32 +0200 Subject: [PATCH 1/2] [feature/consistent-file-endings] Remove remaining ?> from PHP files. --- phpseclib/Crypt/Random.php | 1 - phpseclib/Net/SSH1.php | 1 - 2 files changed, 2 deletions(-) diff --git a/phpseclib/Crypt/Random.php b/phpseclib/Crypt/Random.php index eb3db992..3e14edd9 100644 --- a/phpseclib/Crypt/Random.php +++ b/phpseclib/Crypt/Random.php @@ -140,4 +140,3 @@ function crypt_random($min = 0, $max = 0x7FFFFFFF) extract(unpack('Nrandom', $crypto->encrypt("\0\0\0\0"))); return abs($random) % ($max - $min) + $min; } -?> \ No newline at end of file diff --git a/phpseclib/Net/SSH1.php b/phpseclib/Net/SSH1.php index efe23fe2..9c5ced0c 100644 --- a/phpseclib/Net/SSH1.php +++ b/phpseclib/Net/SSH1.php @@ -1415,4 +1415,3 @@ class Net_SSH1 { return rtrim($this->server_identification); } } -?> From eb64dfef7db5147bcf34c502a3312a445b10607b Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 11 Jun 2012 10:34:07 +0200 Subject: [PATCH 2/2] [feature/consistent-file-endings] Make sure files have empty line at the end. --- phpseclib/Crypt/DES.php | 2 +- phpseclib/Crypt/Hash.php | 2 +- phpseclib/Crypt/RC4.php | 2 +- phpseclib/Crypt/RSA.php | 2 +- phpseclib/Crypt/Rijndael.php | 2 +- phpseclib/File/ANSI.php | 2 +- phpseclib/Math/BigInteger.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/phpseclib/Crypt/DES.php b/phpseclib/Crypt/DES.php index c249d6b6..2b3a0035 100644 --- a/phpseclib/Crypt/DES.php +++ b/phpseclib/Crypt/DES.php @@ -1292,4 +1292,4 @@ class Crypt_DES { } // vim: ts=4:sw=4:et: -// vim6: fdl=1: \ No newline at end of file +// vim6: fdl=1: diff --git a/phpseclib/Crypt/Hash.php b/phpseclib/Crypt/Hash.php index 5e9c55e4..9ce21b58 100644 --- a/phpseclib/Crypt/Hash.php +++ b/phpseclib/Crypt/Hash.php @@ -822,4 +822,4 @@ class Crypt_Hash { $string = substr($string, $index); return $substr; } -} \ No newline at end of file +} diff --git a/phpseclib/Crypt/RC4.php b/phpseclib/Crypt/RC4.php index 75071d9f..1f78cb1d 100644 --- a/phpseclib/Crypt/RC4.php +++ b/phpseclib/Crypt/RC4.php @@ -531,4 +531,4 @@ class Crypt_RC4 { $this->decryptStream = false; } } -} \ No newline at end of file +} diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index bf1a58f2..4e93cbe9 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -2545,4 +2545,4 @@ class Crypt_RSA { return $this->_rsassa_pss_verify($message, $signature); } } -} \ No newline at end of file +} diff --git a/phpseclib/Crypt/Rijndael.php b/phpseclib/Crypt/Rijndael.php index 6d4b21ac..4bdfc2dd 100644 --- a/phpseclib/Crypt/Rijndael.php +++ b/phpseclib/Crypt/Rijndael.php @@ -1475,4 +1475,4 @@ class Crypt_Rijndael { } // vim: ts=4:sw=4:et: -// vim6: fdl=1: \ No newline at end of file +// vim6: fdl=1: diff --git a/phpseclib/File/ANSI.php b/phpseclib/File/ANSI.php index 42e068a1..3f4d9bde 100644 --- a/phpseclib/File/ANSI.php +++ b/phpseclib/File/ANSI.php @@ -519,4 +519,4 @@ class File_ANSI { return '
' . $scrollback . '
'; } -} \ No newline at end of file +} diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 45a93554..3365418e 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -3548,4 +3548,4 @@ class Math_BigInteger { $temp = unpack('Nint', str_pad($x, 4, chr(0), STR_PAD_LEFT)); return $temp['int']; } -} \ No newline at end of file +}