summaryrefslogtreecommitdiff
path: root/ext/bcmath
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-15 04:31:31 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-15 04:31:31 +0200
commitf1d7e3ca0b70f910fcecef0278de9c15440ca3c0 (patch)
tree70af7290bf6c0b06f223254537b502013ade302e /ext/bcmath
parentf98c916845571deeab189fb2ab52a17aef49edb8 (diff)
downloadphp-git-f1d7e3ca0b70f910fcecef0278de9c15440ca3c0.tar.gz
Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
Diffstat (limited to 'ext/bcmath')
-rw-r--r--ext/bcmath/tests/bcadd_error1.phpt2
-rw-r--r--ext/bcmath/tests/bcadd_variation001.phpt2
-rw-r--r--ext/bcmath/tests/bccomp_variation001.phpt2
-rw-r--r--ext/bcmath/tests/bccomp_variation002.phpt2
-rw-r--r--ext/bcmath/tests/bcmod_error2.phpt2
-rw-r--r--ext/bcmath/tests/bcmul_error1.phpt2
-rw-r--r--ext/bcmath/tests/bcpow_error3.phpt2
-rw-r--r--ext/bcmath/tests/bcpow_variation001.phpt2
-rw-r--r--ext/bcmath/tests/bcpowmod.phpt2
-rw-r--r--ext/bcmath/tests/bcscale_variation001.phpt2
-rw-r--r--ext/bcmath/tests/bcscale_variation002.phpt2
-rw-r--r--ext/bcmath/tests/bcsqrt_error2.phpt2
-rw-r--r--ext/bcmath/tests/bcsqrt_variation001.phpt2
-rw-r--r--ext/bcmath/tests/bcsub_error1.phpt2
14 files changed, 14 insertions, 14 deletions
diff --git a/ext/bcmath/tests/bcadd_error1.phpt b/ext/bcmath/tests/bcadd_error1.phpt
index c7d526eec7..17a4bc7944 100644
--- a/ext/bcmath/tests/bcadd_error1.phpt
+++ b/ext/bcmath/tests/bcadd_error1.phpt
@@ -9,4 +9,4 @@ bcmath.scale=0
echo bcadd();
?>
--EXPECTF--
-Warning: bcadd() expects at least 2 parameters, 0 given in %s on line %d \ No newline at end of file
+Warning: bcadd() expects at least 2 parameters, 0 given in %s on line %d
diff --git a/ext/bcmath/tests/bcadd_variation001.phpt b/ext/bcmath/tests/bcadd_variation001.phpt
index a0a64f6343..47494f7fb3 100644
--- a/ext/bcmath/tests/bcadd_variation001.phpt
+++ b/ext/bcmath/tests/bcadd_variation001.phpt
@@ -13,4 +13,4 @@ echo bcadd("-4.27", "7.3");
--EXPECTF--
6.50
-5.1
-3.03000 \ No newline at end of file
+3.03000
diff --git a/ext/bcmath/tests/bccomp_variation001.phpt b/ext/bcmath/tests/bccomp_variation001.phpt
index 456f235ef7..9aaad7e52b 100644
--- a/ext/bcmath/tests/bccomp_variation001.phpt
+++ b/ext/bcmath/tests/bccomp_variation001.phpt
@@ -13,4 +13,4 @@ echo bccomp("2.29", "2.3", "2");
--EXPECTF--
0
1
--1 \ No newline at end of file
+-1
diff --git a/ext/bcmath/tests/bccomp_variation002.phpt b/ext/bcmath/tests/bccomp_variation002.phpt
index 73fbc82179..cc66b6dad7 100644
--- a/ext/bcmath/tests/bccomp_variation002.phpt
+++ b/ext/bcmath/tests/bccomp_variation002.phpt
@@ -13,4 +13,4 @@ echo bccomp("-2.29", "-2.3", "2");
--EXPECTF--
0
-1
-1 \ No newline at end of file
+1
diff --git a/ext/bcmath/tests/bcmod_error2.phpt b/ext/bcmath/tests/bcmod_error2.phpt
index bac49c8e92..714615d7d1 100644
--- a/ext/bcmath/tests/bcmod_error2.phpt
+++ b/ext/bcmath/tests/bcmod_error2.phpt
@@ -9,4 +9,4 @@ bcmath.scale=0
echo bcmod("10", "0");
?>
--EXPECTF--
-Warning: bcmod(): Division by zero in %s on line %d \ No newline at end of file
+Warning: bcmod(): Division by zero in %s on line %d
diff --git a/ext/bcmath/tests/bcmul_error1.phpt b/ext/bcmath/tests/bcmul_error1.phpt
index ec366336c2..8d67b98971 100644
--- a/ext/bcmath/tests/bcmul_error1.phpt
+++ b/ext/bcmath/tests/bcmul_error1.phpt
@@ -9,4 +9,4 @@ bcmath.scale=0
echo bcmul();
?>
--EXPECTF--
-Warning: bcmul() expects at least 2 parameters, 0 given in %s on line %d \ No newline at end of file
+Warning: bcmul() expects at least 2 parameters, 0 given in %s on line %d
diff --git a/ext/bcmath/tests/bcpow_error3.phpt b/ext/bcmath/tests/bcpow_error3.phpt
index 4b937a180b..d661c66b14 100644
--- a/ext/bcmath/tests/bcpow_error3.phpt
+++ b/ext/bcmath/tests/bcpow_error3.phpt
@@ -9,4 +9,4 @@ bcmath.scale=0
echo bcpow();
?>
--EXPECTF--
-Warning: bcpow() expects at least 2 parameters, 0 given in %s on line %d \ No newline at end of file
+Warning: bcpow() expects at least 2 parameters, 0 given in %s on line %d
diff --git a/ext/bcmath/tests/bcpow_variation001.phpt b/ext/bcmath/tests/bcpow_variation001.phpt
index 58e96b3c66..7252a09d1e 100644
--- a/ext/bcmath/tests/bcpow_variation001.phpt
+++ b/ext/bcmath/tests/bcpow_variation001.phpt
@@ -9,4 +9,4 @@ bcmath.scale=0
echo bcpow("2", "-4");
?>
--EXPECTF--
-0 \ No newline at end of file
+0
diff --git a/ext/bcmath/tests/bcpowmod.phpt b/ext/bcmath/tests/bcpowmod.phpt
index 6b1f30e577..5f0fa8a93b 100644
--- a/ext/bcmath/tests/bcpowmod.phpt
+++ b/ext/bcmath/tests/bcpowmod.phpt
@@ -13,4 +13,4 @@ echo bcpowmod("10", "2147483648", "2047");
--EXPECT--
4
-4
-790 \ No newline at end of file
+790
diff --git a/ext/bcmath/tests/bcscale_variation001.phpt b/ext/bcmath/tests/bcscale_variation001.phpt
index 2a7b8db5e5..44cd493b0f 100644
--- a/ext/bcmath/tests/bcscale_variation001.phpt
+++ b/ext/bcmath/tests/bcscale_variation001.phpt
@@ -10,4 +10,4 @@ bcscale(-4);
echo bcdiv("20.56", "4");
?>
--EXPECTF--
-5 \ No newline at end of file
+5
diff --git a/ext/bcmath/tests/bcscale_variation002.phpt b/ext/bcmath/tests/bcscale_variation002.phpt
index 0db6cff9f2..6c3bc064dc 100644
--- a/ext/bcmath/tests/bcscale_variation002.phpt
+++ b/ext/bcmath/tests/bcscale_variation002.phpt
@@ -9,4 +9,4 @@ bcmath.scale=-2
echo bcadd("-4.27", "7.3");
?>
--EXPECTF--
-3 \ No newline at end of file
+3
diff --git a/ext/bcmath/tests/bcsqrt_error2.phpt b/ext/bcmath/tests/bcsqrt_error2.phpt
index c52e2f3cf5..d7ce2e5c88 100644
--- a/ext/bcmath/tests/bcsqrt_error2.phpt
+++ b/ext/bcmath/tests/bcsqrt_error2.phpt
@@ -9,4 +9,4 @@ bcmath.scale=0
echo bcsqrt();
?>
--EXPECTF--
-Warning: bcsqrt() expects at least 1 parameter, 0 given in %s on line %d \ No newline at end of file
+Warning: bcsqrt() expects at least 1 parameter, 0 given in %s on line %d
diff --git a/ext/bcmath/tests/bcsqrt_variation001.phpt b/ext/bcmath/tests/bcsqrt_variation001.phpt
index 5e9ec1edb9..febaab3fd0 100644
--- a/ext/bcmath/tests/bcsqrt_variation001.phpt
+++ b/ext/bcmath/tests/bcsqrt_variation001.phpt
@@ -9,4 +9,4 @@ bcmath.scale=0
echo bcsqrt("0");
?>
--EXPECTF--
-0 \ No newline at end of file
+0
diff --git a/ext/bcmath/tests/bcsub_error1.phpt b/ext/bcmath/tests/bcsub_error1.phpt
index 51c020e785..1600652ac1 100644
--- a/ext/bcmath/tests/bcsub_error1.phpt
+++ b/ext/bcmath/tests/bcsub_error1.phpt
@@ -9,4 +9,4 @@ bcmath.scale=0
echo bcsub();
?>
--EXPECTF--
-Warning: bcsub() expects at least 2 parameters, 0 given in %s on line %d \ No newline at end of file
+Warning: bcsub() expects at least 2 parameters, 0 given in %s on line %d