Commit: dccb4e68b53f40f7d597bec6bf56554cb4289946
Author: Peter Kokot <[email protected]> Fri, 19 Oct 2018 08:32:13
+0200
Parents: 8e9616843c8a5faa2cc98436f6cd25010c236e02
Branches: master
Link:
http://git.php.net/?p=web/qa.git;a=commitdiff;h=dccb4e68b53f40f7d597bec6bf56554cb4289946
Log:
Sync leading and final newlines
This patch adds missing newlines, trims multiple redundant final
newlines into a single one and trims leading newlines at the beginning
of the files.
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
Bugs:
https://bugs.php.net/2
https://bugs.php.net/5
Changed paths:
M .htaccess
M api.php
M build.php
M expectf_details.php
M pftt_report.php
M pulls/api.php
M pulls/jquery-ui.css
M pulls/pullrequests.js
M regtests/README
M regtests/maketests
M regtests/runtests
M reports/parse_ciqa.php
M reports/test-insert.php
M sample_tests/clean.php
M sample_tests/file012.php
M sample_tests/sample001.php
M sample_tests/sample002.php
M sample_tests/sample003.php
M sample_tests/sample006.php
M sample_tests/sample008.php
M sample_tests/sample009.php
M sample_tests/sample010.php
M sample_tests/sample011.php
M sample_tests/sample012.php
M sample_tests/sample013.php
M sample_tests/sample014.php
M sample_tests/sample016.php
M sample_tests/sample017.php
M sample_tests/sample018.php
M sample_tests/sample019.php
M sample_tests/sample020.php
M sample_tests/sample021.php
M sample_tests/sample022.php
M sample_tests/sample023.php
M sample_tests/sample024.php
M sample_tests/sample025.php
M sample_tests/sample026.php
M sample_tests/skipif.php
M sample_tests/skipif2.php
M write-test.php
diff --git a/.htaccess b/.htaccess
index 040a252..c70c055 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1 +1 @@
-php_value include_path .:./include:../include
\ No newline at end of file
+php_value include_path .:./include:../include
diff --git a/api.php b/api.php
index 4b663d6..2f43389 100644
--- a/api.php
+++ b/api.php
@@ -54,4 +54,3 @@ Example URLs:
</p>
<?php
common_footer();
-
diff --git a/build.php b/build.php
index c900503..cfe4d90 100755
--- a/build.php
+++ b/build.php
@@ -93,4 +93,3 @@ function outputReportTable(string $type, string $branch,
string $revision) {
echo "</table>\n";
echo "<br/>\n";
}
-
diff --git a/expectf_details.php b/expectf_details.php
index b718c98..bec17c2 100644
--- a/expectf_details.php
+++ b/expectf_details.php
@@ -89,4 +89,3 @@ output by PHP Warnings.</p>
<?php
common_footer();
-
diff --git a/pftt_report.php b/pftt_report.php
index 6fd0353..1c8a673 100755
--- a/pftt_report.php
+++ b/pftt_report.php
@@ -122,4 +122,4 @@ var_dump(scandir($report_dir));
// done, successfully
echo "Uploaded to $report_file";
-?>
\ No newline at end of file
+?>
diff --git a/pulls/api.php b/pulls/api.php
index b29aae6..4020a1c 100644
--- a/pulls/api.php
+++ b/pulls/api.php
@@ -270,4 +270,3 @@ if (isset($_REQUEST['action']) &&
in_array($_REQUEST['action'], $accepted_action
header('HTTP/1.0 400 Bad Request');
die(json_encode(array('success' => false, 'errors' => array("Unknown
method"))));
}
-
diff --git a/pulls/jquery-ui.css b/pulls/jquery-ui.css
index a107801..76610ba 100644
--- a/pulls/jquery-ui.css
+++ b/pulls/jquery-ui.css
@@ -562,4 +562,4 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0;
} /* reset extra pad
* http://docs.jquery.com/UI/Progressbar#theming
*/
.ui-progressbar { height:2em; text-align: left; overflow: hidden; }
-.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
\ No newline at end of file
+.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
diff --git a/pulls/pullrequests.js b/pulls/pullrequests.js
index 61d8b53..e8d7fdc 100644
--- a/pulls/pullrequests.js
+++ b/pulls/pullrequests.js
@@ -271,4 +271,3 @@ function updateRepo(reponame, num, dia) {
}});
dia.dialog("destroy");
}
-
diff --git a/regtests/README b/regtests/README
index b34dc9b..71654e0 100644
--- a/regtests/README
+++ b/regtests/README
@@ -60,9 +60,3 @@ directory
#:>. ./test/compare
this will run diff over the outputs and put the results in
test/compare.out
-
-
-
-
-
-
diff --git a/regtests/maketests b/regtests/maketests
index 2fbdb8e..ba7e67e 100755
--- a/regtests/maketests
+++ b/regtests/maketests
@@ -212,5 +212,3 @@ close (TMASTER);
print TCOMPARE "$compareExitCmds";
close (TCOMPARE);
-
-
diff --git a/regtests/runtests b/regtests/runtests
index a6d0879..3b7f4b1 100755
--- a/regtests/runtests
+++ b/regtests/runtests
@@ -213,5 +213,3 @@ close (TMASTER);
print TCOMPARE "$compareExitCmds";
close (TCOMPARE);
-
-
diff --git a/reports/parse_ciqa.php b/reports/parse_ciqa.php
index 8bf0594..b24f985 100644
--- a/reports/parse_ciqa.php
+++ b/reports/parse_ciqa.php
@@ -187,5 +187,3 @@ foreach ($successfulTests as $version => $successTests) {
if ($status === true) echo "SUCCESS !\n";
else echo " ERROR :( \n";
}
-
-
diff --git a/reports/test-insert.php b/reports/test-insert.php
index 3974c90..466d682 100644
--- a/reports/test-insert.php
+++ b/reports/test-insert.php
@@ -203,4 +203,3 @@ $database->exec('DELETE FROM expectedfail WHERE id_report =
'.$sqlReport['id']);
$database->exec('DELETE FROM reports WHERE id = '.$sqlReport['id']);
$database->close();
echo "<b>Cleanup done</b>";
-
diff --git a/sample_tests/clean.php b/sample_tests/clean.php
index 1f4e2b1..1ee0aeb 100644
--- a/sample_tests/clean.php
+++ b/sample_tests/clean.php
@@ -40,4 +40,4 @@ imap_close($imap_stream, CL_EXPUNGE);
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/file012.php b/sample_tests/file012.php
index 537f4b0..986345c 100644
--- a/sample_tests/file012.php
+++ b/sample_tests/file012.php
@@ -19,4 +19,4 @@ common_header();
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample001.php b/sample_tests/sample001.php
index c38bf21..441eafc 100644
--- a/sample_tests/sample001.php
+++ b/sample_tests/sample001.php
@@ -73,4 +73,4 @@ Done
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample002.php b/sample_tests/sample002.php
index 0e2fa49..f562ddf 100644
--- a/sample_tests/sample002.php
+++ b/sample_tests/sample002.php
@@ -34,4 +34,4 @@ array(2) {
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample003.php b/sample_tests/sample003.php
index 56f1187..43f05db 100644
--- a/sample_tests/sample003.php
+++ b/sample_tests/sample003.php
@@ -61,4 +61,4 @@ array(1) {
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample006.php b/sample_tests/sample006.php
index d0ad58b..f9a2518 100644
--- a/sample_tests/sample006.php
+++ b/sample_tests/sample006.php
@@ -66,4 +66,4 @@ NULL
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample008.php b/sample_tests/sample008.php
index a90a0f9..2b0f0c0 100644
--- a/sample_tests/sample008.php
+++ b/sample_tests/sample008.php
@@ -54,4 +54,4 @@ array(2) {
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample009.php b/sample_tests/sample009.php
index 417af47..f1fe1a1 100644
--- a/sample_tests/sample009.php
+++ b/sample_tests/sample009.php
@@ -29,4 +29,4 @@ use this to input some thing to the php script
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample010.php b/sample_tests/sample010.php
index b079762..358b5c2 100644
--- a/sample_tests/sample010.php
+++ b/sample_tests/sample010.php
@@ -48,4 +48,4 @@ array(2) {
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample011.php b/sample_tests/sample011.php
index aa713b2..ad0f434 100644
--- a/sample_tests/sample011.php
+++ b/sample_tests/sample011.php
@@ -25,4 +25,4 @@ Hello World
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample012.php b/sample_tests/sample012.php
index a8d1d51..bfd941a 100644
--- a/sample_tests/sample012.php
+++ b/sample_tests/sample012.php
@@ -22,4 +22,4 @@ hello world
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample013.php b/sample_tests/sample013.php
index 572231f..5046304 100644
--- a/sample_tests/sample013.php
+++ b/sample_tests/sample013.php
@@ -28,4 +28,4 @@ return array(
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample014.php b/sample_tests/sample014.php
index 1ec9533..0495b74 100644
--- a/sample_tests/sample014.php
+++ b/sample_tests/sample014.php
@@ -44,4 +44,4 @@ return $config;
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample016.php b/sample_tests/sample016.php
index 7a099b4..9f83380 100644
--- a/sample_tests/sample016.php
+++ b/sample_tests/sample016.php
@@ -32,4 +32,4 @@ array(2) {
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample017.php b/sample_tests/sample017.php
index cfa06ba..a2820db 100644
--- a/sample_tests/sample017.php
+++ b/sample_tests/sample017.php
@@ -75,4 +75,4 @@ array(1) {
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample018.php b/sample_tests/sample018.php
index b49e4f1..9e91946 100644
--- a/sample_tests/sample018.php
+++ b/sample_tests/sample018.php
@@ -41,4 +41,4 @@ Status: 403 Access Denied
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample019.php b/sample_tests/sample019.php
index 82871fc..ecaa287 100644
--- a/sample_tests/sample019.php
+++ b/sample_tests/sample019.php
@@ -59,4 +59,4 @@ Done
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample020.php b/sample_tests/sample020.php
index 91fc9b5..e8ba42d 100644
--- a/sample_tests/sample020.php
+++ b/sample_tests/sample020.php
@@ -42,4 +42,4 @@ bool(false)</pre>
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample021.php b/sample_tests/sample021.php
index 416183d..c2189ea 100644
--- a/sample_tests/sample021.php
+++ b/sample_tests/sample021.php
@@ -64,4 +64,4 @@ M_SQRT3 : 1.732050[0-9]*
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample022.php b/sample_tests/sample022.php
index b0cd84f..befcd3e 100644
--- a/sample_tests/sample022.php
+++ b/sample_tests/sample022.php
@@ -68,4 +68,4 @@ Done
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample023.php b/sample_tests/sample023.php
index c2336cb..7ef3200 100644
--- a/sample_tests/sample023.php
+++ b/sample_tests/sample023.php
@@ -31,4 +31,4 @@ string\(8\) \"2d303132\"
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample024.php b/sample_tests/sample024.php
index ceeb13d..89dbfac 100644
--- a/sample_tests/sample024.php
+++ b/sample_tests/sample024.php
@@ -48,4 +48,4 @@ Wrote: 72 bytes
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample025.php b/sample_tests/sample025.php
index c17189f..a556b45 100644
--- a/sample_tests/sample025.php
+++ b/sample_tests/sample025.php
@@ -86,4 +86,4 @@ array(2) {
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/sample026.php b/sample_tests/sample026.php
index 6d5d654..6bef5cc 100644
--- a/sample_tests/sample026.php
+++ b/sample_tests/sample026.php
@@ -39,4 +39,4 @@ foreach ($dir as $file) {
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/skipif.php b/sample_tests/skipif.php
index 97ec1d4..34438af 100644
--- a/sample_tests/skipif.php
+++ b/sample_tests/skipif.php
@@ -41,4 +41,4 @@ if ($save_path) {
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/sample_tests/skipif2.php b/sample_tests/skipif2.php
index 7d921e7..8ee4313 100644
--- a/sample_tests/skipif2.php
+++ b/sample_tests/skipif2.php
@@ -19,4 +19,4 @@ common_header();
<?php
common_footer();
-?>
\ No newline at end of file
+?>
diff --git a/write-test.php b/write-test.php
index 1f16a70..5e6f047 100644
--- a/write-test.php
+++ b/write-test.php
@@ -538,4 +538,3 @@ has been run.</p>
common_footer();
?>
-