diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:17:28 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:17:28 +0200 |
commit | 37c329d7153b65fd2430fa42e8af8e8a0cbc0a41 (patch) | |
tree | 7041c722228f74286b96c50fc834652f0c29156f /scripts | |
parent | 6c2c7dabee006fa735307d92bb223a1fa3d47414 (diff) | |
download | php-git-37c329d7153b65fd2430fa42e8af8e8a0cbc0a41.tar.gz |
Trim trailing whitespace in source code files
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dev/find_tested.php | 18 | ||||
-rwxr-xr-x | scripts/dev/gen_verify_stub | 2 | ||||
-rw-r--r-- | scripts/man1/phpize.1.in | 2 | ||||
-rw-r--r-- | scripts/phpize.in | 12 |
4 files changed, 17 insertions, 17 deletions
diff --git a/scripts/dev/find_tested.php b/scripts/dev/find_tested.php index 33d53d8163..c2a223b776 100755 --- a/scripts/dev/find_tested.php +++ b/scripts/dev/find_tested.php @@ -72,7 +72,7 @@ $extension_method_info = mark_methods_as_tested($extension_method_info, $phpt_fi /** * The loop to output the test coverage info * Should output: Extension, Class Name, Method/Function Name, Test Status, Test Files - */ + */ foreach($extension_method_info as $record) { echo $record[EXTENSION_NAME] . ","; echo $record[CLASS_NAME] . ","; @@ -85,7 +85,7 @@ foreach($extension_method_info as $record) { * Marks the "tested" status of methods in $method_info according * to whether they are tested in $phpt_files */ -function mark_methods_as_tested($method_info, $phpt_files) { +function mark_methods_as_tested($method_info, $phpt_files) { foreach($phpt_files as $phpt_file) { $tested_functions = extract_tests($phpt_file); @@ -98,7 +98,7 @@ function mark_methods_as_tested($method_info, $phpt_files) { // matched the method name if ($current_method_record[IS_DUPLICATE] == true) { // we cannot be sure which class this method corresponds to, - // so mark method as needing to be verified + // so mark method as needing to be verified $current_method_record[IS_TESTED] = "verify"; } else { $current_method_record[IS_TESTED] = "yes"; @@ -115,7 +115,7 @@ function mark_methods_as_tested($method_info, $phpt_files) { * returns an array containing a record for each defined method. */ function populate_method_info() { - + $method_info = array(); // get functions @@ -198,21 +198,21 @@ function get_phpt_files($dir, &$phpt_file_count, &$all_phpt) } /** - * Extract tests from a specified file, returns an array of tested function tokens - */ + * Extract tests from a specified file, returns an array of tested function tokens + */ function extract_tests($file) { $code = file_get_contents($file); - + if (!preg_match('/--FILE--\s*(.*)\s*--(EXPECTF|EXPECTREGEX|EXPECT)?--/is', $code, $r)) { //print "Unable to get code in ".$file."\n"; return array(); } - + $tokens = token_get_all($r[1]); $functions = array_filter($tokens, 'filter_functions'); $functions = array_map( 'map_token_value',$functions); $functions = array_unique($functions); - + return $functions; } diff --git a/scripts/dev/gen_verify_stub b/scripts/dev/gen_verify_stub index 1dc3ba0cee..ac6dc4434d 100755 --- a/scripts/dev/gen_verify_stub +++ b/scripts/dev/gen_verify_stub @@ -39,7 +39,7 @@ do done for TARBALL in "$PHPROOT/php-$RELEASE_VER.tar.bz2" "$PHPROOT/php-$RELEASE_VER.tar.gz" "$PHPROOT/php-$RELEASE_VER.tar.xz" -do +do basename $TARBALL echo "SHA256 hash: `sha256sum $TARBALL | cut -d' ' -f1`"; echo PGP signature: diff --git a/scripts/man1/phpize.1.in b/scripts/man1/phpize.1.in index d2852fdcc5..b885326bfe 100644 --- a/scripts/man1/phpize.1.in +++ b/scripts/man1/phpize.1.in @@ -44,5 +44,5 @@ available through the world-wide-web at the following url: .P If you did not receive a copy of the PHP license and are unable to obtain it through the world-wide-web, please send a note to -.B license@php.net +.B license@php.net so we can mail you a copy immediately. diff --git a/scripts/phpize.in b/scripts/phpize.in index a2ab4b5055..26ecfc6f65 100644 --- a/scripts/phpize.in +++ b/scripts/phpize.in @@ -31,7 +31,7 @@ phpize_no_configm4() echo "Cannot find config.m4. " echo "Make sure that you run '$0$clean' in the top level source directory of the module" - echo + echo } phpize_clean() @@ -107,8 +107,8 @@ phpize_check_shtool() if test ! -x "$builddir/build/shtool"; then cat <<EOF -shtool at '$builddir/build/shtool' does not exist or is not executable. -Make sure that the file exists and is executable and then rerun this script. +shtool at '$builddir/build/shtool' does not exist or is not executable. +Make sure that the file exists and is executable and then rerun this script. EOF exit 1 @@ -121,7 +121,7 @@ phpize_check_autotools() { test -z "$PHP_AUTOCONF" && PHP_AUTOCONF=autoconf test -z "$PHP_AUTOHEADER" && PHP_AUTOHEADER=autoheader - + if test ! -x "$PHP_AUTOCONF" && test ! -x "`$php_shtool path $PHP_AUTOCONF`"; then cat <<EOF Cannot find autoconf. Please check your autoconf installation and the @@ -143,7 +143,7 @@ EOF phpize_copy_files() { test -d build || mkdir build - + (cd "$phpdir" && cp $FILES_BUILD "$builddir"/build) (cd "$phpdir" && cp $FILES "$builddir") (cd "$builddir" && cat acinclude.m4 ./build/libtool.m4 > aclocal.m4) @@ -164,7 +164,7 @@ phpize_autotools() # Main script -case "$1" in +case "$1" in # Cleanup --clean) phpize_check_configm4 1 |