Commit d679f02
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.21 parent e84662c commit d679f02
File tree
3,401 files changed
+1530
-4009
lines changed- Zend/tests
- anon
- assert
- bug67436
- closures
- function_arguments
- generators
- errors
- grammar
- multibyte
- nullable_types
- object_types
- return_types
- traits
- bugs
- try
- type_declarations
- varSyntax
- ext
- bcmath/tests
- bz2/tests
- calendar/tests
- com_dotnet/tests
- curl/tests
- date/tests
- dom/tests
- enchant/tests
- exif/tests
- fileinfo/tests
- filter/tests
- ftp/tests
- gd/tests
- gettext/tests
- gmp/tests
- hash/tests
- iconv/tests
- imap/tests
- interbase/tests
- intl/tests
- json/tests
- ldap/tests
- libxml/tests
- mbstring/tests
- mysqli/tests
- oci8/tests
- opcache/tests
- openssl/tests
- pcre/tests
- pdo_dblib/tests
- pdo_firebird/tests
- pdo_mysql/tests
- pdo_oci/tests
- pdo_odbc/tests
- pdo_pgsql/tests
- pdo_sqlite/tests
- pdo/tests
- pgsql/tests
- phar/tests
- cache_list
- tar
- zip
- posix/tests
- readline/tests
- recode/tests
- reflection/tests
- session/tests
- simplexml/tests
- snmp/tests
- soap/tests
- bugs
- interop/Round2/Base
- schema
- soap12
- sockets/tests
- sodium/tests
- spl/tests
- sqlite3/tests
- standard/tests
- array
- assert
- class_object
- crypt
- directory
- dir
- file
- windows_links
- windows_mb_path
- general_functions
- http
- image
- math
- network
- password
- serialize
- streams
- strings
- time
- url
- versioning
- sysvshm/tests
- tidy/tests
- tokenizer/tests
- wddx/tests
- xml/tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
3,401 files changed
+1530
-4009
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
0 commit comments