summaryrefslogtreecommitdiff
path: root/sapi/phpdbg
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-15 04:33:09 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-15 04:33:09 +0200
commitd679f02295ea079338f029b7f5f4cb65b37f190c (patch)
tree53c519e1f829913a54d9dcea004721a3714cea26 /sapi/phpdbg
parente84662c35cffaa95ead4322bfe9d61815c185722 (diff)
downloadphp-git-d679f02295ea079338f029b7f5f4cb65b37f190c.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 'sapi/phpdbg')
-rw-r--r--sapi/phpdbg/tests/breakpoints_001.phpt1
-rw-r--r--sapi/phpdbg/tests/breakpoints_002.phpt1
-rw-r--r--sapi/phpdbg/tests/breakpoints_003.phpt1
-rw-r--r--sapi/phpdbg/tests/breakpoints_005.phpt1
-rw-r--r--sapi/phpdbg/tests/breakpoints_006.phpt1
-rw-r--r--sapi/phpdbg/tests/breakpoints_007.phpt1
-rw-r--r--sapi/phpdbg/tests/breakpoints_008.phpt1
-rw-r--r--sapi/phpdbg/tests/include_once.phpt1
-rw-r--r--sapi/phpdbg/tests/phpdbg_oplog_001.phpt1
9 files changed, 0 insertions, 9 deletions
diff --git a/sapi/phpdbg/tests/breakpoints_001.phpt b/sapi/phpdbg/tests/breakpoints_001.phpt
index 17e7c65cbf..28f11760c8 100644
--- a/sapi/phpdbg/tests/breakpoints_001.phpt
+++ b/sapi/phpdbg/tests/breakpoints_001.phpt
@@ -30,4 +30,3 @@ echo $i++;
echo $i++;
echo $i++;
echo $i++;
-
diff --git a/sapi/phpdbg/tests/breakpoints_002.phpt b/sapi/phpdbg/tests/breakpoints_002.phpt
index 96c98194b1..93351321a8 100644
--- a/sapi/phpdbg/tests/breakpoints_002.phpt
+++ b/sapi/phpdbg/tests/breakpoints_002.phpt
@@ -37,4 +37,3 @@ echo $i++;
echo $i++;
echo $i++;
echo $i++;
-
diff --git a/sapi/phpdbg/tests/breakpoints_003.phpt b/sapi/phpdbg/tests/breakpoints_003.phpt
index 12b2504487..9a1f7cccc5 100644
--- a/sapi/phpdbg/tests/breakpoints_003.phpt
+++ b/sapi/phpdbg/tests/breakpoints_003.phpt
@@ -30,4 +30,3 @@ echo $i++;
echo $i++;
echo $i++;
echo $i++;
-
diff --git a/sapi/phpdbg/tests/breakpoints_005.phpt b/sapi/phpdbg/tests/breakpoints_005.phpt
index 653dab9fcc..3120405896 100644
--- a/sapi/phpdbg/tests/breakpoints_005.phpt
+++ b/sapi/phpdbg/tests/breakpoints_005.phpt
@@ -25,4 +25,3 @@ function foo($bar) {
}
foo("test");
-
diff --git a/sapi/phpdbg/tests/breakpoints_006.phpt b/sapi/phpdbg/tests/breakpoints_006.phpt
index fa6f0cdc5b..3e0e94541d 100644
--- a/sapi/phpdbg/tests/breakpoints_006.phpt
+++ b/sapi/phpdbg/tests/breakpoints_006.phpt
@@ -23,4 +23,3 @@ function foo($bar) {
}
foo("test");
-
diff --git a/sapi/phpdbg/tests/breakpoints_007.phpt b/sapi/phpdbg/tests/breakpoints_007.phpt
index f921c257c5..900ccee083 100644
--- a/sapi/phpdbg/tests/breakpoints_007.phpt
+++ b/sapi/phpdbg/tests/breakpoints_007.phpt
@@ -22,4 +22,3 @@ class bar {
}
(new bar)->foo("test");
-
diff --git a/sapi/phpdbg/tests/breakpoints_008.phpt b/sapi/phpdbg/tests/breakpoints_008.phpt
index cbe5042c2b..3aa7aa2595 100644
--- a/sapi/phpdbg/tests/breakpoints_008.phpt
+++ b/sapi/phpdbg/tests/breakpoints_008.phpt
@@ -31,4 +31,3 @@ namespace Foo {
namespace {
(new \Foo\Bar)->Foo("test");
}
-
diff --git a/sapi/phpdbg/tests/include_once.phpt b/sapi/phpdbg/tests/include_once.phpt
index 0a00e04cde..b91f5e83a0 100644
--- a/sapi/phpdbg/tests/include_once.phpt
+++ b/sapi/phpdbg/tests/include_once.phpt
@@ -13,4 +13,3 @@ prompt>
include_once __DIR__.'/include.inc';
include_once __DIR__.'/include.inc';
-
diff --git a/sapi/phpdbg/tests/phpdbg_oplog_001.phpt b/sapi/phpdbg/tests/phpdbg_oplog_001.phpt
index e4e558b9fa..5a5e9ba61c 100644
--- a/sapi/phpdbg/tests/phpdbg_oplog_001.phpt
+++ b/sapi/phpdbg/tests/phpdbg_oplog_001.phpt
@@ -55,4 +55,3 @@ $a->b();
$a->b('ha');
var_dump(phpdbg_end_oplog(["functions" => true]));
-