Skip to content

Commit f1d7e3c

Browse files
committed
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
1 parent f98c916 commit f1d7e3c

File tree

3,482 files changed

+1614
-4105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,482 files changed

+1614
-4105
lines changed

Zend/tests/033.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ $arr[][]->bar = 2;
1717

1818
?>
1919
--EXPECTF--
20-
2120
Notice: Undefined variable: arr in %s on line %d
2221

2322
Notice: Undefined variable: arr in %s on line %d

Zend/tests/abstract-static.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ abstract class TestClass
99
?>
1010
===DONE===
1111
--EXPECTF--
12-
1312
===DONE===

Zend/tests/add_006.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ var_dump($c);
3838
echo "Done\n";
3939
?>
4040
--EXPECTF--
41-
4241
Warning: A non-numeric value encountered in %s on line %d
4342
int(75636)
4443

Zend/tests/add_007.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ var_dump($c);
1919
echo "Done\n";
2020
?>
2121
--EXPECTF--
22-
2322
Warning: A non-numeric value encountered in %s on line %d
2423

2524
Exception: Unsupported operand types

Zend/tests/anon/001.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ var_dump(new class{});
66
--EXPECTF--
77
object(class@%s)#%d (0) {
88
}
9-
10-

Zend/tests/anon/002.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ var_dump($a instanceof A, $a instanceof B);
1818
--EXPECTF--
1919
bool(true)
2020
bool(true)
21-

Zend/tests/anon/003.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ object(class@%s)#1 (1) {
5151
["i"]=>
5252
int(10)
5353
}
54-

Zend/tests/anon/006.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ namespace {
1212
--EXPECTF--
1313
object(class@%s)#1 (0) {
1414
}
15-

Zend/tests/anon/007.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ namespace lone {
2020
--EXPECTF--
2121
object(class@%s)#2 (0) {
2222
}
23-

Zend/tests/assert/expect_013.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ assert.exception=1
88
var_dump(assert(false));
99
?>
1010
--EXPECT--
11-
bool(true)
11+
bool(true)

0 commit comments

Comments
 (0)