com web/doc: Sync final newlines: .gitignore README.md build-ops-sample.php cron/README include/LICENSE.PARSEDOWN include/init.inc.php
include/lib_general.inc.php include/lib_revcheck.in c.php scripts/gen_picture_info.php scripts/gen_pi cture_info_all_lang.php scripts/generation.sh
scr ipts/populatedocs.sh tutorial/intro.md tutorial/style .md www/error.php www/index.php www/phd/index.php www/revcheck.php
| From: | Peter Kokot | Date: | Mon, 01 Oct 2018 21:36:51 +0000 |
| Subject: | com web/doc: Sync final newlines: .gitignore README.md build-ops-sample.php cron/README include/LICENSE.PARSEDOWN include/init.inc.php include/lib_general.inc.php include/lib_revcheck.in c.php scripts/gen_picture_info.php scripts/gen_pi cture_info_all_lang.php scripts/generation.sh scr ipts/populatedocs.sh tutorial/intro.md tutorial/style .md www/error.php www/index.php www/phd/index.php www/revcheck.php |
||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-2439@lists.php.net to get a copy of this message | ||
Commit: 9c2a3e006c35fa98c23317d3a2695480c76f6e36
Author: Peter Kokot <peterkokot@gmail.com> Mon, 1 Oct 2018 23:36:51 +0200
Parents: 5d425c443881595096ed76566a859efc2a289319
Branches: master
Link: http://git.php.net/?p=web/doc.git;a=commitdiff;h=9c2a3e006c35fa98c23317d3a2695480c76f6e36
Log:
Sync final newlines
This patch adds some missing newlines and trims multiple newlines into
one.
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 .gitignore
M README.md
M build-ops-sample.php
M cron/README
M include/LICENSE.PARSEDOWN
M include/init.inc.php
M include/lib_general.inc.php
M include/lib_revcheck.inc.php
M scripts/gen_picture_info.php
M scripts/gen_picture_info_all_lang.php
M scripts/generation.sh
M scripts/populatedocs.sh
M tutorial/intro.md
M tutorial/style.md
M www/error.php
M www/index.php
M www/phd/index.php
M www/revcheck.php
Diff:
diff --git a/.gitignore b/.gitignore
index c9a1fb9..432ae2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,4 +5,4 @@ shared
sqlite
svn
www/images
-www/robots.txt
\ No newline at end of file
+www/robots.txt
diff --git a/README.md b/README.md
index 895dc9d..c113509 100644
--- a/README.md
+++ b/README.md
@@ -45,4 +45,4 @@ Requirements:
```
## TODO
-- add more cowbell
\ No newline at end of file
+- add more cowbell
diff --git a/build-ops-sample.php b/build-ops-sample.php
index 1c486dc..dcc901f 100644
--- a/build-ops-sample.php
+++ b/build-ops-sample.php
@@ -3,4 +3,4 @@
define('SVN_DIR', '@SVNDIR@');
define('DOC_DIR', '@DOCDIR@');
-define('SQLITE_DIR', '@SQLITEDIR@');
\ No newline at end of file
+define('SQLITE_DIR', '@SQLITEDIR@');
diff --git a/cron/README b/cron/README
index d1e3f17..63d0d77 100644
--- a/cron/README
+++ b/cron/README
@@ -12,4 +12,3 @@ The actual crontab for docweb should look something like this:
0 0 * * * /path/to/docweb/cron/cron daily
0 0 * * 1 /path/to/docweb/cron/cron weekly
0 0 1 * * /path/to/docweb/cron/cron monthly
-
diff --git a/include/LICENSE.PARSEDOWN b/include/LICENSE.PARSEDOWN
index baca86f..b5a9d32 100644
--- a/include/LICENSE.PARSEDOWN
+++ b/include/LICENSE.PARSEDOWN
@@ -17,4 +17,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/include/init.inc.php b/include/init.inc.php
index 03169e7..4c06f08 100644
--- a/include/init.inc.php
+++ b/include/init.inc.php
@@ -30,4 +30,4 @@ define('CACHE_BUGS_COUNT', 300); // 300 = 5mins
require_once('lib_proj_lang.inc.php');
// general support library
-require_once('lib_general.inc.php');
\ No newline at end of file
+require_once('lib_general.inc.php');
diff --git a/include/lib_general.inc.php b/include/lib_general.inc.php
index 7a15fbb..2b78960 100644
--- a/include/lib_general.inc.php
+++ b/include/lib_general.inc.php
@@ -80,4 +80,4 @@ function nav_tools($lang)
$out .= '<li><a
href="revcheck.php?p=graph&lang='.$lang.'">Graph</a></li>';
$out .= '</ul></div></div>';
return $out;
-}
\ No newline at end of file
+}
diff --git a/include/lib_revcheck.inc.php b/include/lib_revcheck.inc.php
index 1b31466..f771562 100644
--- a/include/lib_revcheck.inc.php
+++ b/include/lib_revcheck.inc.php
@@ -282,4 +282,4 @@ function gen_date($file)
{
$unix = filemtime($file);
return '<time class="gen-date" datetime="'.date(DATE_W3C,
$unix).'">Generated: '.date('d M Y H:i:s',
$unix).'</time>';
-}
\ No newline at end of file
+}
diff --git a/scripts/gen_picture_info.php b/scripts/gen_picture_info.php
index 7853917..01c7429 100644
--- a/scripts/gen_picture_info.php
+++ b/scripts/gen_picture_info.php
@@ -91,4 +91,4 @@ function generate_image($lang, $idx) {
$graph->Add($p1);
$graph->Stroke("../www/images/revcheck/info_revcheck_php_$lang.png");
-}
\ No newline at end of file
+}
diff --git a/scripts/gen_picture_info_all_lang.php b/scripts/gen_picture_info_all_lang.php
index 1972b2e..38e96a7 100644
--- a/scripts/gen_picture_info_all_lang.php
+++ b/scripts/gen_picture_info_all_lang.php
@@ -72,4 +72,4 @@ function generate_image() {
// Display the graph
$graph->Stroke('../www/images/revcheck/info_revcheck_php_all_lang.png');
-}
\ No newline at end of file
+}
diff --git a/scripts/generation.sh b/scripts/generation.sh
index 7350a76..05afae5 100755
--- a/scripts/generation.sh
+++ b/scripts/generation.sh
@@ -17,4 +17,4 @@ echo "... done"
echo "Generating global graphs"
${PHP} -q ./gen_picture_info_all_lang.php
-echo "... done"
\ No newline at end of file
+echo "... done"
diff --git a/scripts/populatedocs.sh b/scripts/populatedocs.sh
index b0479a3..172948f 100755
--- a/scripts/populatedocs.sh
+++ b/scripts/populatedocs.sh
@@ -40,4 +40,4 @@ else
fi
echo -n "Reverting directory:"
-popd
\ No newline at end of file
+popd
diff --git a/tutorial/intro.md b/tutorial/intro.md
index 48982be..bfe71fe 100644
--- a/tutorial/intro.md
+++ b/tutorial/intro.md
@@ -28,4 +28,4 @@ This guide uses some terminology that you have to know. Don't worry,
it's easy:
## Feedback
Feedback is most certainly welcome on this document. Without your submissions and input, this
document wouldn't exist.
-Please send your additions, comments and criticisms to the following email address:
phpdoc@lists.php.net.
\ No newline at end of file
+Please send your additions, comments and criticisms to the following email address:
phpdoc@lists.php.net.
diff --git a/tutorial/style.md b/tutorial/style.md
index 98984dc..a9fa2ed 100644
--- a/tutorial/style.md
+++ b/tutorial/style.md
@@ -61,4 +61,4 @@ the [Foo Page][example] | [click here][example], go [here][example]
Unix | UNIX (it's a registered trademark)
Windows | windows (when referring to Microsoft Windows)
-[example]: http://example.com
\ No newline at end of file
+[example]: http://example.com
diff --git a/www/error.php b/www/error.php
index a212d9c..d4d1025 100644
--- a/www/error.php
+++ b/www/error.php
@@ -11,4 +11,4 @@ else {
echo '<p>An error occured</p>';
}
-site_footer();
\ No newline at end of file
+site_footer();
diff --git a/www/index.php b/www/index.php
index 0e6f810..fd982ce 100644
--- a/www/index.php
+++ b/www/index.php
@@ -36,4 +36,4 @@ mailing list.</p>
<?php
$sidebar = nav_languages();
-echo site_footer($sidebar);
\ No newline at end of file
+echo site_footer($sidebar);
diff --git a/www/phd/index.php b/www/phd/index.php
index 8e4db13..497769e 100644
--- a/www/phd/index.php
+++ b/www/phd/index.php
@@ -1,3 +1,3 @@
<?php
header('location: ../phd.php');
-die;
\ No newline at end of file
+die;
diff --git a/www/revcheck.php b/www/revcheck.php
index 089092c..6d561c9 100644
--- a/www/revcheck.php
+++ b/www/revcheck.php
@@ -376,4 +376,4 @@ END_OF_MULTILINE;
if ($lang != 'en') {
$sidebar = nav_tools($lang);
site_footer($sidebar);
-}
\ No newline at end of file
+}